<?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>11474</bug_id>
          
          <creation_ts>2017-05-08 04:30:00 +0000</creation_ts>
          <short_desc>devtool add / upgrade  will not work if native sysroot dependencies required</short_desc>
          <delta_ts>2017-05-31 01:15:34 +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>Scripts and Tools</component>
          <version>2.3</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>73103</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-08 04:30:00 +0000</bug_when>
    <thetext>Since recipe-specific sysroots were implemented, devtool add and devtool upgrade operations that fetch from a URL that requires native sysroot dependencies will fail to work as there is no recipe-specific sysroot set up for them during fetching. For example:

---------- snip ----------
$ devtool add gnutls3 ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.10.tar.xz
NOTE: Fetching ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.10.tar.xz...
NOTE: Unpacking /home/paul/poky/downloads/gnutls-3.5.10.tar.xz to /tmp/recipetool-sdzxrlvn/
NOTE: Unpacking /home/paul/poky/downloads/gnutls-3.5.10.tar.xz to /tmp/recipetool-sdzxrlvn/
/bin/sh: xz: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
ERROR: Unpack failure for URL: &apos;ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.10.tar.xz&apos;. Unpack command PATH=&quot;/home/paul/poky/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/paul/poky/poky/scripts:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/sbin:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/sbin:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/bin:/home/paul/poky/poky/bitbake/bin:/home/paul/poky/poky/build/tmp/hosttools&quot; xz -dc /home/paul/poky/downloads/gnutls-3.5.10.tar.xz | tar x --no-same-owner -f - failed with return value 2
ERROR: Command &apos;script -e -q -c &quot;recipetool --color=always create --devtool -o /tmp/devtoolhixoe6sw &apos;ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.10.tar.xz&apos;  -x /home/paul/poky/poky/build/workspace/sources/devtoolsrc51696mo2 -N gnutls3&quot; /dev/null&apos; failed
---------- snip ----------

(This is related to but not the same as bug 11198.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73543</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-29 02:05:59 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=415fbfb0cd1bc5129179596ba27ae2362b7de2a4

I have sent a backport to pyro as well.

Note: if a dependency such as xz-native has not been built previously then you will still get a failure, however that was always an issue even pre-RSS, and is covered separately by bug 11198.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73575</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-31 01:15:34 +0000</bug_when>
    <thetext>Fix merged to pyro as well:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=pyro&amp;id=645467e03f338ce8a9f802745e60626e2256b1c9
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=pyro&amp;id=abae42362ad327df4caf86743d02f632931f1f1d

I missed noting that the master commit relies on the following (pyro equivalent above):

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

    </bug>

</bugzilla>