[oe-commits] [meta-openembedded] 23/69: libplist: Remove rpaths surgically

git at git.openembedded.org git at git.openembedded.org
Tue Dec 13 10:14:30 UTC 2016


martin_jansa pushed a commit to branch morty-next
in repository meta-openembedded.

commit 02bca9e5f4e7d11c3567b08d2817ceebd06ca62b
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sat Nov 5 22:42:14 2016 -0700

    libplist: Remove rpaths surgically
    
    Check for files first before operating on it
    
    Fixes QA errors like below
    
      /usr/lib/python2.7/site-packages/plist/__init__.py
      /usr/lib/python2.7/site-packages/plist/_plist.so
      /usr/lib/python2.7/site-packages/plist/plist.py
    Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
    libplist: 3 installed and not shipped files. [installed-vs-shipped]
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    (cherry picked from commit ecdf2c30801a7162952f20d96943a14db78d52c8)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb b/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb
index 10d40fb..f789796 100644
--- a/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb
+++ b/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb
@@ -16,8 +16,16 @@ SRC_URI = "http://www.libimobiledevice.org/downloads/libplist-${PV}.tar.bz2 \
 SRC_URI[md5sum] = "2a9e0258847d50f9760dc3ece25f4dc6"
 SRC_URI[sha256sum] = "a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec"
 
-PACKAGES =+ "${PN}-utils ${PN}++"
+do_install_append () {
+    if [ -e ${D}${libdir}/python*/site-packages/plist/_plist.so ]; then
+        chrpath -d ${D}${libdir}/python*/site-packages/plist/_plist.so
+    fi
+}
+
+PACKAGES =+ "${PN}-utils ${PN}++ ${PN}-python"
 FILES_${PN} = "${libdir}/libplist${SOLIBS}"
 FILES_${PN}++ = "${libdir}/libplist++${SOLIBS}"
 FILES_${PN}-utils = "${bindir}/*"
+FILES_${PN}-python = "${libdir}/python*/site-packages/*"
+
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list