audit: backport upstream fix for static builds

Upstream thinks this is a fix for non-GCC compilers, but it seems to
fix static builds with GCC too.

Fixes: c22c8ad5b4 ("audit: 4.0 -> 4.0.2")
This commit is contained in:
Alyssa Ross
2024-11-27 01:25:25 +01:00
parent 6d0f6703f7
commit 271e87c338
+8
View File
@@ -25,6 +25,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-1dG11Q7kotDReHW8aua9an1bNNlVfqhHo5+uxTH6qgo=";
};
patches = [
(fetchpatch {
name = "static.patch";
url = "https://github.com/linux-audit/audit-userspace/commit/a89664b45c30a853a6f80b19730984bd78432142.patch";
hash = "sha256-HsaL9Bfo1MQ1JBKIS9ckNTapGk5eshjWWKh4M+e+Y9c=";
})
];
postPatch = ''
substituteInPlace bindings/swig/src/auditswig.i \
--replace-fail "/usr/include/linux/audit.h" \