summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/conf/layer.conf1
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0015-support-reproducible-builds.patch51
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb1
3 files changed, 52 insertions, 1 deletions
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 += " \
189 libdbus-cxx-dev \ 189 libdbus-cxx-dev \
190 libforms \ 190 libforms \
191 libfsverity0 \ 191 libfsverity0 \
192 libhugetlbfs-doc \
193 libiio-src \ 192 libiio-src \
194 libjcat-dbg \ 193 libjcat-dbg \
195 libjcat-ptest \ 194 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 @@
1From 437b7b143072b088ca34e10165abed04973280a3 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 5 Nov 2025 15:22:34 +0800
4Subject: [PATCH] support reproducible builds
5
6When compressing, do not save the original file name and
7timestamp by default (gzip -n). Make archives be reproducible
8at each build
9
10Upstream-Status: Submitted [https://github.com/libhugetlbfs/libhugetlbfs/pull/108]
11
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13---
14 Makefile.in | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
17diff --git a/Makefile.in b/Makefile.in
18index 25be577..e4037af 100644
19--- a/Makefile.in
20+++ b/Makefile.in
21@@ -446,11 +446,11 @@ install-man:
22 $(INSTALL) -d $(DESTDIR)$(MANDIR8)
23 for x in $(INSTALL_MAN1); do \
24 $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR1); \
25- gzip -f $(DESTDIR)$(MANDIR1)/$$x; \
26+ gzip -fn $(DESTDIR)$(MANDIR1)/$$x; \
27 done
28 for x in $(INSTALL_MAN3); do \
29 $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR3); \
30- gzip -f $(DESTDIR)$(MANDIR3)/$$x; \
31+ gzip -fn $(DESTDIR)$(MANDIR3)/$$x; \
32 done
33 rm -f $(DESTDIR)$(MANDIR3)/free_huge_pages.3.gz
34 rm -f $(DESTDIR)$(MANDIR3)/free_hugepage_region.3.gz
35@@ -462,11 +462,11 @@ install-man:
36 ln -s hugetlbfs_find_path.3.gz $(DESTDIR)$(MANDIR3)/hugetlbfs_find_path_for_size.3.gz
37 for x in $(INSTALL_MAN7); do \
38 $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR7); \
39- gzip -f $(DESTDIR)$(MANDIR7)/$$x; \
40+ gzip -fn $(DESTDIR)$(MANDIR7)/$$x; \
41 done
42 for x in $(INSTALL_MAN8); do \
43 $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR8); \
44- gzip -f $(DESTDIR)$(MANDIR8)/$$x; \
45+ gzip -fn $(DESTDIR)$(MANDIR8)/$$x; \
46 done
47
48 install-bin:
49--
502.34.1
51
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 = " \
25 file://0012-huge_page_setup_helper-use-python3-interpreter.patch \ 25 file://0012-huge_page_setup_helper-use-python3-interpreter.patch \
26 file://0013-elflink.c-include-libgen.h-for-basename.patch \ 26 file://0013-elflink.c-include-libgen.h-for-basename.patch \
27 file://0014-tests-Add-ldflags-to-linker-commandline-for-libheaps.patch \ 27 file://0014-tests-Add-ldflags-to-linker-commandline-for-libheaps.patch \
28 file://0015-support-reproducible-builds.patch \
28" 29"
29 30
30UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" 31UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"