Skip to contentSkip to conversation

audit: Revert the tweak done in configure step in do_install

PATCH New Mikko Rapeli 1 participant 1 message Sep 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audit: Revert the tweak done in configure step in do_install

From: Khem Raj <[email protected]>

This tweak is needed for building audit but not the interfaces it may expose via the headers, therefore undo the tweak before packaging things up

(cherry picked from commit 4ff83dfb5a9f70188959814aa015910bd7363eca)
---
 meta-oe/recipes-security/audit/audit_3.0.8.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-security/audit/audit_3.0.8.bb +2 -0
index 3dbfc9e60..c17899d4f 100644
@@ -77,6 +77,8 @@ do_configure:prepend() {
 }
 
 do_install:append() {
+        sed -i -e 's|#include "audit.h"|#include <linux/audit.h>|g' ${D}${includedir}/libaudit.h
+
 	rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a
 	rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la
 
Signature · 1 line
2.17.1