- 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
This commit is contained in:
Franck Bui 2024-04-22 09:41:04 +00:00 committed by Git OBS Bridge
parent 00e8918e81
commit 183a1defb4
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 22 09:20:36 UTC 2024 - Franck Bui <fbui@suse.com>
- 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 <fbui@suse.com>
@ -1236,6 +1242,9 @@ Tue Nov 8 16:33:26 UTC 2022 - Franck Bui <fbui@suse.com>
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 <fbui@suse.com>

View File

@ -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} \