From 41aebef1457bbbbeca865e1d655f0b2cdef62df6 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 19 Mar 2024 09:03:13 +0100 Subject: [PATCH] guix: fix flatpak sha256sums.part --- contrib/flatpak/make_flatpak.sh | 2 +- contrib/guix/guix-attest | 4 ---- contrib/guix/guix-build | 2 ++ 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/contrib/flatpak/make_flatpak.sh b/contrib/flatpak/make_flatpak.sh index 72e53e4..4f01c83 100644 --- a/contrib/flatpak/make_flatpak.sh +++ b/contrib/flatpak/make_flatpak.sh @@ -101,4 +101,4 @@ mv "${DISTNAME}-flatpak.zip" /output cd /output rm feather -sha256sum "${DISTNAME}-flatpak.zip" > SHA256SUMS.part \ No newline at end of file +sha256sum "${DISTNAME}-flatpak.zip" > "${LOGDIR}/SHA256SUMS.part" \ No newline at end of file diff --git a/contrib/guix/guix-attest b/contrib/guix/guix-attest index 3f016d6..1f07a20 100755 --- a/contrib/guix/guix-attest +++ b/contrib/guix/guix-attest @@ -121,8 +121,6 @@ if (( ${#sha256sum_fragments[@]} )); then for logdir in "${sha256sum_fragments[@]}"; do echo " '$logdir'" case "$logdir" in - "$LOGDIR_BASE"/*.pack/SHA256SUMS.part) - ;; "$LOGDIR_BASE"/*-codesigned/SHA256SUMS.part) codesigned_fragments+=("$logdir") ;; @@ -137,8 +135,6 @@ else exit 1 fi -noncodesigned_fragments+=("$OUTDIR_BASE/x86_64-linux-gnu.pack/SHA256SUMS.part") - ############## ## Attest ## ############## diff --git a/contrib/guix/guix-build b/contrib/guix/guix-build index 63c05d1..2692697 100755 --- a/contrib/guix/guix-build +++ b/contrib/guix/guix-build @@ -471,6 +471,7 @@ EOF --share="$PWD"=/feather \ --share="$PACK"=/pack \ --share="$(outdir_for_host "$host")"=/output \ + --share="$LOGDIR_BASE"=/logdir-base \ --share="$FEATHER_BIN"=/feather-bin \ --keep-failed \ --fallback \ @@ -479,6 +480,7 @@ EOF ${ADDITIONAL_GUIX_COMMON_FLAGS} ${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \ -- env DISTNAME="$DISTNAME" \ SOURCE_DATE_EPOCH="${COMMIT_TIMESTAMP:?unable to determine value}" \ + LOGDIR="$(LOGDIR_BASE=/logdir-base && logdir_for_host "$host")" \ VERSION="$VERSION" \ bash -c "cd /feather && \ bash contrib/flatpak/make_flatpak.sh"