From 72fb6da107962fa99aa59c313523b415edacd711 Mon Sep 17 00:00:00 2001 From: Xin Ouyang Date: Tue, 26 Jun 2012 15:17:53 +0800 Subject: audit: Add .h files from target libc-headers. Just like audit_2.1.3.bb. 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 .h files in the old linux-libc-headers (<= 2.6.29) has incomplete DEFINE lists for the audit system. Signed-off-by: Xin Ouyang --- recipes-security/audit/audit_2.2.1.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/recipes-security/audit/audit_2.2.1.bb b/recipes-security/audit/audit_2.2.1.bb index 48cc2ea..34cfda1 100644 --- a/recipes-security/audit/audit_2.2.1.bb +++ b/recipes-security/audit/audit_2.2.1.bb @@ -46,6 +46,22 @@ FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \ 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 some .h files in the old linux-libc-headers (<= 2.6.29) +# has incomplete DEFINE lists 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/ + cp -f ${STAGING_INCDIR}/linux/net.h ${S}/lib/linux/ + mkdir -p ${S}/lib/sys + cp -f ${STAGING_INCDIR}/sys/mount.h ${S}/lib/sys/ + cp -f ${STAGING_INCDIR}/sys/personality.h ${S}/lib/sys/ + mkdir -p ${S}/lib/bits + cp -f ${STAGING_INCDIR}/bits/socket.h ${S}/lib/bits +} + 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