[OE-core] [PATCH] perl: do not use pushd

rongqing.li at windriver.com rongqing.li at windriver.com
Tue Sep 24 09:23:55 UTC 2013


From: Roy Li <rongqing.li at windriver.com>

pushd is not available when system is using dash as default shell

Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
 meta/recipes-devtools/perl/perl-ptest.inc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc
index caa2b61..15afe2d 100644
--- a/meta/recipes-devtools/perl/perl-ptest.inc
+++ b/meta/recipes-devtools/perl/perl-ptest.inc
@@ -21,11 +21,11 @@ do_install_ptest () {
 	# Tweaks to make tests pass
 	cp -pv lib/unicore/TestProp.pl ${D}${libdir}/perl/${PV}/unicore/
 	# Put all *.t files from the lib dir in the ptest package
-	pushd lib
+	cd lib
 	for file in `find -name \*.t`; do
 	    tar -cf - $file | ( cd ${D}${libdir}/perl/${PV} && tar -xf - )
 	done
-	popd
+	cd ..
 
 	mkdir -p ${D}${libdir}/perl/${PV}/XS
 	cp -pv lib/XS/APItest.pm ${D}${libdir}/perl/${PV}/XS/
-- 
1.7.10.4




More information about the Openembedded-core mailing list