<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Add explicit separator "--" between options and arguments in "tar" </div><div>command to avoid mistakenly detection file which name starts with "-" as<br>an unknown option<br><br>Steps for reproduce issue:<br><br>* Add next variables into "conf/local.conf":<br><br>&nbsp; CC_append_pn-perl = " -MD -Ml,M"<br>&nbsp; CXX_append_pn-perl = " -MD -Ml,M"<br><br>* Then "bitbake perl"<br>* Task "do_install_ptest_base" will fail with error:<br><br>&nbsp;&nbsp;&nbsp; tar: invalid option -- '.'<br><br>&nbsp; because of presence next file<br><br>&nbsp;&nbsp;&nbsp; tmp/work/i586-poky-linux/perl/5.22.1-r0/perl-5.22.1/-.d<br><br>&nbsp; which starts from minus (-) sign and Yocto tries to run:<br><br>&nbsp;&nbsp;&nbsp; tar &lt;options&gt; -.d &lt;other files&gt;<br><br>&nbsp; and "tar" parse "-.d" as a option instead of file<br><br>Signed-off-by: Ivan Efimov &lt;i.efimov@inango-systems.com&gt;<br>---<br>&nbsp;meta/recipes-devtools/perl/perl-ptest.inc | 2 +-<br>&nbsp;1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc<br>index d136c5c0e4..51367b5ed9 100644<br>--- a/meta/recipes-devtools/perl/perl-ptest.inc<br>+++ b/meta/recipes-devtools/perl/perl-ptest.inc<br>@@ -9,7 +9,7 @@ do_install_ptest () {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -e "s:\/opt:\/usr:" -i Porting/add-package.pl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -e "s:\/local\/gnu\/:\/:" -i hints/cxux.sh<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tar -c --exclude=\*.o --exclude=libperl.so --exclude=Makefile --exclude=makefile --exclude=hostperl \<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --exclude=miniperl --exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -x )<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --exclude=miniperl --exclude=generate_uudmap --exclude=patches -- * | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -x )<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -i -e "s,${D},,g" \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -e "s,--sysroot=${STAGING_DIR_HOST},,g" \<br>-- <br>2.14.1<br><br data-mce-bogus="1"></div></div></body></html>