mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
libcap: Cope with ${libdir} and ${base_libdir} being the same
${libdir} and ${base_libdir} may be the same. If they are don't try and
move files onto themselves.
(From OE-Core rev: bf136334aecc156c73eed76562819351de368eec)
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f2b55ac391
commit
5a33401b84
@@ -12,6 +12,8 @@ DEPENDS_virtclass-native = "perl-native-runtime"
|
||||
|
||||
SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/libcap2/${BPN}-${PV}.tar.bz2"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
inherit lib_package
|
||||
|
||||
do_configure() {
|
||||
@@ -47,8 +49,10 @@ do_install() {
|
||||
do_install_append() {
|
||||
# Move the library to base_libdir
|
||||
install -d ${D}${base_libdir}
|
||||
mv ${D}${libdir}/* ${D}${base_libdir}
|
||||
rmdir ${D}${libdir}
|
||||
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
|
||||
mv ${D}${libdir}/* ${D}${base_libdir}
|
||||
rmdir ${D}${libdir}
|
||||
fi
|
||||
}
|
||||
|
||||
FILES_${PN}-dev += "${base_libdir}/*.so"
|
||||
|
||||
Reference in New Issue
Block a user