Skip to contentSkip to conversation

perl: reorder tar arguments in do_install_ptest()

PATCH In review Renato Caldas 2 participants 3 messages May 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: reorder tar arguments in do_install_ptest()

On some distributions tar requires the FILE argument to be the last, and the existing order was causing the subsequent --exclude options to be dropped.

Fixes [YOCTO #9673].

---
 meta/recipes-devtools/perl/perl-ptest.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -2
index 948ea7c..66c5355 100644
@@ -7,8 +7,8 @@ do_install_ptest () {
 	mkdir -p ${D}${PTEST_PATH}
 	sed -e "s:\/opt:\/usr:" -i Porting/add-package.pl
 	sed -e "s:\/local\/gnu\/:\/:" -i hints/cxux.sh
-	tar -cf - * --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \
-		--exclude miniperl --exclude generate_uudmap --exclude patches | ( cd ${D}${PTEST_PATH} && tar -xf - )
+	tar -cf - --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \
+		--exclude miniperl --exclude generate_uudmap --exclude patches * | ( cd ${D}${PTEST_PATH} && tar -xf - )
 
 	sed -i -e "s,${D},,g" \
 	       -e "s,--sysroot=${STAGING_DIR_HOST},,g" \
Signature · 1 line
2.8.3
#1 lore raw

Thanks for sending the patch, only a little comment the [master] prefix isn't required.

alimon

Quoted 26 lines · Renato Caldas

On some distributions tar requires the FILE argument to be the last, and the existing order was causing the subsequent --exclude options to be dropped.

Fixes [YOCTO #9673].

---
 meta/recipes-devtools/perl/perl-ptest.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -2
index 948ea7c..66c5355 100644
@@ -7,8 +7,8 @@ do_install_ptest () {
 	mkdir -p ${D}${PTEST_PATH}
 	sed -e "s:\/opt:\/usr:" -i Porting/add-package.pl
 	sed -e "s:\/local\/gnu\/:\/:" -i hints/cxux.sh
-	tar -cf - * --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \
-		--exclude miniperl --exclude generate_uudmap --exclude patches | ( cd ${D}${PTEST_PATH} && tar -xf - )
+	tar -cf - --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \
+		--exclude miniperl --exclude generate_uudmap --exclude patches * | ( cd ${D}${PTEST_PATH} && tar -xf - )
 
 	sed -i -e "s,${D},,g" \
 	       -e "s,--sysroot=${STAGING_DIR_HOST},,g" \
#2 lore raw

2016-05-30 22:49 GMT+01:00 Aníbal Limón <[email protected]>:

Quoted 2 lines

Thanks for sending the patch, only a little comment the [master] prefix isn't required.

I know, I meant to type "krogoth".. noticed the error shortly after sending it :)

Quoted 31 lines

alimon

Quoted 26 lines · Renato Caldas

On some distributions tar requires the FILE argument to be the last, and the existing order was causing the subsequent --exclude options to be dropped.

Fixes [YOCTO #9673].

---
 meta/recipes-devtools/perl/perl-ptest.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -2
index 948ea7c..66c5355 100644
@@ -7,8 +7,8 @@ do_install_ptest () {
      mkdir -p ${D}${PTEST_PATH}
      sed -e "s:\/opt:\/usr:" -i Porting/add-package.pl
      sed -e "s:\/local\/gnu\/:\/:" -i hints/cxux.sh
-     tar -cf - * --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \
-             --exclude miniperl --exclude generate_uudmap --exclude patches | ( cd ${D}${PTEST_PATH} && tar -xf - )
+     tar -cf - --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \
+             --exclude miniperl --exclude generate_uudmap --exclude patches * | ( cd ${D}${PTEST_PATH} && tar -xf - )
 
      sed -i -e "s,${D},,g" \
             -e "s,--sysroot=${STAGING_DIR_HOST},,g" \