diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:34:19 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:34:19 +0100 |
commit | 8ed486ebe6f79efe0f3203dc049fca9edc367bd1 (patch) | |
tree | 535a396ea1dc2ffc3674228ff8e446a3f609d00e /tests | |
parent | 6e0dd9f6738f58749a9fe31cd0dfcf9fc10cdcfe (diff) |
Merge pull request #9225 from drupol/nixpkgs-pr-107251/make-gnutar-reproducible
fix: make sure `tar` reproducibility flags are set
(cherry picked from commit 28dddde0aca978114eaef00a14a2ab14b2459f4a)
Change-Id: I57c4d4374f5195099e6d763827b6d7d05785b3a8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/tarball.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/tarball.sh b/tests/functional/tarball.sh index 6e621a28c..e59ee400e 100644 --- a/tests/functional/tarball.sh +++ b/tests/functional/tarball.sh @@ -18,7 +18,7 @@ test_tarball() { local compressor="$2" tarball=$TEST_ROOT/tarball.tar$ext - (cd $TEST_ROOT && tar cf - tarball) | $compressor > $tarball + (cd $TEST_ROOT && GNUTAR_REPRODUCIBLE= tar --mtime=$tarroot/default.nix --owner=0 --group=0 --numeric-owner --sort=name -c -f - tarball) | $compressor > $tarball nix-env -f file://$tarball -qa --out-path | grepQuiet dependencies |