From 81efff4802c6dca7ecfc043b3615b6e7cdb4af90 Mon Sep 17 00:00:00 2001 From: mattviasat <129442476+mattviasat@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:32:14 -0500 Subject: [PATCH 1/2] stops embedding a timestamp in gzip header Identical input data should produce identical output date. --- makeself.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makeself.sh b/makeself.sh index a2d37ef..3b49aad 100755 --- a/makeself.sh +++ b/makeself.sh @@ -499,7 +499,10 @@ fi case $COMPRESS in gzip) - GZIP_CMD="gzip -c$COMPRESS_LEVEL" + # --no-name: omit the filename/timestamp from the gzip member + # header. Without it, the compressed output differ on every run even + # when the input is byte-for-byte identical. + GZIP_CMD="gzip --no-name -c$COMPRESS_LEVEL" GUNZIP_CMD="gzip -cd" ;; pigz) From 5ff0624c67beb86b74e377b70e8b79c61d7cd16e Mon Sep 17 00:00:00 2001 From: mattviasat <129442476+mattviasat@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:57:07 -0500 Subject: [PATCH 2/2] enable testByteforbyte on GNU tar --- test/datetest | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/datetest b/test/datetest index 8a83f2a..9c6f5df 100644 --- a/test/datetest +++ b/test/datetest @@ -94,10 +94,9 @@ testByteforbyte() { date='Sat Mar 3 19:35:21 EST 2016' - # bsdtar does not have option --mtime - # TODO: unstable test: first second differ: char 242, line 10 - - startSkipping + # GNU tar supports --tar-extra's --mtime option used below. + # bsdtar (Mac/BSD) does not. + tar --version 2>/dev/null | grep -q GNU || startSkipping # Exercise ${SUT} --packaging-date "${date}" --tar-extra "--mtime 20160303" \