Skip to contentSkip to conversation

audit: Revert the tweak done in configure step in do_install

PATCH New Khem Raj 1 participant 1 message Aug 17, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

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

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

---
 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 28d7d01764..78439f66fe 100644
@@ -78,6 +78,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.37.2