]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
builddeb: Pass -n to gzip for reproducible packages
authorGuillem Jover <guillem@hadrons.org>
Sun, 20 Sep 2020 22:25:50 +0000 (00:25 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 9 Oct 2020 14:57:30 +0000 (23:57 +0900)
We should not be encoding the timestamp, otherwise we end up generating
unreproducible files that cascade into unreproducible packages.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/builddeb

index 44f212e379353da65b9275b9cba0f543335617e4..30e8c6a201717c91c3b02ce318ccccccbdc1baae 100755 (executable)
@@ -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"