Skip to content

Make the gzipped man pages reproducible

When using gzip in a packaging context one should also pass the -n/--no-name so that the produced archives are (bit for bit) reproducible.

See https://wiki.debian.org/ReproducibleBuilds/TimestampsInGzipHeaders for more information.

Without this option set the following diffs are there with regard to reproducible builds:

--- /tmp/rebuilderd7qeVrs/inputs/qastools-1.4.0-1-x86_64.pkg.tar.zst
+++ /tmp/rebuilderd7qeVrs/out/qastools-1.4.0-1-x86_64.pkg.tar.zst
usr/share/man/man1/qasconfig.1.gz
─ filetype from file(1)
@@ -1 +1 @@
-gzip compressed data, was "manpage.1", last modified: Sat Feb 17 15:36:25 2024, max compression, from Unix
+gzip compressed data, was "manpage.1", last modified: Sat Aug 24 16:51:27 2024, max compression, from Unix
usr/share/man/man1/qashctl.1.gz
─ filetype from file(1)
@@ -1 +1 @@
-gzip compressed data, was "manpage.1", last modified: Sat Feb 17 15:36:26 2024, max compression, from Unix
+gzip compressed data, was "manpage.1", last modified: Sat Aug 24 16:51:27 2024, max compression, from Unix
usr/share/man/man1/qasmixer.1.gz
─ filetype from file(1)
@@ -1 +1 @@
-gzip compressed data, was "manpage.1", last modified: Sat Feb 17 15:36:26 2024, max compression, from Unix
+gzip compressed data, was "manpage.1", last modified: Sat Aug 24 16:51:27 2024, max compression, from Unix

https://reproducible.archlinux.org/api/v0/builds/659343/diffoscope

Edited by Christian Heusel

Merge request reports

Loading