Skip to content

Commit d7995d8

Browse files
authored
Merge pull request #1503 from psgreco/master-buildfixes
Minor fixes for guix and regular builds
2 parents eb7d626 + 000227d commit d7995d8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

contrib/guix/guix-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git -c log.showSignature=false log --f
238238
# across time.
239239
time-machine() {
240240
# shellcheck disable=SC2086
241-
guix time-machine --url=https://git.savannah.gnu.org/git/guix.git \
241+
guix time-machine --url=https://codeberg.org/guix.git \
242242
--commit=ae03f401381e956c4c41b4cf495cbde964fa43d0 \
243243
--cores="$JOBS" \
244244
--keep-failed \

contrib/guix/guix-codesign

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git -c log.showSignature=false log --f
226226
# across time.
227227
time-machine() {
228228
# shellcheck disable=SC2086
229-
guix time-machine --url=https://git.savannah.gnu.org/git/guix.git \
229+
guix time-machine --url=https://codeberg.org/guix.git \
230230
--commit=ae03f401381e956c4c41b4cf495cbde964fa43d0 \
231231
--cores="$JOBS" \
232232
--keep-failed \

share/genbuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$
2828
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
2929
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 "$RAWDESC" 2>/dev/null)" ]; then
3030
git diff-index --quiet HEAD -- && GIT_TAG=$RAWDESC
31+
# Replace elements- tag with the corresponding v
32+
case "$GIT_TAG" in elements-*) GIT_TAG="v${GIT_TAG#elements-}";; esac
3133
fi
3234

3335
# otherwise generate suffix from git, i.e. string like "59887e8-dirty"

0 commit comments

Comments
 (0)