perl: reorder tar arguments in do_install_ptest()
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
@@ -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
PATCH 1/1 perl-ptest.inc: fix tar call to prevent objcopy failure
With tar version 1.29, the tar call used to copy the ptest files will not work anymore. While the call did not match the man page (but worked) before, anyway, the latest update of tar seems to have a more strict argument handling.
With the current version of the tar call, the copying of files still works with latest tar version, but the excludes will not be handled properly anymore.
This results in having binaries compiled with host GCC in the package. When doing the strip_and_split files in do_package() with the target objcopy, bitbake will fail with this error:
ERROR: objcopy failed with exit code 256 (cmd was [...]) [...]
File format not recognized
Thus, the current argument issues and required changes are:
* Options must be placed _before_ the pathnames.
* --exclude must be followd by a '=' in order to work properly
* 'f' options is for providing an archive file, which is unnecessary in this case
Note that this could also be a candidate for backporting.
---
I just wanted to send my patch when I saw you had already send it. Will send this one instead as I added some more changes that might be useful. Maybe we can squash this into yours if its found to be useful, too.
Best regards, Enrico
meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -2
@@ -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 -c --exclude=\*.o --exclude=libperl.so --exclude=Makefile --exclude=makefile --exclude=hostperl \ + --exclude=miniperl --exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} && tar -x ) sed -i -e "s,${D},,g" \ -e "s,--sysroot=${STAGING_DIR_HOST},,g" \
Signature · 1 line
2.8.1
Re: [PATCH] perl-ptest.inc: fix tar call to prevent objcopy failure
Hi Enrico,
Sorry for the late reply, I missed this e-mail... Your suggestions are very valid, although not strictly needed to fix this particular bug.
My suggestion is that you submit a new patch with those improvements on top of the quick fix I made. I suggest you also add quotes to the --exclude options per tar's man page.
You might also want to simplify the commit message a bit. I'm fairly new to yocto (and my view may be wrong), but this is how I would do it:
- change the component name from "perl-ptest.inc:" to "perl:"
- use the commit title to describe the change you made, not exactly what bug it fixed. Example: "fix tar call according to its man page" (or something like that)
- describe the change in simpler terms. Taking what you wrote, I would rewrite it like this:
"The existing tar call on do_install_ptest() did not match the man page, but worked with older tar versions. The new 1.29 version of tar has stricter argument handling, and future versions may be even stricter. Failure to use it according to its manual may result in arguments being silently ignored and breaking the build."
So while changing the position of the "*" fixed it for tar 1.29, your proposed changes are important to future-proof the perl recipe for newer tar versions. As such, please do submit a new patch.
Cheers,
Renato
2016-05-30 14:04 GMT+01:00 Enrico Jorns <[email protected]>:
Quoted 64 lines
With tar version 1.29, the tar call used to copy the ptest files will not work anymore. While the call did not match the man page (but worked) before, anyway, the latest update of tar seems to have a more strict argument handling.
With the current version of the tar call, the copying of files still works with latest tar version, but the excludes will not be handled properly anymore.
This results in having binaries compiled with host GCC in the package. When doing thestrip_and_splitfiles indo_package()with the target objcopy, bitbake will fail with this error:ERROR: objcopy failed with exit code 256 (cmd was [...]) [...]
File format not recognizedThus, the current argument issues and required changes are:
* Options must be placed _before_ the pathnames.
* --exclude must be followd by a '=' in order to work properly
* 'f' options is for providing an archive file, which is unnecessary in this case
Note that this could also be a candidate for backporting.
Signed-off-by Enrico Jorns <[email protected]>---
I just wanted to send my patch when I saw you had already send it. Will send this one instead as I added some more changes that might be useful. Maybe we can squash this into yours if its found to be useful, too.
Best regards, Enrico
meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/perl-ptest.inc +2
-3@@ -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 -c --exclude=\*.o --exclude=libperl.so --exclude=Makefile --exclude=makefile --exclude=hostperl \ + --exclude=miniperl --exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} && tar -x ) sed -i -e "s,${D},,g" \ -e "s,--sysroot=${STAGING_DIR_HOST},,g" \ --2.8.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [PATCH] perl-ptest.inc: fix tar call to prevent objcopy failure
Hi Renato,
thanks for the comments on my changes.
Quoted 3 lines · Renato Caldas
My suggestion is that you submit a new patch with those improvements on top of the quick fix I made. I suggest you also add quotes to the --exclude options per tar's man page.
I did not find any hints about quotes, where is it written? It also seems to me that the man page in current tar (1.29) is a bit incomplete as it does not mention any 'exclude' option, anymore. At least on my distro (debian).
Quoted 4 lines
You might also want to simplify the commit message a bit. I'm fairly new to yocto (and my view may be wrong), but this is how I would do it:
- change the component name from "perl-ptest.inc:" to "perl:"
Maybe "perl-ptest" would be ok, too, as it matches the resulting packages name.
Quoted 6 lines
- use the commit title to describe the change you made, not exactly what bug it fixed. Example: "fix tar call according to its man page" (or something like that)
- describe the change in simpler terms. Taking what you wrote, I would rewrite it like this:
Quoted 6 lines
"The existing tar call on
do_install_ptest()did not match the man page, but worked with older tar versions. The new 1.29 version of tar has stricter argument handling, and future versions may be even stricter. Failure to use it according to its manual may result in arguments being silently ignored and breaking the build."
Yes, sounds good to me. And my original message does not match the remaining changes anymore. Is it ok if I take your text, and add you as Signed-off for the patch then?
Quoted 4 lines
So while changing the position of the "*" fixed it for tar 1.29, your proposed changes are important to future-proof the perl recipe for newer tar versions. As such, please do submit a new patch.
I will do so, then.
Best regard, Enrico
Signature · 4 lines
Pengutronix e.K. | Enrico Jörns | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Re: [PATCH] perl-ptest.inc: fix tar call to prevent objcopy failure
Hi Enrico,
2016-06-03 7:50 GMT+01:00 Enrico Joerns <[email protected]>:
Quoted 6 lines
Hi Renato,
thanks for the comments on my changes.
Quoted 1 line · Renato Caldas
Quoted 8 lines
Quoted 3 lines
My suggestion is that you submit a new patch with those improvements on top of the quick fix I made. I suggest you also add quotes to the --exclude options per tar's man page.
I did not find any hints about quotes, where is it written? It also seems to me that the man page in current tar (1.29) is a bit incomplete as it does not mention any 'exclude' option, anymore. At least on my distro (debian).
You can find the man page online, this is the relevant section about the recommended --exclude option quotes:
http://www.gnu.org/software/tar/manual/tar.html#SEC112
Quoted 23 lines
Quoted 5 lines
You might also want to simplify the commit message a bit. I'm fairly new to yocto (and my view may be wrong), but this is how I would do it:
- change the component name from "perl-ptest.inc:" to "perl:"Maybe "perl-ptest" would be ok, too, as it matches the resulting packages name.
Quoted 6 lines
- use the commit title to describe the change you made, not exactly what bug it fixed. Example: "fix tar call according to its man page" (or something like that)
- describe the change in simpler terms. Taking what you wrote, I would rewrite it like this:Quoted 6 lines
"The existing tar call on
do_install_ptest()did not match the man page, but worked with older tar versions. The new 1.29 version of tar has stricter argument handling, and future versions may be even stricter. Failure to use it according to its manual may result in arguments being silently ignored and breaking the build."
Quoted 3 lines
Yes, sounds good to me. And my original message does not match the remaining changes anymore. Is it ok if I take your text, and add you as Signed-off for the patch then?
Yes, it would be fine, but your patch was already merged as-was. Maybe next time :)
Cheers,
Renato
Quoted 18 lines
Quoted 5 lines
So while changing the position of the "*" fixed it for tar 1.29, your proposed changes are important to future-proof the perl recipe for newer tar versions. As such, please do submit a new patch.
I will do so, then.
Best regard, Enrico
--
Pengutronix e.K. | Enrico Jörns | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Hi Renato,
I tested the patch and works very well.
Could you sent another patch with [krogoth] prefix to be backported?
Thanks a lot,
alimon
Quoted 6 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].
Signed-off-by Renato Caldas <[email protected]>
Quoted 20 lines
--- meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/perl-ptest.inc +2
-2@@ -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" \
Hi Aníbal,
Sorry but I'm still a bit unfamiliar with the yocto workflow, should I resubmit exact same patch with the [krogoth] prefix added, or should I change the commit message in any way? It applies cleanly to both master and krogoth.
Cheers,
Renato
2016-05-30 21:11 GMT+01:00 Aníbal Limón <[email protected]>:
Quoted 38 lines
Hi Renato,
I tested the patch and works very well.
Could you sent another patch with [krogoth] prefix to be backported?Thanks a lot,
alimonQuoted 6 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].
Signed-off-by Renato Caldas <[email protected]>Acked-by Aníbal Limón <[email protected]>Quoted 20 lines
--- meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/perl-ptest.inc +2
-2@@ -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" \
Quoted 6 lines · Renato Caldas
Hi Aníbal,
Sorry but I'm still a bit unfamiliar with the yocto workflow, should I resubmit exact same patch with the [krogoth] prefix added, or should I change the commit message in any way? It applies cleanly to both master and krogoth.
You need to send two patches one with [krogoth] prefix and another without it for master.
Also is a good practice to cc the maintainer of the release [krogoth] release, since the 2.1 release was a little time ago i don't know who is the current maintainer sorry.
Cheers,
alimon
Quoted 43 lines
Cheers,
Renato2016-05-30 21:11 GMT+01:00 Aníbal Limón <[email protected]>:
Quoted 38 lines
Hi Renato,
I tested the patch and works very well.
Could you sent another patch with [krogoth] prefix to be backported?Thanks a lot,
alimonQuoted 6 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].
Signed-off-by Renato Caldas <[email protected]>Acked-by Aníbal Limón <[email protected]>Quoted 20 lines
--- meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/perl-ptest.inc +2
-2@@ -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" \
Quoted 10 lines · Aníbal Limón
Quoted 6 lines · Renato Caldas
Hi Aníbal,
Sorry but I'm still a bit unfamiliar with the yocto workflow, should I resubmit exact same patch with the [krogoth] prefix added, or should I change the commit message in any way? It applies cleanly to both master and krogoth.
Quoted 6 lines
You need to send two patches one with [krogoth] prefix and another without it for master.
Also is a good practice to cc the maintainer of the release [krogoth] release, since the 2.1 release was a little time ago i don't know who is the current maintainer sorry.
Reviewing this wiki [1] the maintainer for krogoth is Armin Kuster <[email protected]>.
[1] https://wiki.yoctoproject.org/wiki/Releases
Quoted 51 lines
Cheers,
alimonQuoted 43 lines
Cheers,
Renato2016-05-30 21:11 GMT+01:00 Aníbal Limón <[email protected]>:
Quoted 38 lines
Hi Renato,
I tested the patch and works very well.
Could you sent another patch with [krogoth] prefix to be backported?Thanks a lot,
alimonQuoted 6 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].
Signed-off-by Renato Caldas <[email protected]>Acked-by Aníbal Limón <[email protected]>Quoted 20 lines
--- meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/perl-ptest.inc +2
-2@@ -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" \
2016-05-30 22:17 GMT+01:00 Aníbal Limón <[email protected]>:
Quoted 16 lines · Aníbal Limón
Quoted 13 lines · Renato Caldas
Quoted 6 lines
Hi Aníbal,
Sorry but I'm still a bit unfamiliar with the yocto workflow, should I resubmit exact same patch with the [krogoth] prefix added, or should I change the commit message in any way? It applies cleanly to both master and krogoth.
You need to send two patches one with [krogoth] prefix and another without it for master.
Quoted 8 lines
Quoted 3 lines
Also is a good practice to cc the maintainer of the release [krogoth] release, since the 2.1 release was a little time ago i don't know who is the current maintainer sorry.
Reviewing this wiki [1] the maintainer for krogoth is Armin Kuster <[email protected]>.
Thanks, will do so. And sorry for top-posting before, bad habits..
Cheers,
Renato
Quoted 52 lines
Quoted 51 lines
Cheers,
alimonQuoted 43 lines
Cheers,
Renato2016-05-30 21:11 GMT+01:00 Aníbal Limón <[email protected]>:
Quoted 38 lines
Hi Renato,
I tested the patch and works very well.
Could you sent another patch with [krogoth] prefix to be backported?Thanks a lot,
alimonQuoted 6 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].
Signed-off-by Renato Caldas <[email protected]>Acked-by Aníbal Limón <[email protected]>Quoted 20 lines
--- meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/perl-ptest.inc +2
-2@@ -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" \
PATCH 1/1 perl-ptest.inc: fix tar call to prevent objcopy failure
In reply to Renato CaldasHi,
I recived some request to send this patch for backporting to jethro/krogoth. It is required for building Yocto with tar >= 1.29.
It is already in oe-core master, id 2e498879098f7d84610aed7961d92433083d9a02.
Best regards, Enrico
--->8---->8---->8-----
With tar version 1.29, the tar call used to copy the ptest files will not work anymore. While the call did not match the man page (but worked) before, anyway, the latest update of tar seems to have a more strict argument handling.
With the current version of the tar call, the copying of files still works with latest tar version, but the excludes will not be handled properly anymore.
This results in having binaries compiled with host GCC in the package. When doing the strip_and_split files in do_package() with the target objcopy, bitbake will fail with this error:
ERROR: objcopy failed with exit code 256 (cmd was [...]) [...]
File format not recognized
Thus, the current argument issues and required changes are:
* Options must be placed _before_ the pathnames.
* --exclude must be followd by a '=' in order to work properly
* 'f' options is for providing an archive file, which is unnecessary in this case
Note that this could also be a candidate for backporting.
---
meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -2
@@ -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 -c --exclude=\*.o --exclude=libperl.so --exclude=Makefile --exclude=makefile --exclude=hostperl \ + --exclude=miniperl --exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} && tar -x ) sed -i -e "s,${D},,g" \ -e "s,--sysroot=${STAGING_DIR_HOST},,g" \
Signature · 1 line
2.8.1
PATCH 1/1 perl-ptest.inc: fix tar call to prevent objcopy failure
In reply to Renato CaldasHi,
I recived some request to send this patch for backporting to jethro/krogoth. It is required for building Yocto with tar >= 1.29.
It is already in oe-core master, id 2e498879098f7d84610aed7961d92433083d9a02.
Best regards, Enrico
--->8---->8---->8-----
With tar version 1.29, the tar call used to copy the ptest files will not work anymore. While the call did not match the man page (but worked) before, anyway, the latest update of tar seems to have a more strict argument handling.
With the current version of the tar call, the copying of files still works with latest tar version, but the excludes will not be handled properly anymore.
This results in having binaries compiled with host GCC in the package. When doing the strip_and_split files in do_package() with the target objcopy, bitbake will fail with this error:
ERROR: objcopy failed with exit code 256 (cmd was [...]) [...]
File format not recognized
Thus, the current argument issues and required changes are:
* Options must be placed _before_ the pathnames.
* --exclude must be followd by a '=' in order to work properly
* 'f' options is for providing an archive file, which is unnecessary in this case
Note that this could also be a candidate for backporting.
---
meta/recipes-devtools/perl/perl-ptest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -2
@@ -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 -c --exclude=\*.o --exclude=libperl.so --exclude=Makefile --exclude=makefile --exclude=hostperl \ + --exclude=miniperl --exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} && tar -x ) sed -i -e "s,${D},,g" \ -e "s,--sysroot=${STAGING_DIR_HOST},,g" \
Signature · 1 line
2.8.1