blob: 64433abb6a13d80c9918c7b17fa628dadf00828c [file] [log] [blame]
Patrick Williams93c203f2021-10-06 16:15:23 -05001From 2d351c666f09cc1b9e368422653fb42ac8b86249 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 31 Aug 2021 10:37:05 +0200
4Subject: [PATCH] build/pack.c: do not insert payloadflags into .rpm metadata
5
6The flags look like '19T56' where 19 is the compression level
7(deterministic), and 56 is the amount of threads (varies from one
8host to the next and breaks reproducibility for .rpm).
9
10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12---
13 build/pack.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
Andrew Geissler87f5cff2022-09-30 13:13:31 -050016Index: git/build/pack.c
17===================================================================
18--- git.orig/build/pack.c
19+++ git/build/pack.c
Patrick Williams93c203f2021-10-06 16:15:23 -050020@@ -328,7 +328,7 @@ static char *getIOFlags(Package pkg)
21 headerPutString(pkg->header, RPMTAG_PAYLOADCOMPRESSOR, compr);
22 buf = xstrdup(rpmio_flags);
23 buf[s - rpmio_flags] = '\0';
24- headerPutString(pkg->header, RPMTAG_PAYLOADFLAGS, buf+1);
25+ headerPutString(pkg->header, RPMTAG_PAYLOADFLAGS, "");
26 free(buf);
27 }
28 exit: