1*4882a593SmuzhiyunFrom 2d351c666f09cc1b9e368422653fb42ac8b86249 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Alexander Kanavin <alex@linutronix.de>
3*4882a593SmuzhiyunDate: Tue, 31 Aug 2021 10:37:05 +0200
4*4882a593SmuzhiyunSubject: [PATCH] build/pack.c: do not insert payloadflags into .rpm metadata
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThe flags look like '19T56' where 19 is the compression level
7*4882a593Smuzhiyun(deterministic), and 56 is the amount of threads (varies from one
8*4882a593Smuzhiyunhost to the next and breaks reproducibility for .rpm).
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunUpstream-Status: Inappropriate [oe-core specific]
11*4882a593SmuzhiyunSigned-off-by: Alexander Kanavin <alex@linutronix.de>
12*4882a593Smuzhiyun---
13*4882a593Smuzhiyun build/pack.c | 2 +-
14*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
15*4882a593Smuzhiyun
16*4882a593Smuzhiyundiff --git a/build/pack.c b/build/pack.c
17*4882a593Smuzhiyunindex 932cb213e..b45d0726f 100644
18*4882a593Smuzhiyun--- a/build/pack.c
19*4882a593Smuzhiyun+++ b/build/pack.c
20*4882a593Smuzhiyun@@ -328,7 +328,7 @@ static char *getIOFlags(Package pkg)
21*4882a593Smuzhiyun 	    headerPutString(pkg->header, RPMTAG_PAYLOADCOMPRESSOR, compr);
22*4882a593Smuzhiyun 	buf = xstrdup(rpmio_flags);
23*4882a593Smuzhiyun 	buf[s - rpmio_flags] = '\0';
24*4882a593Smuzhiyun-	headerPutString(pkg->header, RPMTAG_PAYLOADFLAGS, buf+1);
25*4882a593Smuzhiyun+	headerPutString(pkg->header, RPMTAG_PAYLOADFLAGS, "");
26*4882a593Smuzhiyun 	free(buf);
27*4882a593Smuzhiyun     }
28*4882a593Smuzhiyun exit:
29