depends: update to Boost 1.72 #17941

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2020/01/boost-bump changing 2 files +4 −4
  1. Sjors commented at 2:50 pm on January 16, 2020: member

    Boost 1.71 or newer is useful for #15382. Unless that PR gets more ACKs, we might as well as wait and see if there’s another Boost release before we branch off 0.20.

    In addition, we should keep an eye on the upstream autoconf fix: https://github.com/autoconf-archive/autoconf-archive/pull/198

    Opening this draft PR now to deal with any compiler / CI issues.

  2. DrahtBot added the label Build system on Jan 16, 2020
  3. DrahtBot added the label Docs on Jan 16, 2020
  4. sanjaykdragon commented at 3:20 pm on January 16, 2020: contributor
    would this require an upgrade in C++ STL? If not, i think we should just upgrade to C++14 or something, because that replaces a lot of the things that boost currently has
  5. Sjors commented at 3:35 pm on January 16, 2020: member

    just upgrade to C++14

    There is ongoing discussion on when the right time is to bump c++. It seems the plan is to skip c++14 and go straight to c++17, but it’ll probably be a while: #13356 (comment) and #16684

    Getting rid of Boost altogether is not likely to happen anytime soon, see e.g. #8670 (2016!)

  6. laanwj commented at 6:12 pm on January 16, 2020: member
    As this doesn’t bump the minimum required version of boost, just the one used in depends, it’s ok with me.
  7. fanquake added the label Needs gitian build on Jan 17, 2020
  8. fanquake removed the label Docs on Jan 17, 2020
  9. hebasto commented at 12:31 pm on January 17, 2020: member

    Boost 1.71 or newer is useful for #15382.

    Release notes for Boost 1.71.0 do not mention any change in Process library (required in #15382) at all. Did I miss something?

  10. Sjors commented at 12:40 pm on January 17, 2020: member
    It fixes an unused variable, which is needed to pass Travis these days.
  11. DrahtBot removed the label Needs gitian build on Jan 17, 2020
  12. [depends] update to Boost 1.72 a1bef29abc
  13. Sjors force-pushed on Jan 24, 2020
  14. DrahtBot commented at 0:58 am on January 25, 2020: member

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

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #18677 (Multiprocess build support by ryanofsky)
    • #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.

  15. hebasto commented at 8:16 am on January 25, 2020: member
    Concept ACK.
  16. Sjors marked this as ready for review on Jan 30, 2020
  17. Sjors commented at 7:06 pm on January 30, 2020: member

    Given that the feature freeze is March 15th and there’s still no new Boost release, 1.72 it is…

    Should I update the various boost related autoconf files too (haven’t checked if there’s new ones)?

  18. fanquake commented at 3:30 am on January 31, 2020: member

    Concept ~0.

    On the one hand, I think bumping a major dependency two versions to fix an unused variable in a module we don’t even use, [“is useful for #15382. “](https://github.com/bitcoin/bitcoin/pull/17941#issue-363685467), is a bit ridiculous. Especially when, if required, it could be fixed quite easily in preprocessing. i.e:

     0diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk
     1index cd0e70fb1..01b1f9c52 100644
     2--- a/depends/packages/boost.mk
     3+++ b/depends/packages/boost.mk
     4@@ -29,6 +29,7 @@ $(package)_cxxflags_android=-fPIC
     5 endef
     6 
     7 define $(package)_preprocess_cmds
     8+  sed -i.old "s/int ret_sig = 0;//" boost/process/detail/posix/wait_group.hpp && \
     9   echo "using $($(package)_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$($(package)_archiver_$(host_os))\" <striper>\"$(host_STRIP)\"  <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam
    10 endef
    

    On the other, we seem to be be semi-regularly bumping Boost in depends, so maybe we should prior to the 0.20.0 release. I assume you’ve tested this everywhere. Looks like there are a bunch of filesystem changes in 1.72.0. Do we need to do anything in regards to:

    On Windows, use Boost.WinAPI to select the target Windows version.

    ?

    Should I update the various boost related autoconf files too

    If there’s no applicable bug fixes to any of them, probably not. If there are, and you do update them, please test them across all operating systems and hardware we support so that we don’t end up with another issue like #17010.

  19. Sjors commented at 8:35 am on January 31, 2020: member

    I don’t think it’s necessary to include this in 0.20. Let me word it differently: if we want to bump Boost before the next release, then let’s bump to 1.72. But otherwise I’ll just leave this PR open until #15382 comes closer (with your patch as an alternative).

    I’ve been testing that PR and stuff built on top of it for a while and haven’t seen any Boost issues, but I haven’t specifically looked for them. Notably I haven’t tested on Windows.

  20. laanwj added this to the milestone 0.21.0 on Feb 5, 2020
  21. MarcoFalke added the label Needs gitian build on Feb 8, 2020
  22. MarcoFalke deleted a comment on Feb 8, 2020
  23. DrahtBot removed the label Needs gitian build on Feb 9, 2020
  24. MarcoFalke added the label Needs gitian build on Feb 9, 2020
  25. DrahtBot removed the label Needs gitian build on Feb 10, 2020
  26. MarcoFalke deleted a comment on Feb 10, 2020
  27. MarcoFalke deleted a comment on Feb 10, 2020
  28. MarcoFalke commented at 4:25 pm on April 2, 2020: member
    Focal ships with 1.71, btw
  29. DrahtBot added the label Needs rebase on Apr 10, 2020
  30. DrahtBot removed the label Needs rebase on Apr 11, 2020
  31. Sjors commented at 2:02 pm on April 27, 2020: member
    I switched to using @fanquake’s workaround in my own PR. Given that Focal, the new LTS version of Ubuntu, ships with 1.71, it seems premature to bump to 1.72 unless there’s a better reason.
  32. Sjors closed this on Apr 27, 2020

  33. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me