Skip to content

Conversation

fanquake
Copy link
Member

@fanquake fanquake commented Mar 5, 2020

We no longer use Boost Chrono.

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 5, 2020

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

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.

@laanwj
Copy link
Member

laanwj commented Mar 5, 2020

Concept ACK

2 similar comments
@jonatack
Copy link
Member

jonatack commented Mar 5, 2020

Concept ACK

@practicalswift
Copy link
Contributor

Concept ACK

@laanwj
Copy link
Member

laanwj commented Mar 6, 2020

Needs rebase now that #16117 and #18234 have been merged.

@fanquake fanquake force-pushed the dump_boost_chrono branch from 1d860a5 to b79bddc Compare March 6, 2020 22:47
@fanquake fanquake marked this pull request as ready for review March 6, 2020 22:47
@fanquake fanquake changed the title [WIP] build: Remove Boost Chrono build: Remove Boost Chrono Mar 6, 2020
@fanquake
Copy link
Member Author

fanquake commented Mar 6, 2020

Needs rebase now that #16117 and #18234 have been merged.

@laanwj done.

@fanquake fanquake force-pushed the dump_boost_chrono branch from b79bddc to ad34590 Compare March 7, 2020 00:34
@maflcko maflcko self-requested a review March 7, 2020 03:36
@@ -22,7 +22,7 @@ $(package)_config_opts_armv7a_android=address-model=32
$(package)_toolset_$(host_os)=gcc
$(package)_archiver_$(host_os)=$($(package)_ar)
$(package)_toolset_darwin=clang-darwin
$(package)_config_libraries=chrono,filesystem,system,thread,test
$(package)_config_libraries=filesystem,system,thread,test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also/still depend on boost datetime, but it seems this one is a dependency of boost thread, so implicitly included here?

See also the apt command that installs datetime as a dependency of thread:

# apt install libboost-thread-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libboost-atomic1.71-dev libboost-atomic1.71.0 libboost-chrono1.71-dev libboost-chrono1.71.0
  libboost-date-time1.71-dev libboost-date-time1.71.0 libboost-serialization1.71-dev libboost-serialization1.71.0
  libboost-thread1.71-dev libboost-thread1.71.0

Copy link
Contributor

@dongcarl dongcarl Mar 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, but I think we should only declare the libraries we explicitly need (just in case the dependency edges get pruned in the future).

Also, according to the docs for our version of Boost.Thread

Boost.Chrono: This dependency is optional (see below how to configure) and you will need to link with the library if you use some of the time related interfaces.

@maflcko
Copy link
Member

maflcko commented Mar 7, 2020

ACK ad34590

@DrahtBot
Copy link
Contributor

Gitian builds

File commit 5e12a61
(master)
commit 4bc9160
(master and this pull)
bitcoin-0.19.99-aarch64-linux-gnu-debug.tar.gz e6cb94d04f1abcf1... 3b6b3238f936d4a5...
bitcoin-0.19.99-aarch64-linux-gnu.tar.gz 97161e6985569a03... 111af00872710d21...
bitcoin-0.19.99-arm-linux-gnueabihf-debug.tar.gz 87a5e6118f238293... b27a0a81ee2322fb...
bitcoin-0.19.99-arm-linux-gnueabihf.tar.gz 39ebf03fb11f3ace... 1c2ba17d12dc6916...
bitcoin-0.19.99-osx-unsigned.dmg f9b55482380a630a... d929874575f0f668...
bitcoin-0.19.99-osx64.tar.gz 1251fa17a137ae23... 648909711ca3b7d5...
bitcoin-0.19.99-riscv64-linux-gnu-debug.tar.gz 6a0a353ccff862f1... 258aed97650a32f4...
bitcoin-0.19.99-riscv64-linux-gnu.tar.gz aa2faf0fec1a947b... bf25602c20756f54...
bitcoin-0.19.99-win64-debug.zip 5ba8f0938fb6c7d0... fe7e9d68d49296e2...
bitcoin-0.19.99-win64-setup-unsigned.exe 48f6c83889797b89... 2cc04949e468153e...
bitcoin-0.19.99-win64.zip aa38746621abfd24... 0ddcf680b550d7f8...
bitcoin-0.19.99-x86_64-linux-gnu-debug.tar.gz 8fe052cc204ffec2... 9e1ea51f351c4208...
bitcoin-0.19.99-x86_64-linux-gnu.tar.gz 9fa724a272d50ae3... ad1333baa55211ff...
bitcoin-0.19.99.tar.gz 3488bba1d7270af0... 1272a99071f7706e...
bitcoin-core-linux-0.20-res.yml d003ae2d67034f6f... 529ef817bfb0fbad...
bitcoin-core-osx-0.20-res.yml e949f4b25e3434c9... c6be10d153ff8bb4...
bitcoin-core-win-0.20-res.yml 831f173382d278e5... 16a07b7640971591...
linux-build.log 9c8f603591ab3c74... 8bbfe9c7cae86a14...
osx-build.log 871251c5bfbca1ce... 4a682fccf52df3ba...
win-build.log 1a130d28b81b87ac... 85a20fa9cf274a02...
bitcoin-core-linux-0.20-res.yml.diff 8999d179fec6815a...
bitcoin-core-osx-0.20-res.yml.diff 1ecb464b8ab0d06e...
bitcoin-core-win-0.20-res.yml.diff 47a60990f2e5e0d6...
linux-build.log.diff 003a6ba93f021b45...
osx-build.log.diff e91218b35e897c69...
win-build.log.diff ed41f1bc65bd4797...

