mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 23:42:33 +02:00
guix: Ensure EPOCH_SOURCE_DATE does not include GPG information
If the user has set log.showSignature=true in their git config, then the git log will always output GPG signature information. Since git log is used to set EPOCH_SOURCE_DATE, this will mistakenly have GPG signature information in it which causes issues for the build. To avoid this issue, we override the config and force log.showSignature=false.
This commit is contained in:
parent
43225f0a2a
commit
9b313dfef1
@ -232,7 +232,7 @@ host_to_commonname() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Determine the reference time used for determinism (overridable by environment)
|
# Determine the reference time used for determinism (overridable by environment)
|
||||||
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git log --format=%at -1)}"
|
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git -c log.showSignature=false log --format=%at -1)}"
|
||||||
|
|
||||||
# Execute "$@" in a pinned, possibly older version of Guix, for reproducibility
|
# Execute "$@" in a pinned, possibly older version of Guix, for reproducibility
|
||||||
# across time.
|
# across time.
|
||||||
|
@ -220,7 +220,7 @@ fi
|
|||||||
JOBS="${JOBS:-$(nproc)}"
|
JOBS="${JOBS:-$(nproc)}"
|
||||||
|
|
||||||
# Determine the reference time used for determinism (overridable by environment)
|
# Determine the reference time used for determinism (overridable by environment)
|
||||||
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git log --format=%at -1)}"
|
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git -c log.showSignature=false log --format=%at -1)}"
|
||||||
|
|
||||||
# Execute "$@" in a pinned, possibly older version of Guix, for reproducibility
|
# Execute "$@" in a pinned, possibly older version of Guix, for reproducibility
|
||||||
# across time.
|
# across time.
|
||||||
|
Loading…
Reference in New Issue
Block a user