diff --git a/audit-3.0.8-undo-flex-array.patch b/audit-3.0.8-undo-flex-array.patch new file mode 100644 index 0000000..e8b1fef --- /dev/null +++ b/audit-3.0.8-undo-flex-array.patch @@ -0,0 +1,12 @@ +diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h +--- audit-3.0.8.orig/lib/libaudit.h 2022-02-14 14:14:08.000000000 -0500 ++++ audit-3.0.8/lib/libaudit.h 2022-02-23 13:35:52.638340789 -0500 +@@ -39,7 +39,7 @@ extern "C" { + #include + #include + #include +-#include "audit.h" ++#include + #include + #include + diff --git a/audit.spec b/audit.spec index 9bd85dc..b55a0b2 100644 --- a/audit.spec +++ b/audit.spec @@ -2,7 +2,7 @@ Summary: User space tools for kernel auditing Name: audit Version: 3.0.7 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: http://people.redhat.com/sgrubb/audit/ Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz @@ -10,6 +10,7 @@ Source1: https://www.gnu.org/licenses/lgpl-2.1.txt Patch1: audit-3.0.7-func-attr.patch Patch2: audit-3.0.7-gcc-flags.patch Patch3: audit-3.0.8-flex-array-workaround.patch +Patch4: audit-3.0.8-undo-flex-array.patch BuildRequires: make gcc BuildRequires: krb5-devel @@ -118,6 +119,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_lib} mkdir -p $RPM_BUILD_ROOT/%{_libdir}/audit mkdir -p --mode=0700 $RPM_BUILD_ROOT/%{_var}/log/audit mkdir -p $RPM_BUILD_ROOT/%{_var}/spool/audit +%patch4 -p1 make DESTDIR=$RPM_BUILD_ROOT install # Remove these items so they don't get picked up. @@ -258,6 +260,9 @@ fi %attr(750,root,root) %{_sbindir}/audispd-zos-remote %changelog +* Thu Feb 24 2022 Steve Grubb 3.0.7-3 +- Undo fix to libaudit.h before installing + * Mon Feb 14 2022 Steve Grubb 3.0.7-2 - Adjust sample-rules dir permissions - Add support for new access/dealloc function attributes