]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: fix libdir/libexecdir path confusion
authorRoss Burton <ross.burton@intel.com>
Tue, 3 Jun 2014 10:11:18 +0000 (11:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Dec 2015 10:20:08 +0000 (10:20 +0000)
$libdir/glibc is deleted if it doesn't exist but this is incorrectly assuming
what variables are used to create this directory.  In fact libexecdir is being
used in the Makefile so use that in the recipe too.

This fixes builds where libexecdir is changed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc-package.inc

index 5f6036840fcf55f39ca2656dded2b12e56af7b6f..36c5350896290abb8e39600617f912eda7bddbd7 100644 (file)
@@ -82,9 +82,10 @@ do_install_append () {
        rm -rf ${D}${localstatedir}
 
        # remove empty glibc dir
-       if [ -d ${D}${libdir}/glibc -a ! -e ${D}${libdir}/glibc/pt_chown ]; then
-               rmdir ${D}${libdir}/glibc
+       if [ -d ${D}${libexecdir} ]; then
+               rmdir --ignore-fail-on-non-empty ${D}${libexecdir}
        fi
+
        oe_multilib_header bits/syscall.h
 
        if [ -f ${D}${bindir}/mtrace ]; then