Add workaround for audit breakage

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-02-24 08:56:56 +01:00
parent c971c5b980
commit a4d136e22a
1 changed files with 4 additions and 0 deletions

View File

@ -447,6 +447,10 @@ test -f src/login/systemd-user.in
# We'll systemd process it and install in the right place.
cp %{SOURCE12} src/login/systemd-user.in
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2057735
cp /usr/include/linux/audit.h src/systemd/
sed -r -i "s|generate_audit_type_list, cpp|& + ' -I/usr/include/linux'|" src/libsystemd/meson.build
%build
%global ntpvendor %(source /etc/os-release; echo ${ID})
%{!?ntpvendor: echo 'NTP vendor zone is not set!'; exit 1}