When compressing docs, 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 <[email protected]>
---
 meta-oe/conf/layer.conf                       |  1 -
 .../0015-support-reproducible-builds.patch    | 51 +++++++++++++++++++
 .../libhugetlbfs/libhugetlbfs_2.24.bb         |  1 +
 3 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/0015-support-reproducible-builds.patch

diff --git a/meta-oe/conf/layer.conf b/meta-oe/conf/layer.conf
index 760edbce3e..23af8d0183 100644
--- a/meta-oe/conf/layer.conf
+++ b/meta-oe/conf/layer.conf
@@ -189,7 +189,6 @@ OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES += " \
     libdbus-cxx-dev \
     libforms \
     libfsverity0 \
-    libhugetlbfs-doc \
     libiio-src \
     libjcat-dbg \
     libjcat-ptest \
diff --git 
a/meta-oe/recipes-benchmark/libhugetlbfs/files/0015-support-reproducible-builds.patch
 
b/meta-oe/recipes-benchmark/libhugetlbfs/files/0015-support-reproducible-builds.patch
new file mode 100644
index 0000000000..648a5e3c56
--- /dev/null
+++ 
b/meta-oe/recipes-benchmark/libhugetlbfs/files/0015-support-reproducible-builds.patch
@@ -0,0 +1,51 @@
+From 437b7b143072b088ca34e10165abed04973280a3 Mon Sep 17 00:00:00 2001
+From: Hongxu Jia <[email protected]>
+Date: Wed, 5 Nov 2025 15:22:34 +0800
+Subject: [PATCH] support reproducible builds
+
+When compressing, do not save the original file name and
+timestamp by default (gzip -n). Make archives be reproducible
+at each build
+
+Upstream-Status: Submitted 
[https://github.com/libhugetlbfs/libhugetlbfs/pull/108]
+
+Signed-off-by: Hongxu Jia <[email protected]>
+---
+ Makefile.in | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 25be577..e4037af 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -446,11 +446,11 @@ install-man:
+       $(INSTALL) -d $(DESTDIR)$(MANDIR8)
+       for x in $(INSTALL_MAN1); do \
+               $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR1); \
+-              gzip -f $(DESTDIR)$(MANDIR1)/$$x; \
++              gzip -fn $(DESTDIR)$(MANDIR1)/$$x; \
+       done
+       for x in $(INSTALL_MAN3); do \
+               $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR3); \
+-              gzip -f $(DESTDIR)$(MANDIR3)/$$x; \
++              gzip -fn $(DESTDIR)$(MANDIR3)/$$x; \
+       done
+       rm -f $(DESTDIR)$(MANDIR3)/free_huge_pages.3.gz
+       rm -f $(DESTDIR)$(MANDIR3)/free_hugepage_region.3.gz
+@@ -462,11 +462,11 @@ install-man:
+       ln -s hugetlbfs_find_path.3.gz 
$(DESTDIR)$(MANDIR3)/hugetlbfs_find_path_for_size.3.gz
+       for x in $(INSTALL_MAN7); do \
+               $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR7); \
+-              gzip -f $(DESTDIR)$(MANDIR7)/$$x; \
++              gzip -fn $(DESTDIR)$(MANDIR7)/$$x; \
+       done
+       for x in $(INSTALL_MAN8); do \
+               $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR8); \
+-              gzip -f $(DESTDIR)$(MANDIR8)/$$x; \
++              gzip -fn $(DESTDIR)$(MANDIR8)/$$x; \
+       done
+ 
+ install-bin:
+-- 
+2.34.1
+
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb 
b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb
index 0546d4b0b5..89ce11f6e4 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb
@@ -25,6 +25,7 @@ SRC_URI = " \
     file://0012-huge_page_setup_helper-use-python3-interpreter.patch \
     file://0013-elflink.c-include-libgen.h-for-basename.patch \
     file://0014-tests-Add-ldflags-to-linker-commandline-for-libheaps.patch \
+    file://0015-support-reproducible-builds.patch \
 "
 
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121691): 
https://lists.openembedded.org/g/openembedded-devel/message/121691
Mute This Topic: https://lists.openembedded.org/mt/116288935/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to