summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0001-src-fundamental-list-fundamental_source_paths-using-.patch
blob: 1d0887490c3a39b25a05d9c5ef84f6b082638de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 8e882df78ede98c15a3f2567fabebfde1d774b02 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Fri, 7 Jan 2022 21:20:15 +0100
Subject: [PATCH] src/fundamental: list fundamental_source_paths using relative
 paths

Otherwise, the compiler takes the full path to the source file
and writes it into the binary output, breaking reproducibility.

Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/22047]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 src/fundamental/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fundamental/meson.build b/src/fundamental/meson.build
index 287f0fe36a..954bdf150b 100644
--- a/src/fundamental/meson.build
+++ b/src/fundamental/meson.build
@@ -20,7 +20,7 @@ sources = '''
 # for sd-boot
 fundamental_source_paths = []
 foreach source : sources
-        fundamental_source_paths += meson.current_source_dir() / source
+        fundamental_source_paths += '../../fundamental/' + source
 endforeach
 
 # for libbasic