diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-09-07 12:12:49 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-09-07 12:25:49 +0800 |
commit | 44852308c0ea2c9cf8d5c40998599e568d0d9e40 (patch) | |
tree | 4676e1ac16576bf150aa09625ed152c69cbc64af | |
parent | 11c4922a3d94c8795d4b8a5f9d97fe924448ebae (diff) | |
download | meta-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.bb | 8 |
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 \ | |||
4 | in the Linux kernel." | 4 | in the Linux kernel." |
5 | HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" | 5 | HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" |
6 | SECTION = "base" | 6 | SECTION = "base" |
7 | PR = "r1" | 7 | PR = "r2" |
8 | LICENSE = "GPLv2+ & LGPLv2+" | 8 | LICENSE = "GPLv2+ & LGPLv2+" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 9 | LIC_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 | ||
66 | do_install_append() { | 70 | do_install_append() { |