Skip to content

Commit 51ccdbf

Browse files
guillemjmasahir0y
authored andcommitted
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 <guillem@hadrons.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 08beb66 commit 51ccdbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/package/builddeb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ create_package() {
3131
mkdir -p "$pdir/usr/share/doc/$pname"
3232
cp debian/copyright "$pdir/usr/share/doc/$pname/"
3333
cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian"
34-
gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
34+
gzip -n -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
3535
sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \
3636
| xargs -r0 md5sum > DEBIAN/md5sums"
3737

0 commit comments

Comments
 (0)