Skip to content

Reproducible Builds: don't embed timestamps in info pages - #780

Merged
shirok merged 1 commit into
shirok:masterfrom
kpcyrd:repro
Aug 25, 2021
Merged

shirok merged 1 commit into
shirok:masterfrom
kpcyrd:repro

Conversation

@kpcyrd

@kpcyrd kpcyrd commented Aug 25, 2021

Copy link
Copy Markdown
Contributor

This resolves an issue with reproducible builds for Arch Linux (diffoscope), gzip -n disables these timestamps:

│ ├── usr/share/info/gauche-refe.info-1.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-1", last modified: Thu May 27 14:34:04 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-1", last modified: Thu Aug 12 18:05:06 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-10.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-10", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-10", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-11.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-11", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-11", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-12.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-12", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-12", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-2.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-2", last modified: Thu May 27 14:34:06 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-2", last modified: Thu Aug 12 18:05:07 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-3.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-3", last modified: Thu May 27 14:34:07 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-3", last modified: Thu Aug 12 18:05:08 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-4.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-4", last modified: Thu May 27 14:34:08 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-4", last modified: Thu Aug 12 18:05:09 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-5.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-5", last modified: Thu May 27 14:34:09 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-5", last modified: Thu Aug 12 18:05:10 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-6.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-6", last modified: Thu May 27 14:34:10 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-6", last modified: Thu Aug 12 18:05:11 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-7.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-7", last modified: Thu May 27 14:34:12 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-7", last modified: Thu Aug 12 18:05:12 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-8.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-8", last modified: Thu May 27 14:34:13 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-8", last modified: Thu Aug 12 18:05:13 2021, from Unix
│ ├── usr/share/info/gauche-refe.info-9.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info-9", last modified: Thu May 27 14:34:15 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info-9", last modified: Thu Aug 12 18:05:14 2021, from Unix
│ ├── usr/share/info/gauche-refe.info.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refe.info", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refe.info", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-1.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-1", last modified: Thu May 27 14:34:04 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-1", last modified: Thu Aug 12 18:05:06 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-10.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-10", last modified: Thu May 27 14:34:13 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-10", last modified: Thu Aug 12 18:05:13 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-11.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-11", last modified: Thu May 27 14:34:14 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-11", last modified: Thu Aug 12 18:05:14 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-12.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-12", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-12", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-13.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-13", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-13", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-14.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-14", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-14", last modified: Thu Aug 12 18:05:15 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-2.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-2", last modified: Thu May 27 14:34:05 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-2", last modified: Thu Aug 12 18:05:07 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-3.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-3", last modified: Thu May 27 14:34:06 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-3", last modified: Thu Aug 12 18:05:07 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-4.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-4", last modified: Thu May 27 14:34:07 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-4", last modified: Thu Aug 12 18:05:08 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-5.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-5", last modified: Thu May 27 14:34:08 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-5", last modified: Thu Aug 12 18:05:09 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-6.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-6", last modified: Thu May 27 14:34:09 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-6", last modified: Thu Aug 12 18:05:09 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-7.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-7", last modified: Thu May 27 14:34:10 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-7", last modified: Thu Aug 12 18:05:10 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-8.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-8", last modified: Thu May 27 14:34:11 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-8", last modified: Thu Aug 12 18:05:11 2021, from Unix
│ ├── usr/share/info/gauche-refj.info-9.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info-9", last modified: Thu May 27 14:34:12 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info-9", last modified: Thu Aug 12 18:05:12 2021, from Unix
│ ├── usr/share/info/gauche-refj.info.gz
│ │ ├── filetype from file(1)
│ │ │ @@ -1 +1 @@
│ │ │ -gzip compressed data, was "gauche-refj.info", last modified: Thu May 27 14:34:16 2021, from Unix
│ │ │ +gzip compressed data, was "gauche-refj.info", last modified: Thu Aug 12 18:05:15 2021, from Unix

Thanks!

@shirok

shirok commented Aug 25, 2021

Copy link
Copy Markdown
Owner

Ah, didn't realize gzip embeds timestamp by default. Thanks.

@shirok
shirok merged commit 30fd36e into shirok:master Aug 25, 2021
@kpcyrd
kpcyrd deleted the repro branch August 25, 2021 17:30
@kpcyrd

kpcyrd commented Aug 25, 2021

Copy link
Copy Markdown
Contributor Author

No problem, thanks for merging this so quickly! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants