<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9763</bug_id>
          
          <creation_ts>2016-06-13 11:28:12 +0000</creation_ts>
          <short_desc>tar --exclude option is position-sensitive</short_desc>
          <delta_ts>2016-08-12 13:32:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Fenkart">afenkart</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="David Rodriguez">david.israelx.rodriguez.castellanos</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62915</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Fenkart">afenkart</who>
    <bug_when>2016-06-13 11:28:12 +0000</bug_when>
    <thetext>http://lists.gnu.org/archive/html/bug-tar/2016-05/msg00022.html

This issue has been fixed for perl-ptest.inc in commit

2e498879098f7d84610aed7961d92433083d9a02
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.


But a grep over openmbedded-core/2fdd2c143 reveals other recipes still
suffer from that problem:

./meta/recipes-support/attr/acl.inc:37:	tar -cf - test/ --exclude nfs
./meta/recipes-support/attr/attr.inc:29:	tar -cf - test/ --exclude ext 
./meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch:57:+	cd $(BUILDDIR); tar -cf - $(TESTDIR) --exclude *.o | ( cd $(DESTDIR) &amp;&amp; tar -xf - )

exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -x )
./meta/recipes-devtools/quilt/quilt.inc:51:	tar -cf - bin/ --exclude \*.in..
./meta/recipes-devtools/quilt/quilt.inc:52:	tar -cf - compat/ --exclude \*.in..
./meta/recipes-devtools/quilt/quilt.inc:53:	tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - )
./meta/recipes-devtools/quilt/quilt.inc:54:	tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - &amp;&amp; chmod 777 test)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63056</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-06-16 15:54:44 +0000</bug_when>
    <thetext>The poky related commit is 5efe4c9a64afe4b5489f1b95d9ade22768841da6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64917</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-08-04 21:17:10 +0000</bug_when>
    <thetext>Files possible affected in bitbake are:

bitbake/lib/bb/fetch2/bzr.py:   tar_flags = &quot;--exclude &apos;.bzr&apos; --exclude &apos;.bzrtags&apos;&quot;
bitbake/lib/bb/fetch2/cvs.py:   tar_flags = &quot;--exclude &apos;CVS&apos;&quot;
bitbake/lib/bb/fetch2/repo.py:  tar_flags = &quot;--exclude &apos;.repo&apos; --exclude &apos;.git&apos;&quot;
bitbake/lib/bb/fetch2/svn.py:   tar_flags = &quot;--exclude &apos;.svn&apos;&quot;

Files affected in OE-Core are:

meta/recipes-devtools/quilt/quilt.inc:  tar -cf - bin/ --exclude \*.in | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - )
meta/recipes-devtools/quilt/quilt.inc:  tar -cf - compat/ --exclude \*.in | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - )
meta/recipes-devtools/quilt/quilt.inc:  tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - )
meta/recipes-devtools/quilt/quilt.inc:  tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - &amp;&amp; chmod 777 test)
meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch:+       cd $(BUILDDIR); tar -cf - $(TESTDIR) --exclude *.o | ( cd $(DESTDIR) &amp;&amp; tar -xf - )
meta/recipes-support/attr/acl.inc:      tar -cf - test/ --exclude nfs | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - )
meta/recipes-support/attr/attr.inc:     tar -cf - test/ --exclude ext | ( cd ${D}${PTEST_PATH} &amp;&amp; tar -xf - )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64945</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-08-08 14:39:09 +0000</bug_when>
    <thetext>Sent patches to OE-Core:

http://lists.openembedded.org/pipermail/openembedded-core/2016-August/124779.html

And for bitbake:

http://lists.openembedded.org/pipermail/bitbake-devel/2016-August/007836.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65020</commentid>
    <comment_count>4</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-08-10 15:03:39 +0000</bug_when>
    <thetext>This has been solved with commits:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=262c81e3ca2583be2d44b7195747f1a42a10a9f3

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a6630c231033cdc4ad783404d7969937ed7a9bd1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>