Skip to content

Conversation

@hebasto hebasto force-pushed the 20190713-bump-minimum-boost branch from 24509ae to 026cba7 Compare July 13, 2019 10:58
@hebasto hebasto changed the title Set minimum required Boost to 1.53.0 Set minimum required Boost to 1.53.0 Jul 13, 2019
@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 13, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #10102 ([experimental] Multiprocess bitcoin by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@maflcko maflcko added this to the 0.19.0 milestone Jul 13, 2019
@practicalswift
Copy link
Contributor

Concept ACK

@fanquake
Copy link
Member

Concept ACK

Operating systems and Boost availability:

Debian

  • Jessie - 1.55.x
  • Stretch - 1.62.x
  • Buster - 1.67.x

macOS

  • brew - 1.70.x
  • macports - 1.66.x

Fedora

  • 28 ?
  • 29 - 1.66.x
  • 30 - 1.69.x

FreeBSD

  • 11 - 1.70.x
  • 12 - 1.70.x

OpenBSD

  • Had >=1.53.x since 2013

NetBSD

  • 7, 8 - 1.69.x

Ubuntu

  • Trusty - 1.54.x
  • Xenial - 1.58.x
  • Bionic - 1.65.x
  • Disco - 1.67.x

@laanwj
Copy link
Member

laanwj commented Jul 15, 2019

I don't see the point of bumping the minimum version if there's no strong reason to require the new version, IMO.

We are trying to, in time, get rid of the boost requirement completely at some point, and reduce usage of it as much as possible (e.g. boost::chrono will go completely and be replaced by std::chrono). It's unlikely we'll really require some newer version, and it's fine to require these work-arounds until then IMO.

@maflcko
Copy link
Member

maflcko commented Jul 15, 2019

I think it is reasonable to drop the workarounds, since they are no longer tested by anyone. For the same reason we dropped windows xp support.

@laanwj
Copy link
Member

laanwj commented Jul 15, 2019

True, but almost all of them are about time/sleep things, and we'd get rid of those anyway when switching to std::chrono.

@maflcko
Copy link
Member

maflcko commented Jul 15, 2019

There have been a few abandoned attempts in the past, so I wouldn't be too optimistic that this is happening any time soon:

@laanwj
Copy link
Member

laanwj commented Jul 18, 2019

Sure, but is there any hurry, at all?

To be honest I prefer the policy to touch the boost parts as little as possible until the dependency can be dropped whole-sale, and not unnecessarily require a newer boost.

I do agree it's unlikely for people to still have a boost <1.53.0, so I'm not against this specific change, but I think otherwise it'd be a waste of time forcing people to upgrade a dependency that we don't really want to use in the first place, and without a pressing need such as a CVE.

@maflcko maflcko modified the milestones: 0.19.0, Future Jul 18, 2019
@thijstriemstra
Copy link

thijstriemstra commented Jul 19, 2019

there was a CVE for boost 1.48 till 1.52: https://www.cvedetails.com/cve/CVE-2013-0252/ but I'm sure it was patched in distros and upgrading to >= 1.53 isn't absolutely necessary?

@maflcko
Copy link
Member

maflcko commented Jul 19, 2019

From the network we only accept sanitized strings (a subset of ascii), so this CVE shouldn't be a problem

@hebasto hebasto force-pushed the 20190713-bump-minimum-boost branch from 026cba7 to cb8b557 Compare July 31, 2019 14:58
@hebasto
Copy link
Member Author

hebasto commented Jul 31, 2019

Rebased.

@luke-jr
Copy link
Member

luke-jr commented Aug 20, 2019

Agree with @laanwj

Let's wait for a real reason to require a bump.

@laanwj
Copy link
Member

laanwj commented Aug 29, 2019

Ok, closing this for now then.

@laanwj laanwj closed this Aug 29, 2019
@luke-jr
Copy link
Member

luke-jr commented Mar 5, 2020

It looks like 1.47 won't build, since we use wait_until in src/rpc/mining.cpp and src/net.cpp with no fallbacks. Maybe we should bump this just because it's broken and untestable.

@hebasto
Copy link
Member Author

hebasto commented Mar 5, 2020

It looks like 1.47 won't build, since we use wait_until in src/rpc/mining.cpp and src/net.cpp with no fallbacks. Maybe we should bump this just because it's broken and untestable.

It seems only src/scheduler.cpp has fallback.

@fanquake fanquake reopened this Mar 5, 2020
@luke-jr
Copy link
Member

luke-jr commented Mar 5, 2020

I'm wrong. Those other wait_until are std, not boost.

But I don't know it does work either. Maybe we should just go ahead with the bump...

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 6, 2020

Needs rebase

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 6, 2020

🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/fa733bbd78add587e19f0175ab9c127a8c27e024/CONTRIBUTING.md#rebasing-changes).

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 6, 2020

🐙 This pull request conflicts with the target branch and needs rebase.

@fanquake
Copy link
Member

fanquake commented Mar 8, 2020

Going to re-close.

@maflcko
Copy link
Member

maflcko commented May 11, 2020

Maybe for 0.22, we could consider boost 1.58 as minimum. Though, I'd rather not boost by then.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
@hebasto hebasto deleted the 20190713-bump-minimum-boost branch March 5, 2022 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants