summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-09-07 12:12:49 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-09-07 12:25:49 +0800
commit44852308c0ea2c9cf8d5c40998599e568d0d9e40 (patch)
tree4676e1ac16576bf150aa09625ed152c69cbc64af
parent11c4922a3d94c8795d4b8a5f9d97fe924448ebae (diff)
downloadmeta-selinux-44852308c0ea2c9cf8d5c40998599e568d0d9e40.tar.gz
audit-2.2.1: copy bits/socket_type.h only if it exists
eglibc-2.16 splits enum __socket_type from bits/socket.h to bits/socket_type.h, so old eglibc does not have bits/socket_type.h We should copy it only if it exists. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/audit/audit_2.2.1.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-security/audit/audit_2.2.1.bb b/recipes-security/audit/audit_2.2.1.bb
index 47e6825..bc0f248 100644
--- a/recipes-security/audit/audit_2.2.1.bb
+++ b/recipes-security/audit/audit_2.2.1.bb
@@ -4,7 +4,7 @@ storing and searching the audit records generated by the audit subsystem \
4in the Linux kernel." 4in the Linux kernel."
5HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" 5HOMEPAGE = "http://people.redhat.com/sgrubb/audit/"
6SECTION = "base" 6SECTION = "base"
7PR = "r1" 7PR = "r2"
8LICENSE = "GPLv2+ & LGPLv2+" 8LICENSE = "GPLv2+ & LGPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 9LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
10 10
@@ -60,7 +60,11 @@ do_compile_prepend() {
60 cp -f ${STAGING_INCDIR}/sys/personality.h ${S}/lib/sys/ 60 cp -f ${STAGING_INCDIR}/sys/personality.h ${S}/lib/sys/
61 mkdir -p ${S}/lib/bits 61 mkdir -p ${S}/lib/bits
62 cp -f ${STAGING_INCDIR}/bits/socket.h ${S}/lib/bits 62 cp -f ${STAGING_INCDIR}/bits/socket.h ${S}/lib/bits
63 cp -f ${STAGING_INCDIR}/bits/socket_type.h ${S}/lib/bits 63
64 # eglibc-2.16 splits enum __socket_type from bits/socket.h to bits/socket_type.h, so we
65 # copy bits/socket_type.h only if it exists.
66 test -f ${STAGING_INCDIR}/bits/socket_type.h && \
67 cp -f ${STAGING_INCDIR}/bits/socket_type.h ${S}/lib/bits
64} 68}
65 69
66do_install_append() { 70do_install_append() {