Skip to content

Commit c214e52

Browse files
committed
guix: Rename unsigned.tar.gz to codesigning.tar.gz
The tarballs used for codesigning are more than merely unsigned, they also contain scripts and other data for codesigning. Rename them to codesigning.tar.gz to distinguish from tarballs containing actually just the unsigned binaries.
1 parent ebe4cac commit c214e52

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

contrib/guix/guix-codesign

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fi
137137

138138

139139
################
140-
# Unsigned tarballs SHOULD exist
140+
# Codesigning tarballs SHOULD exist
141141
################
142142

143143
# Usage: outdir_for_host HOST SUFFIX
@@ -149,13 +149,13 @@ outdir_for_host() {
149149
}
150150

151151

152-
unsigned_tarball_for_host() {
152+
codesigning_tarball_for_host() {
153153
case "$1" in
154154
*mingw*)
155-
echo "$(outdir_for_host "$1")/${DISTNAME}-win64-unsigned.tar.gz"
155+
echo "$(outdir_for_host "$1")/${DISTNAME}-win64-codesigning.tar.gz"
156156
;;
157157
*darwin*)
158-
echo "$(outdir_for_host "$1")/${DISTNAME}-${1}-unsigned.tar.gz"
158+
echo "$(outdir_for_host "$1")/${DISTNAME}-${1}-codesigning.tar.gz"
159159
;;
160160
*)
161161
exit 1
@@ -164,22 +164,22 @@ unsigned_tarball_for_host() {
164164
}
165165

166166
# Accumulate a list of build directories that already exist...
167-
hosts_unsigned_tarball_missing=""
167+
hosts_codesigning_tarball_missing=""
168168
for host in $HOSTS; do
169-
if [ ! -e "$(unsigned_tarball_for_host "$host")" ]; then
170-
hosts_unsigned_tarball_missing+=" ${host}"
169+
if [ ! -e "$(codesigning_tarball_for_host "$host")" ]; then
170+
hosts_codesigning_tarball_missing+=" ${host}"
171171
fi
172172
done
173173

174-
if [ -n "$hosts_unsigned_tarball_missing" ]; then
174+
if [ -n "$hosts_codesigning_tarball_missing" ]; then
175175
# ...so that we can print them out nicely in an error message
176176
cat << EOF
177-
ERR: Unsigned tarballs do not exist
177+
ERR: Codesigning tarballs do not exist
178178
...
179179
180180
EOF
181-
for host in $hosts_unsigned_tarball_missing; do
182-
echo " ${host} '$(unsigned_tarball_for_host "$host")'"
181+
for host in $hosts_codesigning_tarball_missing; do
182+
echo " ${host} '$(codesigning_tarball_for_host "$host")'"
183183
done
184184
exit 1
185185
fi
@@ -371,7 +371,7 @@ EOF
371371
OUTDIR="$(OUTDIR_BASE=/outdir-base && outdir_for_host "$HOST" codesigned)" \
372372
DIST_ARCHIVE_BASE=/outdir-base/dist-archive \
373373
DETACHED_SIGS_REPO=/detached-sigs \
374-
UNSIGNED_TARBALL="$(OUTDIR_BASE=/outdir-base && unsigned_tarball_for_host "$HOST")" \
374+
CODESIGNING_TARBALL="$(OUTDIR_BASE=/outdir-base && codesigning_tarball_for_host "$HOST")" \
375375
bash -c "cd /bitcoin && bash contrib/guix/libexec/codesign.sh"
376376
)
377377

contrib/guix/libexec/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ mkdir -p "$DISTSRC"
296296
find . -print0 \
297297
| sort --zero-terminated \
298298
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
299-
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.tar.gz" \
300-
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.tar.gz" && exit 1 )
299+
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}-codesigning.tar.gz" \
300+
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-codesigning.tar.gz" && exit 1 )
301301
)
302302
;;
303303
esac
@@ -378,8 +378,8 @@ mkdir -p "$DISTSRC"
378378
find . -print0 \
379379
| sort --zero-terminated \
380380
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
381-
| gzip -9n > "${OUTDIR}/${DISTNAME}-win64-unsigned.tar.gz" \
382-
|| ( rm -f "${OUTDIR}/${DISTNAME}-win64-unsigned.tar.gz" && exit 1 )
381+
| gzip -9n > "${OUTDIR}/${DISTNAME}-win64-codesigning.tar.gz" \
382+
|| ( rm -f "${OUTDIR}/${DISTNAME}-win64-codesigning.tar.gz" && exit 1 )
383383
)
384384
;;
385385
esac

contrib/guix/libexec/codesign.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
# Check that required environment variables are set
2828
cat << EOF
2929
Required environment variables as seen inside the container:
30-
UNSIGNED_TARBALL: ${UNSIGNED_TARBALL:?not set}
30+
CODESIGNING_TARBALL: ${CODESIGNING_TARBALL:?not set}
3131
DETACHED_SIGS_REPO: ${DETACHED_SIGS_REPO:?not set}
3232
DIST_ARCHIVE_BASE: ${DIST_ARCHIVE_BASE:?not set}
3333
DISTNAME: ${DISTNAME:?not set}
@@ -63,7 +63,7 @@ mkdir -p "$DISTSRC"
6363
(
6464
cd "$DISTSRC"
6565

66-
tar -xf "$UNSIGNED_TARBALL"
66+
tar -xf "$CODESIGNING_TARBALL"
6767

6868
mkdir -p codesignatures
6969
tar -C codesignatures -xf "$CODESIGNATURE_GIT_ARCHIVE"
@@ -105,7 +105,7 @@ mv --no-target-directory "$OUTDIR" "$ACTUAL_OUTDIR" \
105105
(
106106
cd /outdir-base
107107
{
108-
echo "$UNSIGNED_TARBALL"
108+
echo "$CODESIGNING_TARBALL"
109109
echo "$CODESIGNATURE_GIT_ARCHIVE"
110110
find "$ACTUAL_OUTDIR" -type f
111111
} | xargs realpath --relative-base="$PWD" \

doc/release-process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Then open a Pull Request to the [guix.sigs repository](https://github.com/bitcoi
164164

165165
In the `guix-build-${VERSION}/output/x86_64-apple-darwin` and `guix-build-${VERSION}/output/arm64-apple-darwin` directories:
166166

167-
tar xf bitcoin-osx-unsigned.tar.gz
167+
tar xf bitcoin-${VERSION}-${ARCH}-apple-darwin-codesigning.tar.gz
168168
./detached-sig-create.sh /path/to/codesign.p12
169169
Enter the keychain password and authorize the signature
170170
signature-osx.tar.gz will be created
@@ -173,7 +173,7 @@ In the `guix-build-${VERSION}/output/x86_64-apple-darwin` and `guix-build-${VERS
173173

174174
In the `guix-build-${VERSION}/output/x86_64-w64-mingw32` directory:
175175

176-
tar xf bitcoin-win-unsigned.tar.gz
176+
tar xf bitcoin-${VERSION}-win64-codesigning.tar.gz
177177
./detached-sig-create.sh -key /path/to/codesign.key
178178
Enter the passphrase for the key when prompted
179179
signature-win.tar.gz will be created

0 commit comments

Comments
 (0)