From: "Darrick J. Wong" <djwong@kernel.org>
To: Hongxu Jia <hongxu.jia@windriver.com>
Cc: linux-xfs@vger.kernel.org, sandeen@sandeen.net
Subject: Re: [PATCH] doc/man: support reproducible builds
Date: Tue, 18 Nov 2025 08:59:59 -0800 [thread overview]
Message-ID: <20251118165959.GL196370@frogsfrogsfrogs> (raw)
In-Reply-To: <20251118092113.2265541-1-hongxu.jia@windriver.com>
On Tue, Nov 18, 2025 at 01:21:13AM -0800, Hongxu Jia wrote:
> From: Hongxu Jia <hongxu.jia@eng.windriver.com>
>
> When compressing, do not save the original file name and
> timestamp by default (gzip -n). Make archives be reproducible
> at each build
>
> Signed-off-by: Hongxu Jia <hongxu.jia@eng.windriver.com>
Seems fine to me.
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> doc/Makefile | 2 +-
> include/buildmacros | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/doc/Makefile b/doc/Makefile
> index 83dfa38b..17b63c85 100644
> --- a/doc/Makefile
> +++ b/doc/Makefile
> @@ -14,7 +14,7 @@ include $(BUILDRULES)
>
> CHANGES.gz:
> @echo " [ZIP] $@"
> - $(Q)$(ZIP) --best -c < CHANGES > $@
> + $(Q)$(ZIP) -n --best -c < CHANGES > $@
>
> install: default
> $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
> diff --git a/include/buildmacros b/include/buildmacros
> index 9183e5bc..6ba0d515 100644
> --- a/include/buildmacros
> +++ b/include/buildmacros
> @@ -105,7 +105,7 @@ INSTALL_MAN = \
> t=$(MAN_DEST)/$$m.$(MAN_SECTION); \
> if $$first; then \
> if $(HAVE_ZIPPED_MANPAGES); then \
> - $(ZIP) -9 -c $$d > $$d.gz; _sfx=.gz; \
> + $(ZIP) -n -9 -c $$d > $$d.gz; _sfx=.gz; \
> fi; \
> u=$$m.$(MAN_SECTION)$$_sfx; \
> echo $(INSTALL) -m 644 $${d}$$_sfx $${t}$$_sfx;\
> @@ -132,6 +132,6 @@ endif
> MAN_MAKERULE = \
> @for f in *.[12345678] ""; do \
> if test ! -z "$$f"; then \
> - $(ZIP) --best -c < $$f > $$f.gz; \
> + $(ZIP) -n --best -c < $$f > $$f.gz; \
> fi; \
> done
> --
> 2.49.0
>
>
prev parent reply other threads:[~2025-11-18 17:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 9:21 [PATCH] doc/man: support reproducible builds Hongxu Jia
2025-11-18 16:59 ` Darrick J. Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251118165959.GL196370@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=hongxu.jia@windriver.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@sandeen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox