diff options
3 files changed, 55 insertions, 1 deletions
diff --git a/meta-filesystems/conf/layer.conf b/meta-filesystems/conf/layer.conf index 4d147b7139..f3525365e7 100644 --- a/meta-filesystems/conf/layer.conf +++ b/meta-filesystems/conf/layer.conf | |||
| @@ -25,5 +25,4 @@ BBFILES_DYNAMIC += " \ | |||
| 25 | # Please keep this list sorted | 25 | # Please keep this list sorted |
| 26 | OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES += " \ | 26 | OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES += " \ |
| 27 | e2tools-ptest \ | 27 | e2tools-ptest \ |
| 28 | xfsprogs-doc \ | ||
| 29 | " | 28 | " |
diff --git a/meta-filesystems/recipes-utils/xfsprogs/files/0001-doc-man-support-reproducible-builds.patch b/meta-filesystems/recipes-utils/xfsprogs/files/0001-doc-man-support-reproducible-builds.patch new file mode 100644 index 0000000000..182d45e4e2 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfsprogs/files/0001-doc-man-support-reproducible-builds.patch | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | From c98d9022377e88f8cc2d557a4ffd321e6f2dd320 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@eng.windriver.com> | ||
| 3 | Date: Tue, 18 Nov 2025 01:04:27 -0800 | ||
| 4 | Subject: [PATCH] doc/man: support reproducible builds | ||
| 5 | |||
| 6 | When compressing, do not save the original file name and | ||
| 7 | timestamp by default (gzip -n). Make archives be reproducible | ||
| 8 | at each build | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [linux-xfs@vger.kernel.org] | ||
| 11 | |||
| 12 | Signed-off-by: Hongxu Jia <hongxu.jia@eng.windriver.com> | ||
| 13 | --- | ||
| 14 | doc/Makefile | 2 +- | ||
| 15 | include/buildmacros | 4 ++-- | ||
| 16 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/doc/Makefile b/doc/Makefile | ||
| 19 | index 83dfa38b..17b63c85 100644 | ||
| 20 | --- a/doc/Makefile | ||
| 21 | +++ b/doc/Makefile | ||
| 22 | @@ -14,7 +14,7 @@ include $(BUILDRULES) | ||
| 23 | |||
| 24 | CHANGES.gz: | ||
| 25 | @echo " [ZIP] $@" | ||
| 26 | - $(Q)$(ZIP) --best -c < CHANGES > $@ | ||
| 27 | + $(Q)$(ZIP) -n --best -c < CHANGES > $@ | ||
| 28 | |||
| 29 | install: default | ||
| 30 | $(INSTALL) -m 755 -d $(PKG_DOC_DIR) | ||
| 31 | diff --git a/include/buildmacros b/include/buildmacros | ||
| 32 | index 9183e5bc..6ba0d515 100644 | ||
| 33 | --- a/include/buildmacros | ||
| 34 | +++ b/include/buildmacros | ||
| 35 | @@ -105,7 +105,7 @@ INSTALL_MAN = \ | ||
| 36 | t=$(MAN_DEST)/$$m.$(MAN_SECTION); \ | ||
| 37 | if $$first; then \ | ||
| 38 | if $(HAVE_ZIPPED_MANPAGES); then \ | ||
| 39 | - $(ZIP) -9 -c $$d > $$d.gz; _sfx=.gz; \ | ||
| 40 | + $(ZIP) -n -9 -c $$d > $$d.gz; _sfx=.gz; \ | ||
| 41 | fi; \ | ||
| 42 | u=$$m.$(MAN_SECTION)$$_sfx; \ | ||
| 43 | echo $(INSTALL) -m 644 $${d}$$_sfx $${t}$$_sfx;\ | ||
| 44 | @@ -132,6 +132,6 @@ endif | ||
| 45 | MAN_MAKERULE = \ | ||
| 46 | @for f in *.[12345678] ""; do \ | ||
| 47 | if test ! -z "$$f"; then \ | ||
| 48 | - $(ZIP) --best -c < $$f > $$f.gz; \ | ||
| 49 | + $(ZIP) -n --best -c < $$f > $$f.gz; \ | ||
| 50 | fi; \ | ||
| 51 | done | ||
| 52 | -- | ||
| 53 | 2.49.0 | ||
| 54 | |||
diff --git a/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_6.6.0.bb b/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_6.6.0.bb index 907b875718..80bce6f939 100644 --- a/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_6.6.0.bb +++ b/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_6.6.0.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \ | |||
| 12 | file://0001-support-usrmerge.patch \ | 12 | file://0001-support-usrmerge.patch \ |
| 13 | file://0004-configure-Use-AC_SYS_LARGERFILE-autoconf-macro.patch \ | 13 | file://0004-configure-Use-AC_SYS_LARGERFILE-autoconf-macro.patch \ |
| 14 | file://0005-Replace-off64_t-stat64-with-off_t-stat.patch \ | 14 | file://0005-Replace-off64_t-stat64-with-off_t-stat.patch \ |
| 15 | file://0001-doc-man-support-reproducible-builds.patch \ | ||
| 15 | " | 16 | " |
| 16 | SRC_URI[sha256sum] = "50ca2f4676df8fab4cb4c3ef3dd512d5551e6844d40a65a31d5b8e03593d22df" | 17 | SRC_URI[sha256sum] = "50ca2f4676df8fab4cb4c3ef3dd512d5551e6844d40a65a31d5b8e03593d22df" |
| 17 | inherit autotools-brokensep pkgconfig | 18 | inherit autotools-brokensep pkgconfig |
