diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-01-09 23:27:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-11 10:53:44 +0000 |
commit | bd28d659b2ef6e887e4d9ff44fa7377fa802f28d (patch) | |
tree | 0ebef5175f59715266836923903a7837d43edd6d /meta | |
parent | 3e02d8d277d81d4913d337a6e6dfb923a4e18210 (diff) | |
download | poky-bd28d659b2ef6e887e4d9ff44fa7377fa802f28d.tar.gz |
systemd-boot: restore reproducibility
(From OE-Core rev: fde5147206ae82d11819fcc23fbe4fc2f94ea52b)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/systemd/systemd.inc | 3 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd/0001-src-fundamental-list-fundamental_source_paths-using-.patch | 28 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc index e416f8d64b..6739018559 100644 --- a/meta/recipes-core/systemd/systemd.inc +++ b/meta/recipes-core/systemd/systemd.inc | |||
@@ -17,6 +17,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ | |||
17 | SRCREV = "402280118fe082122437638f53a0019c4aea81aa" | 17 | SRCREV = "402280118fe082122437638f53a0019c4aea81aa" |
18 | SRCBRANCH = "v250-stable" | 18 | SRCBRANCH = "v250-stable" |
19 | SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} \ | 19 | SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} \ |
20 | " | 20 | file://0001-src-fundamental-list-fundamental_source_paths-using-.patch \ |
21 | " | ||
21 | 22 | ||
22 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
diff --git a/meta/recipes-core/systemd/systemd/0001-src-fundamental-list-fundamental_source_paths-using-.patch b/meta/recipes-core/systemd/systemd/0001-src-fundamental-list-fundamental_source_paths-using-.patch new file mode 100644 index 0000000000..1d0887490c --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-src-fundamental-list-fundamental_source_paths-using-.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 8e882df78ede98c15a3f2567fabebfde1d774b02 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Fri, 7 Jan 2022 21:20:15 +0100 | ||
4 | Subject: [PATCH] src/fundamental: list fundamental_source_paths using relative | ||
5 | paths | ||
6 | |||
7 | Otherwise, the compiler takes the full path to the source file | ||
8 | and writes it into the binary output, breaking reproducibility. | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/22047] | ||
11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
12 | --- | ||
13 | src/fundamental/meson.build | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/src/fundamental/meson.build b/src/fundamental/meson.build | ||
17 | index 287f0fe36a..954bdf150b 100644 | ||
18 | --- a/src/fundamental/meson.build | ||
19 | +++ b/src/fundamental/meson.build | ||
20 | @@ -20,7 +20,7 @@ sources = ''' | ||
21 | # for sd-boot | ||
22 | fundamental_source_paths = [] | ||
23 | foreach source : sources | ||
24 | - fundamental_source_paths += meson.current_source_dir() / source | ||
25 | + fundamental_source_paths += '../../fundamental/' + source | ||
26 | endforeach | ||
27 | |||
28 | # for libbasic | ||