summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2020-09-21 00:25:50 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-10-09 16:57:30 +0200
commit51ccdbfbed79bae4b9c2529ec980de4508455a47 (patch)
treebb98ebc6dd0a8231d9221e69e95b6783e080c50c /scripts
parentkbuild: split the build log of kallsyms (diff)
downloadlinux-51ccdbfbed79bae4b9c2529ec980de4508455a47.tar.xz
linux-51ccdbfbed79bae4b9c2529ec980de4508455a47.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package/builddeb2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 44f212e37935..30e8c6a20171 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"