]> code.ossystems Code Review - openembedded-core.git/commitdiff
package install failure on systems without /sbin/ldconfig
authorAmy Fong <amy.fong@windriver.com>
Mon, 9 Jul 2012 18:50:17 +0000 (14:50 -0400)
committerSaul Wold <sgw@linux.intel.com>
Mon, 16 Jul 2012 15:31:40 +0000 (08:31 -0700)
Package install failures due to issues in post install rules.

package_do_shlibs only looks for libraries in a directory "lib", this should be
modified to the variable baselib.

ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
        [ -x /sbin/ldconfig ] && /sbin/ldconfig
results in the post install rule returning a failure. Modify to
        if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package.bbclass

index e6856cdf87ba0c37e9c64b8b0b5c7bb60171cff1..ec7de2c36ebd0a4491fc660692e07c0be91e0d01 100644 (file)
@@ -1141,7 +1141,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-       [ -x /sbin/ldconfig ] && /sbin/ldconfig
+       if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
 fi
 }
 
@@ -1251,7 +1251,7 @@ python package_do_shlibs() {
                return
                
        lib_re = re.compile("^.*\.so")
-       libdir_re = re.compile(".*/lib$")
+       libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True))
 
        packages = d.getVar('PACKAGES', True)
        targetos = d.getVar('TARGET_OS', True)