From: Guillem Jover Date: Sun, 20 Sep 2020 22:25:50 +0000 (+0200) Subject: builddeb: Pass -n to gzip for reproducible packages X-Git-Tag: v5.10-rc1~51^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51ccdbfbed79bae4b9c2529ec980de4508455a47;p=thirdparty%2Flinux.git builddeb: Pass -n to gzip for reproducible packages We should not be encoding the timestamp, otherwise we end up generating unreproducible files that cascade into unreproducible packages. Signed-off-by: Guillem Jover Signed-off-by: Masahiro Yamada --- diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 44f212e379353..30e8c6a201717 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -31,7 +31,7 @@ create_package() { mkdir -p "$pdir/usr/share/doc/$pname" cp debian/copyright "$pdir/usr/share/doc/$pname/" cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian" - gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian" + gzip -n -9 "$pdir/usr/share/doc/$pname/changelog.Debian" sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \ | xargs -r0 md5sum > DEBIAN/md5sums"