From 0d31f225faef8da3fcd0f69f6544aa274102fe53 Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Wed, 23 Feb 2022 14:24:50 -0500 Subject: [PATCH] workaround a kernel change that breaks the build --- audit-3.0.8-flex-array-workaround.patch | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 audit-3.0.8-flex-array-workaround.patch diff --git a/audit-3.0.8-flex-array-workaround.patch b/audit-3.0.8-flex-array-workaround.patch new file mode 100644 index 0000000..cb643a8 --- /dev/null +++ b/audit-3.0.8-flex-array-workaround.patch @@ -0,0 +1,36 @@ +diff -urp audit-3.0.8.orig/bindings/swig/src/auditswig.i audit-3.0.8/bindings/swig/src/auditswig.i +--- audit-3.0.8.orig/bindings/swig/src/auditswig.i 2021-08-21 10:15:51.000000000 -0400 ++++ audit-3.0.8/bindings/swig/src/auditswig.i 2022-02-23 14:19:18.389777267 -0500 +@@ -39,7 +39,7 @@ signed + #define __attribute(X) /*nothing*/ + typedef unsigned __u32; + typedef unsigned uid_t; +-%include "/usr/include/linux/audit.h" ++%include "../lib/audit.h" + #define __extension__ /*nothing*/ + %include + %include "../lib/libaudit.h" +diff -urp audit-3.0.8.orig/lib/audit.h audit-3.0.8/lib/audit.h +--- audit-3.0.8.orig/lib/audit.h 2022-02-23 13:35:24.915815547 -0500 ++++ audit-3.0.8/lib/audit.h 2022-02-23 13:34:46.356475888 -0500 +@@ -514,7 +514,7 @@ struct audit_rule_data { + __u32 values[AUDIT_MAX_FIELDS]; + __u32 fieldflags[AUDIT_MAX_FIELDS]; + __u32 buflen; /* total length of string fields */ +- char buf[]; /* string fields buffer */ ++ char buf[0]; /* string fields buffer */ + }; + + #endif /* _LINUX_AUDIT_H_ */ +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 ++#include "audit.h" + #include + #include +