Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: Add -n to gzip #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

robertlinux
Copy link

To make the resulting files reproducible.

-n --no-name
When compressing, do not save the original file name and timestamp by default.

To make the resulting files reproducible.

-n --no-name
    When compressing, do not save the original file name and timestamp by default.

Signed-off-by: Robert Yang <[email protected]>
gzip -c bootchartd.1 > $(DESTDIR)$(MANDIR)/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).1.gz
gzip -c pybootchartgui.1 > $(DESTDIR)$(MANDIR)/pybootchartgui.1.gz
gzip -n -c bootchart2.1 > $(DESTDIR)$(MANDIR)/bootchart2.1.gz
gzip -n -c bootchartd.1 > $(DESTDIR)$(MANDIR)/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).1.gz
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this changing behavior if PROGRAM_PREFIX / PROGRAM_SUFFIX are set?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so according to "man gzip":
-n --no-name
When compressing, do not save the original file name and timestamp by default. (The original name is always saved if the
name had to be truncated.) When decompressing, do not restore the original file name if present (remove only the gzip suf-
fix from the compressed file name) and do not restore the original timestamp if present (copy it from the compressed file).
This option is the default when decompressing.

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