-
Notifications
You must be signed in to change notification settings - Fork 37.8k
build: don't embed a build-id when building libdmg-hfsplus #18004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Concept ACK: reproducibility is good |
ACK 2b990a1 What I don't really understand yet is why this affected the build of one binary (a tool for MacOS DMG generation) but not the -linux build. But this can't hurt determinism, at least. |
BTW: it might be possible to provide |
2b990a1
to
cb9e88e
Compare
Sure, lets just do that rather than maintaining a patch. Updated. |
re-code-ACK |
tested ACK cb9e88e checked $ readelf --string-dump .note.gnu.build-id dmg
readelf: Warning: Section '.note.gnu.build-id' was not dumped because it does not exist! however, the same archive also contains
is this a problem ? |
I'd be happy to leave that as is for now, given we haven't seen any issues with it. |
cb9e88e build: don't embed a build-id when building libdmg-hfsplus (fanquake) Pull request description: There was a [reproducibility issue (IRC logs)](http://www.erisian.com.au/bitcoin-core-dev/log-2020-01-25.html) with the osx `0.19.1rc1` gitian builds. The `build-id` embedded into the `dmg` tool was mismatching. It's possible that differing versions of binutils/ld were the cause. While it was resolved after rebuilding the base gitian image, whether an upstream package issue or fluke, we can remove the possibility of it happening in future by just not embedding a build-id into the `dmg` tool at all. Can close if it's not deemed worth it. You can test this change using the following: ```bash # build libdmg make native_libdmg-hfsplus_built -C depends/ HOST=x86_64-apple-darwin16 -j6 V=1 # master readelf --string-dump .note.gnu.build-id /bitcoin/depends/work/build/x86_64-apple-darwin16/native_libdmg-hfsplus/7ac55ec64c96f7800d9818ce64c79670e7f02b67-3830944ef98/build/dmg/dmg String dump of section '.note.gnu.build-id': [ c] GNU [ 11] CjRa?]?^V8?v?;%n?? # this pr readelf --string-dump .note.gnu.build-id /bitcoin/depends/work/build/x86_64-apple-darwin16/native_libdmg-hfsplus/7ac55ec64c96f7800d9818ce64c79670e7f02b67-a72f53ab110/build/dmg/dmg readelf: Warning: Section '.note.gnu.build-id' was not dumped because it does not exist! ``` ACKs for top commit: laanwj: tested ACK cb9e88e Tree-SHA512: 191eed32ed0a04a908f9c1b22188180b2db2f35bae0281940f0f9da2450c5c6807cd6ff5bbcce7c933a9133387b127c3478f7a39a2918c14f17be19fd9ea19b4
Github-Pull: bitcoin#18004 Rebased-From: cb9e88e
Being backported in 18218. |
48fef5e gui: Fix race in WalletModel::pollBalanceChanged (Russell Yanofsky) 1964561 build: don't embed a build-id when building libdmg-hfsplus (fanquake) Pull request description: These are not blockers for the 0.19.1 release, as per [IRC discussion this morning](http://www.erisian.com.au/bitcoin-core-dev/log-2020-02-27.html#l-331), doesn't look like there will be an rc3. This PR can collect further backports for the 0.19 branch. Currently backports: * #18004 - build: don't embed a build-id when building libdmg-hfsplus * #18123 - gui: Fix race in WalletModel::pollBalanceChanged ACKs for top commit: promag: ACK 48fef5e. laanwj: ACK 48fef5e luke-jr: utACK 48fef5e Tree-SHA512: c7e7ddda9ee7b8015f16d39aab000e0595f85fe073f79abc1a57b3e2adb0dedc4e07e5fd918e1df5e88b7f3fbc39b57ab3382233c4354b9c2196f65fa1fa6c04
[0.19] Backports bitcoin#17858 Unbreak build with Boost 1.72.0 bitcoin#17654 cli: fix Fatal LevelDB error when specifying -blockfilterindex=basic twice bitcoin#17687 rpc: require second argument only for scantxoutset start action bitcoin#17728 wallet: Fix origfee return for bumpfee with feerate arg bitcoin#17643 test: fix "bitcoind already running" warnings on macOS bitcoin#17488 net: Log to net category for exceptions in ProcessMessages bitcoin#17762 Updates to appveyor config for VS2019 and Qt5.9.8 + msvc project fixes bitcoin#17364 Appveyor improvement - text file for vcpkg package list bitcoin#17416 Update msvc build for Visual Studio 2019 v16.4 bitcoin#17736 scripts: fix symbol-check & security-check argument passing bitcoin#17857 qt: Periodic translations update for 0.19 branch IsUsedDestination should count any known single-key address bitcoin#17621 init: Stop indexes on shutdown after ChainStateFlushed callback. bitcoin#17897 qt: Translations update pre-rc1 wallet: Reset reused transactions cache bitcoin#17843 Squashed 'src/univalue/' changes from 7890db9..98261b1 0.19: Update univalue subtree bitcoin#18100 qt: Pre-rc2 translations update [0.19] Further 0.19 backports bitcoin#18218 build: don't embed a build-id when building libdmg-hfsplus bitcoin#18004
Summary: ``` There was a reproducibility issue (IRC logs) with the osx 0.19.1rc1 gitian builds. The build-id embedded into the dmg tool was mismatching. It's possible that differing versions of binutils/ld were the cause. While it was resolved after rebuilding the base gitian image, whether an upstream package issue or fluke, we can remove the possibility of it happening in future by just not embedding a build-id into the dmg tool at all. ``` Backport of core [[bitcoin/bitcoin#18004 | PR18004]]. Test Plan: Run the Gitian OSX build twice and check the build is deterministic. Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D5665
Summary: ``` There was a reproducibility issue (IRC logs) with the osx 0.19.1rc1 gitian builds. The build-id embedded into the dmg tool was mismatching. It's possible that differing versions of binutils/ld were the cause. While it was resolved after rebuilding the base gitian image, whether an upstream package issue or fluke, we can remove the possibility of it happening in future by just not embedding a build-id into the dmg tool at all. ``` Backport of core [[bitcoin/bitcoin#18004 | PR18004]]. Test Plan: Run the Gitian OSX build twice and check the build is deterministic. Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D5665
merge bitcoin#16566...bitcoin#18004: auxillary backports
There was a reproducibility issue (IRC logs) with the osx
0.19.1rc1
gitian builds. Thebuild-id
embedded into thedmg
tool was mismatching. It's possible that differing versions of binutils/ld were the cause.While it was resolved after rebuilding the base gitian image, whether an upstream package issue or fluke, we can remove the possibility of it happening in future by just not embedding a build-id into the
dmg
tool at all. Can close if it's not deemed worth it.You can test this change using the following: