Skip to contentSkip to conversation

Fix systemd configure error if audit enabled

PATCH New Kai Kang 1 participant 3 messages Apr 2, 2018

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

v2 cover Fix systemd configure error if audit enabled

V2:
* remove setting of FILES_${PN}-dev from recipe of audit which has been done in bitbake.conf in oe-core.

Kai Kang (2):
enable-audit.bbclass: remove implement of packageconfig audit
audit: fix pkgconfigdir

 classes/enable-audit.bbclass          | 1 -
 recipes-security/audit/audit_2.7.6.bb | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.11.0
author
#1 lore raw

PATCH v2 1/2 enable-audit.bbclass: remove implement of packageconfig audit

enable-audit.bbclass is only used by systemd. And systemd has adapted to use build tool meson and implement PACKAGECONFIG audit in recipe file of systemd in oe-core.

So remove implement of PACKAGECONFIG audit from enable-audit.bbclass.

---
 classes/enable-audit.bbclass | 1 -
 1 file changed, 1 deletion(-)
classes/enable-audit.bbclass +0 -1
index 5820a38..4538b0b 100644
@@ -2,4 +2,3 @@
 inherit selinux
 
 PACKAGECONFIG_append = " ${@target_selinux(d, 'audit')}"
-PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit,"
Signature · 1 line
2.11.0
author
#2 lore raw

PATCH v2 2/2 audit: fix pkgconfigdir

In reply to Kai Kang

Because 'libdir' is set with ${base_libdir} in recipe file of audit, package config files(.pc) are installed to ${base_libdir}/pkgconfig that variable pkgconfigdir is set with ${libdir}/pkgconfig in makefile.

Set pkgconfigdir directly to install .pc files to right directory.

And remove setting of FILES_${PN}-dev which has been done in bitbake.conf in oe-core.

---
 recipes-security/audit/audit_2.7.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/audit/audit_2.7.6.bb +1 -1
index 5bfda7b..d655e64 100644
@@ -45,6 +45,7 @@ EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' \
 	PYINC='${STAGING_INCDIR}/$(PYLIBVER)' \
 	pyexecdir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \
 	STDINC='${STAGING_INCDIR}' \
+	pkgconfigdir=${libdir}/pkgconfig \
 	"
 
 SUMMARY_audispd-plugins = "Plugins for the audit event dispatcher"
@@ -64,7 +65,6 @@ FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \
 	"
 FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug"
 FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}"
-FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la ${base_libdir}/pkgconfig/*"
 
 CONFFILES_auditd += "${sysconfdir}/audit/audit.rules"
 RDEPENDS_auditd += "bash"
Signature · 1 line
2.11.0