summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2021-10-28 06:08:11 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-03 11:18:56 +0000
commit7de484c47a3af1de1fefc0a326327c90d89cbbe2 (patch)
tree6544da3aad00e617ca280a04f6692926273d0259
parent173a40ec3986c0b18915443a3fa953dc708387ca (diff)
downloadpoky-7de484c47a3af1de1fefc0a326327c90d89cbbe2.tar.gz
stress-ng: improve reproducibility
(From OE-Core rev: 3df6dc6aa0fe8f00b4051c77a11510e97db3d105) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-do-not-write-the-timestamp-into-compressed-.patch26
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb1
2 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-do-not-write-the-timestamp-into-compressed-.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-do-not-write-the-timestamp-into-compressed-.patch
new file mode 100644
index 0000000000..9dfca0441b
--- /dev/null
+++ b/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-do-not-write-the-timestamp-into-compressed-.patch
@@ -0,0 +1,26 @@
1From 2386cd8f907b379ae5cc1ce2888abef7d30e709a Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Sat, 23 Oct 2021 20:20:59 +0200
4Subject: [PATCH] Makefile: do not write the timestamp into compressed manpage.
5
6This helps reproducibility.
7
8Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/156]
9Signed-off-by: Alexander Kanavin <alex@linutronix.de>
10---
11 Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Makefile b/Makefile
15index 886018f9..f4290f9c 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -412,7 +412,7 @@ git-commit-id.h:
19 $(OBJS): stress-ng.h Makefile
20
21 stress-ng.1.gz: stress-ng.1
22- gzip -c $< > $@
23+ gzip -n -c $< > $@
24
25 .PHONY: dist
26 dist:
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb b/meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb
index af8e77ece2..0533a0e19b 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https \ 8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https \
9 file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \ 9 file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \
10 file://0001-Makefile-do-not-write-the-timestamp-into-compressed-.patch \
10 " 11 "
11SRCREV = "e045bcd711178c11b7e797ef6b4c524658468596" 12SRCREV = "e045bcd711178c11b7e797ef6b4c524658468596"
12S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"