Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 1 | From ae4fdd8e8d052835973e6ff4b7550f93bde30a98 Mon Sep 17 00:00:00 2001 |
Patrick Williams | 93c203f | 2021-10-06 16:15:23 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Tue, 31 Aug 2021 10:37:05 +0200 |
| 4 | Subject: [PATCH] build/pack.c: do not insert payloadflags into .rpm metadata |
| 5 | |
| 6 | The flags look like '19T56' where 19 is the compression level |
| 7 | (deterministic), and 56 is the amount of threads (varies from one |
| 8 | host to the next and breaks reproducibility for .rpm). |
| 9 | |
| 10 | Upstream-Status: Inappropriate [oe-core specific] |
| 11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 12 | --- |
| 13 | build/pack.c | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 16 | diff --git a/build/pack.c b/build/pack.c |
| 17 | index f382c7da0..0889dd993 100644 |
| 18 | --- a/build/pack.c |
| 19 | +++ b/build/pack.c |
| 20 | @@ -330,7 +330,7 @@ static char *getIOFlags(Package pkg) |
Patrick Williams | 93c203f | 2021-10-06 16:15:23 -0500 | [diff] [blame] | 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: |