From 620f1f873b4ae86c16e542e238406cb05159d659 Mon Sep 17 00:00:00 2001 From: Xin Ouyang Date: Thu, 31 May 2012 11:11:52 +0800 Subject: audit: Add audit.h from target libc-headers. The executables in lib/, which are named as gen_*_h, will run on the hosts to create *_tables.h/*tabs.h header files for the targets. In some old hosts, build will fail because audit.h in the old linux-libc-headers (<= 2.6.29) has a incomplete netlink message list for the audit system. Signed-off-by: Xin Ouyang --- recipes-security/audit/audit_2.1.3.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-security/audit/audit_2.1.3.bb b/recipes-security/audit/audit_2.1.3.bb index c12ddb2..e9cf4d4 100644 --- a/recipes-security/audit/audit_2.1.3.bb +++ b/recipes-security/audit/audit_2.1.3.bb @@ -40,6 +40,17 @@ FILES_audispd-plugins += "${sysconfdir}/audisp ${sbindir}/audisp*" FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" + +# The executables in lib/, which are named as gen_*_h, will run on the hosts to create +# *_tables.h/*tabs.h header files for the targets. +# In some old hosts, build will fail because audit.h in the old linux-libc-headers (<= 2.6.29) +# has a incomplete netlink message list for the audit system. +do_compile_prepend() { + mkdir -p ${S}/lib/linux + cp -f ${STAGING_INCDIR}/linux/audit.h ${S}/lib/linux/ + cp -f ${STAGING_INCDIR}/linux/elf-em.h ${S}/lib/linux/ +} + do_install_append() { rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la -- cgit v1.2.3-54-g00ecf