]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
guix: fix first run reproducibility defect
authortobtoht <tob@featherwallet.org>
Wed, 22 Mar 2023 00:20:16 +0000 (01:20 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 22 Mar 2023 00:22:38 +0000 (01:22 +0100)
contrib/guix/guix-build

index 28e5dfbc866329d16d8833a906352f265b280b77..9aea81535bc0a259f0681e52b50889744c896d93 100755 (executable)
@@ -346,7 +346,15 @@ INFO: Building ${VERSION:?not set} for platform triple ${HOST:?not set}:
           ...bind-mounted in container to: '$(OUTDIR_BASE=/outdir-base && outdir_for_host "$HOST")'
 EOF
 
-       rm -f "$(profiledir_for_host "${HOST}")"
+        rm -f "$(profiledir_for_host "${HOST}")"
+
+        # First run produces a different GUIX_ENVIRONMENT.
+        time-machine environment --manifest="${PWD}/contrib/guix/manifest.scm" \
+                                 --container \
+                                 --pure \
+                                 --no-cwd \
+                                 -- env HOST="$HOST"
+
 
         # Run the build script 'contrib/guix/libexec/build.sh' in the build
         # container specified by 'contrib/guix/manifest.scm'.