@kallewoof
Copy link
Contributor

ACK ad34590

@bitcoin bitcoin deleted a comment from DrahtBot Mar 10, 2020
@practicalswift
Copy link
Contributor

ACK ad34590

Thanks for doing this excellent cleanup work. Great feeling seeing Boost get purged.

@fanquake fanquake merged commit 5d92ac2 into bitcoin:master Mar 10, 2020
@fanquake fanquake deleted the dump_boost_chrono branch March 10, 2020 12:26
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 11, 2020
ad34590 doc: remove Boost Chrono from install docs (fanquake)
e21fa54 test: remove Boost Chrono installation from CI (fanquake)
bd37f2b build: remove Boost Chrono detection from build system (fanquake)
1d0a87e build: remove chrono package from depends Boost (fanquake)

Pull request description:

  We no longer use Boost Chrono.

ACKs for top commit:
  practicalswift:
    ACK ad34590
  MarcoFalke:
    ACK ad34590
  kallewoof:
    ACK ad34590

Tree-SHA512: d987ab5461c76c982318c65ec8d625094356716b79fd3a462beea75f07db0f82608ace13ec4c4b0233f352508715a4505ac2b4ed1c1e9d9d78f0da936b80f0f3
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 23, 2020
Summary:
```
We no longer use Boost Chrono.
```

Backport of core [[bitcoin/bitcoin#18264 | PR18264]].

Test Plan:
  ninja all check-all
Run the Gitian builds

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7520
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
ad34590 doc: remove Boost Chrono from install docs (fanquake)
e21fa54 test: remove Boost Chrono installation from CI (fanquake)
bd37f2b build: remove Boost Chrono detection from build system (fanquake)
1d0a87e build: remove chrono package from depends Boost (fanquake)

Pull request description:

  We no longer use Boost Chrono.

ACKs for top commit:
  practicalswift:
    ACK ad34590
  MarcoFalke:
    ACK ad34590
  kallewoof:
    ACK ad34590

Tree-SHA512: d987ab5461c76c982318c65ec8d625094356716b79fd3a462beea75f07db0f82608ace13ec4c4b0233f352508715a4505ac2b4ed1c1e9d9d78f0da936b80f0f3
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Dec 6, 2021
ad34590 doc: remove Boost Chrono from install docs (fanquake)
e21fa54 test: remove Boost Chrono installation from CI (fanquake)
bd37f2b build: remove Boost Chrono detection from build system (fanquake)
1d0a87e build: remove chrono package from depends Boost (fanquake)

Pull request description:

  We no longer use Boost Chrono.

ACKs for top commit:
  practicalswift:
    ACK ad34590
  MarcoFalke:
    ACK ad34590
  kallewoof:
    ACK ad34590

Tree-SHA512: d987ab5461c76c982318c65ec8d625094356716b79fd3a462beea75f07db0f82608ace13ec4c4b0233f352508715a4505ac2b4ed1c1e9d9d78f0da936b80f0f3

# Conflicts:
#	build_msvc/bitcoin_config.h
#	ci/test/00_setup_env_native_asan.sh
#	ci/test/00_setup_env_native_fuzz.sh
#	ci/test/00_setup_env_native_fuzz_with_valgrind.sh
#	ci/test/00_setup_env_native_tsan.sh
#	ci/test/00_setup_env_native_valgrind.sh
#	depends/packages/boost.mk
#	doc/build-unix.md
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
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