Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 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 |