From 183a1defb46ae5197309c54d6f8da27b5f77b6367895667269c41a144552edf8 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Mon, 22 Apr 2024 09:41:04 +0000 Subject: [PATCH] - Drop _FORTIFY_SOURCE=2 workaround. Since commit 7929e180aa (v253) it shouldn't be needed anymore. - Force _FORTIFY_SOURCE=2 as systemd (ab)use of malloc_usable_size() leads to build issues with FS=3 (bsc#1200819). OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1512 --- systemd.changes | 9 +++++++++ systemd.spec | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/systemd.changes b/systemd.changes index 940d335c..81184b8d 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 22 09:20:36 UTC 2024 - Franck Bui + +- Drop _FORTIFY_SOURCE=2 workaround. Since commit 7929e180aa (v253) it shouldn't + be needed anymore. + ------------------------------------------------------------------- Mon Apr 8 15:45:46 UTC 2024 - Franck Bui @@ -1236,6 +1242,9 @@ Tue Nov 8 16:33:26 UTC 2022 - Franck Bui For a complete list of changes, visit: https://github.com/openSUSE/systemd/compare/c212388f7de8d22a3f7c22b19553548ccc0cdd15...9cdd78585069b133bebcd479f3a204057ad25d76 +- Force _FORTIFY_SOURCE=2 as systemd (ab)use of malloc_usable_size() leads to + build issues with FS=3 (bsc#1200819). + ------------------------------------------------------------------- Tue Oct 25 07:19:15 UTC 2022 - Franck Bui diff --git a/systemd.spec b/systemd.spec index ff47c0c1..77e32b44 100644 --- a/systemd.spec +++ b/systemd.spec @@ -743,11 +743,6 @@ for the C APIs. %autosetup -p1 -n systemd-v%{version}%{archive_version} %build -# Disable _FORTIFY_SOURCE=3 as it get confused by the use of -# malloc_usable_size() (bsc#1200819). There used to be a workaround but it was -# reverted, see 2cfb790391958ada34284290af1f9ab863a515c7 for the details. -export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" - %meson \ -Dmode=release \ -Dversion-tag=%{version}%{archive_version} \