Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/, sys-apps/systemd/files/
Date: Mon, 07 Nov 2022 16:15:23
Message-Id: 1667837680.83353a2bfaa32fa2a5988496eb99674f711849cd.floppym@gentoo
1 commit: 83353a2bfaa32fa2a5988496eb99674f711849cd
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 7 16:14:40 2022 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 7 16:14:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83353a2b
7
8 sys-apps/systemd: backport fix for meson-0.64
9
10 Bug: https://bugs.gentoo.org/879141
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 sys-apps/systemd/files/251-meson-0.64.patch | 26 ++++++++++++++++++++++++++
14 sys-apps/systemd/systemd-251.7.ebuild | 1 +
15 2 files changed, 27 insertions(+)
16
17 diff --git a/sys-apps/systemd/files/251-meson-0.64.patch b/sys-apps/systemd/files/251-meson-0.64.patch
18 new file mode 100644
19 index 000000000000..6cc200bbd87d
20 --- /dev/null
21 +++ b/sys-apps/systemd/files/251-meson-0.64.patch
22 @@ -0,0 +1,26 @@
23 +From cddbc850270415a818aadabd71fe12dc0dddd508 Mon Sep 17 00:00:00 2001
24 +From: Jan Janssen <medhefgo@×××.de>
25 +Date: Sun, 9 Oct 2022 17:16:12 +0200
26 +Subject: [PATCH] meson: Fix build with --optimization=plain
27 +
28 +Note that -O0 is deliberately filtered out as we have to compile with at
29 +least -O1 due to #24202.
30 +
31 +Fixes: #24323
32 +---
33 + src/boot/efi/meson.build | 2 +-
34 + 1 file changed, 1 insertion(+), 1 deletion(-)
35 +
36 +diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
37 +index e0cd4ebad993..395386d3eda7 100644
38 +--- a/src/boot/efi/meson.build
39 ++++ b/src/boot/efi/meson.build
40 +@@ -223,7 +223,7 @@ endif
41 + if get_option('debug') and get_option('mode') == 'developer'
42 + efi_cflags += ['-ggdb', '-DEFI_DEBUG']
43 + endif
44 +-if get_option('optimization') != '0'
45 ++if get_option('optimization') in ['1', '2', '3', 's', 'g']
46 + efi_cflags += ['-O' + get_option('optimization')]
47 + endif
48 + if get_option('b_ndebug') == 'true' or (
49
50 diff --git a/sys-apps/systemd/systemd-251.7.ebuild b/sys-apps/systemd/systemd-251.7.ebuild
51 index de8a975e58e1..b08e49db559d 100644
52 --- a/sys-apps/systemd/systemd-251.7.ebuild
53 +++ b/sys-apps/systemd/systemd-251.7.ebuild
54 @@ -239,6 +239,7 @@ src_prepare() {
55 # bug #841770.
56 "${FILESDIR}/251-revert-fortify-source-3-fix.patch"
57 "${FILESDIR}/251-gpt-auto-no-cryptsetup.patch"
58 + "${FILESDIR}/251-meson-0.64.patch"
59 )
60
61 if ! use vanilla; then