refactor: Avoid -W*-whitespace in git archive #33869

pull maflcko wants to merge 2 commits into bitcoin:master from maflcko:2511-git-archive-ws changing 2 files +14 −4
  1. maflcko commented at 8:41 AM on November 13, 2025: member

    Otherwise, compilation with GCC-15+ will warn about it:

    src/clientversion.cpp:33:79: error: trailing whitespace [-Werror=trailing-whitespace=]
       33 | //! git will put "#define GIT_COMMIT_ID ..." on the next line inside archives.
    

    Follow-up to #32482 (comment)

    Can be tested via git archive --output=/tmp/a.tar HEAD

  2. refactor: Avoid -W*-whitespace in git archive faf99ae379
  3. DrahtBot added the label Refactoring on Nov 13, 2025
  4. DrahtBot commented at 8:41 AM on November 13, 2025: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33869.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK fanquake

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. fanquake commented at 9:30 AM on November 13, 2025: member

    Should we modify one job to use the archive? We should probably be catching, and minimising any differences, like this, between building from source, and the tarball.

  6. maflcko commented at 9:37 AM on November 13, 2025: member

    Should we modify one job to use the archive?

    Possibly, but I don't think any job is running with gcc-15, so the benefits here would be limited. Though, I can modify my nightly matrix to use archives explicitly, instead of by accident of git not being present.

    We should probably be catching, and minimising any differences, like this, between building from source, and the tarball.

    I want to keep the changes here minimal. Reworking this is already tracked in #31999 and the related pulls, so maybe the discussion can continue there?

  7. fanquake commented at 10:19 AM on November 13, 2025: member

    Possibly, but I don't think any job is running with gcc-15, so the benefits here would be limited.

    I'm just thinking generally, not about this single warning, or gcc-15. Happy for it to best changed in a followup, or in another related change.

  8. ci: Run macos tasks in a git archive, not git checkout
    This confirms that compiling this way is possible at all.
    fa95353902
  9. maflcko force-pushed on Nov 13, 2025
  10. DrahtBot added the label CI failed on Nov 13, 2025
  11. DrahtBot removed the label CI failed on Nov 13, 2025
  12. fanquake commented at 11:32 AM on November 17, 2025: member

    ACK fa95353902b7a6f73f094e78106088ab3c16ce14

    On a rebased branch:

    // git will expand the next line to "#define GIT_COMMIT_ID ..." inside archives:
    //
    #define GIT_COMMIT_ID "84f39b282de0836ca5ad6166daafecf15e4c813d"
    
    ./build/bin/bitcoind --version
    Bitcoin Core daemon version v30.99.0-g84f39b282de0836ca5ad6166daafecf15e4c813d bitcoind
    
  13. fanquake merged this on Nov 17, 2025
  14. fanquake closed this on Nov 17, 2025

  15. maflcko deleted the branch on Nov 17, 2025
  16. hebasto commented at 8:28 PM on November 17, 2025: member

    post-merge ACK.

  17. stringintech referenced this in commit 52fffa1e5d on Nov 24, 2025
  18. alexanderwiederin referenced this in commit 7334556a3f on Dec 1, 2025
  19. yuvicc referenced this in commit 4a77a3b8eb on Dec 16, 2025
  20. stickies-v referenced this in commit 9fa736f8e4 on Jan 22, 2026
  21. Kino1994 referenced this in commit 330e502b90 on Jun 28, 2026
  22. BigcoinBGC referenced this in commit 3307f5e5f8 on Jun 30, 2026
  23. Kino1994 referenced this in commit 731402ea3e on Aug 19, 2026
  24. Sjors referenced this in commit ac1a8aa01f on Nov 11, 2026
  25. Sjors referenced this in commit 1d2d0f3271 on Nov 11, 2026
  26. bitcoin locked this on Nov 17, 2026

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: 2026-12-01 02:52 UTC

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