<?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>7913</bug_id>
          
          <creation_ts>2015-06-20 15:44:28 +0000</creation_ts>
          <short_desc>tar now being grumpy about -ps options incorrectly used with -c</short_desc>
          <delta_ts>2015-09-09 11:32:18 +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>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Cox">chrisc</reporter>
          <assigned_to name="Christopher Cox">chrisc</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</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>51835</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Cox">chrisc</who>
    <bug_when>2015-06-20 15:44:28 +0000</bug_when>
    <thetext>Files effected:
 meta/classes/staging.bbclass
 bitbake/lib/bb/fetch2/__init__.py
 meta/lib/oe/path.py
 meta/lib/oe/path.pyc
 meta/classes/package.bbclass
 meta/classes/libc-package.bbclass

Description of error:
 Newer versions of tar will complain (fail) if the -ps options are used in conjunction with the -c (create) option. The -ps options seem to belong in the -x (extraction) phase.

Example:
  tar -cf - -C &quot;$src&quot; -ps . | tar -xf - -C &quot;$dest&quot;
 becomes
  tar -cf - -C &quot;$src&quot; . | tar -xpsf - -C &quot;$dest&quot;

Behaviour:
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_populate_sysroot
DEBUG: Executing shell function sysroot_stage_all
tar: --same-order option cannot be used with -c
Try &apos;tar --help&apos; or &apos;tar --usage&apos; for more information.
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
DEBUG: Python function do_populate_sysroot finished
ERROR: Function failed: sysroot_stage_all (see /u/work/yoctoProject/raspberryPiB
uild/tmp/work/x86_64-linux/quilt-native/0.60-r0/temp/log.do_populate_sysroot.171
88 for further information)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51925</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-06-25 14:38:01 +0000</bug_when>
    <thetext>Which release are you seeing this with? This was fixed in master and at least a couple of releases back if I recall correctly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51926</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-06-25 14:39:55 +0000</bug_when>
    <thetext>Please let us know which release this was with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51928</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-06-25 14:46:45 +0000</bug_when>
    <thetext>The error includes the path quilt-0.60. This was removed in commit 7579e19:

commit 7579e19c2b67819a6b5b1324567564d1e4125bdc
Author: Chong Lu &lt;Chong.Lu@windriver.com&gt;
Date:   Fri Dec 27 18:17:40 2013 +0800

    quilt: upgrade to 0.61

So what releases did that come from:

$ git tag --contains 7579e19c2b67819a6b5b1324567564d1e4125bdc|grep yocto-
yocto-1.6
yocto-1.6.1
yocto-1.6.2
yocto-1.6.3
yocto-1.7
yocto-1.7.1
yocto-1.7.2
yocto-1.8

I&apos;m guessing the reporter is using 1.5, which is &quot;quite&quot; old now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51930</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-06-25 14:49:43 +0000</bug_when>
    <thetext>Fixed in oe-core 3d5a6d0a480a0fa98260a3b3ffc71b8d9e3e58af:

Date:   Fri Oct 11 23:01:54 2013 +0100
    classes: tar 1.27 fixes

    tar version 1.27 returns:

    tar: --same-order option cannot be used with -c

    with the commandlines we have been using. We can remove the -s option (which
    is --same-order) to remove the error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51940</commentid>
    <comment_count>5</comment_count>
    <who name="Christopher Cox">chrisc</who>
    <bug_when>2015-06-25 15:51:19 +0000</bug_when>
    <thetext>Great question. I utilized: 

  git clone git://git.yoctoproject.org/poky yoctoProject

to retrieve the project instead of a tarball.

I found __version__=1.17.0 in the bitbake script and 1.9x in the Bitbake ChangeLog.

What would be the best method of determining the projects version?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51941</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-06-25 15:54:53 +0000</bug_when>
    <thetext>Then &quot;git show&quot; will tell you what commit you&apos;re using, and we can use that to determine what release.

But the fact remains that your build is using quilt 0.60, which was removed in 2013, so you&apos;re not using master, or 1.8, or 1.7, or 1.6.  Did you switch to a branch after cloning?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51971</commentid>
    <comment_count>7</comment_count>
    <who name="Christopher Cox">chrisc</who>
    <bug_when>2015-06-26 21:50:21 +0000</bug_when>
    <thetext>Gad&apos;s, was just following the authors instructions without understanding git.
I jumped back to commit 4a36a32567ecfbc7ce7b967803e6e23314953ef5

I thought I was helping by identifying the issue and files involved. I did not know I was utilizing ancient code.

Thanks for the rapid response. 

RESOLVED, FIXED (Long ago)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51977</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-06-27 22:26:50 +0000</bug_when>
    <thetext>No problem - always good to file an issue! Thanks for being responsive and getting this closed smoothly.

Also that oe-core commit is *old*, looks like it was part of 1.4.1.  You might want to find newer instructions, or just attempt what you&apos;re doing with the latest releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53872</commentid>
    <comment_count>9</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-09 11:21:10 +0000</bug_when>
    <thetext>this was a bug fixed &quot;RESOLVED, FIXED (Long ago)&quot;
so it was not a regression, because the reporter used an older git.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>