Patchwork [v2] coreutils: fix search paths for libstdbuf.so

login
register
mail settings
Submitter chunrong guo
Date March 28, 2014, 8:47 a.m.
Message ID <1395996425-29821-1-git-send-email-B40290@freescale.com>
Download mbox | patch
Permalink /patch/69501/
State Accepted
Commit 7c0ca0b345e2605f25097c99ddcc5a4f253a91c4
Headers show

Comments

chunrong guo - March 28, 2014, 8:47 a.m.
*fix the following error:
        |stdbuf: failed to find 'libstdbuf.so'
        *PKGLIBEXECDIR is the search paths for libstdbuf.so
        |PKGLIBEXECDIR='$(pkglibexecdir)'
        |pkglibexecdir='${libexecdir}/${PACKAGE}'

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 meta/recipes-core/coreutils/coreutils_8.22.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-core/coreutils/coreutils_8.22.bb b/meta/recipes-core/coreutils/coreutils_8.22.bb
index a26aa02..ba3a0a0 100644
--- a/meta/recipes-core/coreutils/coreutils_8.22.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.22.bb
@@ -22,7 +22,7 @@  SRC_URI[md5sum] = "8fb0ae2267aa6e728958adc38f8163a2"
 SRC_URI[sha256sum] = "5b3e94998152c017e6c75d56b9b994188eb71bf46d4038a642cb9141f6ff1212"
 
 EXTRA_OECONF_class-native = "--without-gmp"
-EXTRA_OECONF_class-target = "--enable-install-program=arch"
+EXTRA_OECONF_class-target = "--enable-install-program=arch --libexecdir=${libdir}"
 
 # acl is not a default feature
 #
@@ -71,8 +71,6 @@  do_install_append() {
 	# in update-alternatives to fail, therefore use lbracket - the name used
 	# for the actual source file.
 	mv ${D}${bindir}/[ ${D}${bindir}/lbracket.${BPN}
-	install -d ${D}${libdir}/coreutils
-	mv ${D}${libexecdir}/coreutils/libstdbuf.so ${D}${libdir}/coreutils
 }
 
 inherit update-alternatives