diff options
author | Scott Garman <scott.a.garman@intel.com> | 2012-01-04 22:30:30 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-05 11:24:46 +0000 |
commit | d1536ee2b576dcf4917d4df590dcdcdd15e43f6e (patch) | |
tree | 58589dc8eab9251ba123020d08636cbfd48a92dc /meta/recipes-support/libcap | |
parent | f8f5c054060f446f9f743befbd0bcba35b877473 (diff) | |
download | poky-d1536ee2b576dcf4917d4df590dcdcdd15e43f6e.tar.gz |
libcap: move library to base_libdir
ls from coreutils links to libcap, so move the libcap library
from libdir (/usr/lib) to base_libdir (/lib).
(From OE-Core rev: 3a52df9c057b25c25fc2013ac6c5bf602cc8b4a7)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap')
-rw-r--r-- | meta/recipes-support/libcap/libcap.inc | 15 | ||||
-rw-r--r-- | meta/recipes-support/libcap/libcap_2.22.bb | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc index 184b58a3e0..9418abf1e2 100644 --- a/meta/recipes-support/libcap/libcap.inc +++ b/meta/recipes-support/libcap/libcap.inc | |||
@@ -21,6 +21,8 @@ do_configure() { | |||
21 | sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules | 21 | sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules |
22 | } | 22 | } |
23 | 23 | ||
24 | BUILD_LDFLAGS_virtclass_native += "-Wl,rpath=${base_libdir}" | ||
25 | |||
24 | EXTRA_OEMAKE = " \ | 26 | EXTRA_OEMAKE = " \ |
25 | LIBATTR=yes \ | 27 | LIBATTR=yes \ |
26 | PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \ | 28 | PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \ |
@@ -42,8 +44,17 @@ do_install() { | |||
42 | oe_runmake install DESTDIR="${D}" prefix="${prefix}" | 44 | oe_runmake install DESTDIR="${D}" prefix="${prefix}" |
43 | } | 45 | } |
44 | 46 | ||
47 | do_install_append() { | ||
48 | # Move the library to base_libdir | ||
49 | install -d ${D}${base_libdir} | ||
50 | mv ${D}${libdir}/* ${D}${base_libdir} | ||
51 | rmdir ${D}${libdir} | ||
52 | } | ||
53 | |||
54 | FILES_${PN}-dev += "${base_libdir}/*.so" | ||
55 | |||
45 | # pam files | 56 | # pam files |
46 | FILES_${PN} += "${libdir}/security/*.so" | 57 | FILES_${PN} += "${base_libdir}/security/*.so" |
47 | FILES_${PN}-dbg += "${libdir}/security/.debug/*.so" | 58 | FILES_${PN}-dbg += "${base_libdir}/security/.debug/*.so" |
48 | 59 | ||
49 | BBCLASSEXTEND = "native" | 60 | BBCLASSEXTEND = "native" |
diff --git a/meta/recipes-support/libcap/libcap_2.22.bb b/meta/recipes-support/libcap/libcap_2.22.bb index dd63d9e742..be1df547ad 100644 --- a/meta/recipes-support/libcap/libcap_2.22.bb +++ b/meta/recipes-support/libcap/libcap_2.22.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require libcap.inc | 1 | require libcap.inc |
2 | 2 | ||
3 | PR = "r2" | 3 | PR = "r3" |
4 | 4 | ||
5 | SRC_URI[md5sum] = "ce64058bdb3f086ddbfca8ce6c919845" | 5 | SRC_URI[md5sum] = "ce64058bdb3f086ddbfca8ce6c919845" |
6 | SRC_URI[sha256sum] = "73ebbd4877b5f69dd28b72098e510c5b318bc480f8201c4061ac98b78c04050f" | 6 | SRC_URI[sha256sum] = "73ebbd4877b5f69dd28b72098e510c5b318bc480f8201c4061ac98b78c04050f" |