Merge bitcoin/bitcoin#36615: guix: add --no-same-owner to codesign.sh TAR_OPTIONS
What changed, and why it matters
This is a one-line fix for the Bitcoin Core release-codesigning script used in reproducible builds. When a release signer ran the signing tool as root inside a container, tar failed because it tried to preserve file ownership from the original tarball (root-owned files) but could not assign those owners in the container environment. The patch tells tar not to try to keep the original owners, which lets the signing process finish and lets the signer produce matching release signatures. It is a build-tool reliability fix, not a vulnerability in the Bitcoin network or wallet software.
No user action required. Release builders using guix-codesign should ensure they use the patched script for future releases. The change is safe to backport to release branches that use the affected Guix codesigning path.
Security signals we found
Build/release pipeline reliability fix
Prevents codesigning step failure that could block release attestation production
No change to runtime code, cryptography, or network behavior
Aligns with prior hardening in related Guix scripts
Evidence from the diff
In contrib/guix/libexec/codesign.sh, TAR_OPTIONS is changed from “–owner=0 –group=0 –numeric-owner –mtime=’@${SOURCE_DATE_EPOCH}’ –sort=name” to include –no-same-owner at the front. This prevents GNU tar from attempting to restore the recorded owner (uid 0/gid 0) when extracting the codesigning tarball, which fails in some rootless/user-namespaced container contexts and causes the entire guix-codesign flow to abort. The change aligns codesign.sh with setup.sh/build.sh where –no-same-owner was already added in a prior Guix update. The patch only affects the release maintainer’s deterministic codesigning workflow; it does not change consensus, P2P, wallet, or RPC code.
Changed components
contrib/guix/libexec/codesign.shInspect captured patch +1 / −1
### contrib/guix/libexec/codesign.sh
@@ -6,7 +6,7 @@ export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# Environment variables for determinism
-export TAR_OPTIONS="--owner=0 --group=0 --numeric-owner --mtime='@${SOURCE_DATE_EPOCH}' --sort=name"
+export TAR_OPTIONS="--no-same-owner --owner=0 --group=0 --numeric-owner --mtime='@${SOURCE_DATE_EPOCH}' --sort=name"
export TZ=UTC
# Although Guix _does_ set umask when building its own packages (in our case,Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.