diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-03-15 15:19:28 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-03-19 10:15:45 +0800 |
commit | 16e416914bddfd44768ffd0a8301cba80ff59dfc (patch) | |
tree | 176f98da8be44c86b3431146880db5389027bf07 | |
parent | 47562b06a32d974b0fad9d67e8e8205b31f3ceb8 (diff) | |
download | meta-selinux-16e416914bddfd44768ffd0a8301cba80ff59dfc.tar.gz |
libcap-ng: fix the QA issue for libcap-ng.so*
Some binaries in base_sbindir have libcap-ng.so* depends, so move
libcap-ng.so* to avoid QA warnings.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r-- | recipes-security/libcap-ng/libcap-ng_0.6.6.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes-security/libcap-ng/libcap-ng_0.6.6.bb b/recipes-security/libcap-ng/libcap-ng_0.6.6.bb index 807ae41..4908ca1 100644 --- a/recipes-security/libcap-ng/libcap-ng_0.6.6.bb +++ b/recipes-security/libcap-ng/libcap-ng_0.6.6.bb | |||
@@ -5,7 +5,7 @@ It includes utilities that can analyze all currently running \ | |||
5 | applications to locate applications that may have too many privileges." | 5 | applications to locate applications that may have too many privileges." |
6 | HOMEPAGE = "http://freecode.com/projects/libcap-ng" | 6 | HOMEPAGE = "http://freecode.com/projects/libcap-ng" |
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | PR = "r2" | 8 | PR = "r3" |
9 | LICENSE = "GPLv2+ & LGPLv2.1+" | 9 | LICENSE = "GPLv2+ & LGPLv2.1+" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
11 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" | 11 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" |
@@ -28,3 +28,13 @@ FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" | |||
28 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" | 28 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" |
29 | 29 | ||
30 | BBCLASSEXTEND = "native" | 30 | BBCLASSEXTEND = "native" |
31 | |||
32 | do_install_append() { | ||
33 | # Moving libcap-ng to base_libdir | ||
34 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
35 | mkdir -p ${D}/${base_libdir}/ | ||
36 | mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/ | ||
37 | relpath=${@os.path.relpath("${base_libdir}", "${libdir}")} | ||
38 | ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so | ||
39 | fi | ||
40 | } | ||