From 9acb6a5339e2997f0fe0c0901d9b15fc94a9d30b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 17 Oct 2023 16:24:41 +0100 Subject: [PATCH] update/release: reproducibility test without xz in testing, between two linux distros, i got different src tarball hashes, but same hashes when run twice on each i'm using pretty solid options in tar, and riku came up with the idea that maybe xz might be causing issue. i'm ruling this out by running the release script with this patch, on the same two systems, which will create a .tar file instead, and i'll compare hashes. Signed-off-by: Leah Rowe --- script/update/project/release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/update/project/release b/script/update/project/release index e7973537..ee41c916 100755 --- a/script/update/project/release +++ b/script/update/project/release @@ -232,11 +232,11 @@ mktarball() [ "${2%/*}" = "${2}" ] || x_ mkdir -p "${2%/*}" if [ "${tar_implementation% *}" = "tar (GNU tar)" ]; then tar --sort=name --owner=root:0 --group=root:0 \ - --mtime="UTC 2023-10-14" -c "${1}" | xz -T0 -9e > "${2}" || \ + --mtime="UTC 2023-10-14" -c "${1}" > "${2}" || \ err "mktarball 1, ${1}" else # TODO: reproducible tarballs on non-GNU systems - tar -c "${1}" | xz -T0 -9e > "${2}" || err "mktarball 2, ${1}" + tar -c "${1}" > "${2}" || err "mktarball 2, ${1}" fi ( [ "${2%/*}" != "${2}" ] && x_ cd "${2%/*}"