<?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>4853</bug_id>
          
          <creation_ts>2013-07-15 22:06:41 +0000</creation_ts>
          <short_desc>Can&apos;t install prebuilt SDK</short_desc>
          <delta_ts>2013-07-19 09:17:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</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>critical</bug_severity>
          <target_milestone>1.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick G">exosyst</reporter>
          <assigned_to name="Stefan Stanacar">sstncr</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>rpjday</cc>
    
    <cc>sstncr</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34582</commentid>
    <comment_count>0</comment_count>
    <who name="Nick G">exosyst</who>
    <bug_when>2013-07-15 22:06:41 +0000</bug_when>
    <thetext>Tried to install the prebuilt SDK for 1.4 (and also tried 1.4.1) and was unable to finish the installation

[nick@slimtop BBB]$ sudo ./poky-eglibc-i686-arm-toolchain-gmae-1.4.sh 
[sudo] password for nick: 
Enter target directory for SDK (default: /opt/poky/1.4): 
You are about to install the SDK to &quot;/opt/poky/1.4&quot;. Proceed[Y/n]?y
Extracting SDK...done
Setting it up...SDK could not be set up. Relocate script failed. Abort!

Digging into it - it looks like the relocate_sdk.py that gets extracted fails with an exit code of 255 and is checking for the wrong number of arguments but I didn&apos;t want to dive too far down the rabbit hole on this.

I&apos;m using Fedora 19 and the downloads were from http://downloads.yoctoproject.org/releases/yocto/yocto-1.4/toolchain/i686/poky-eglibc-i686-arm-toolchain-gmae-1.4.sh and the newer http://downloads.yoctoproject.org/releases/yocto/yocto-1.4.1/toolchain/i686/poky-eglibc-i686-arm-toolchain-gmae-1.4.1.sh


In the meantime, are there still .tar.gz archives that I can just extract to save messing with broken scripts?

Thanks, 
Nick</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34593</commentid>
    <comment_count>1</comment_count>
    <who name="Nick G">exosyst</who>
    <bug_when>2013-07-16 09:14:52 +0000</bug_when>
    <thetext>OK, So i&apos;ve just tested this on a slightly older F18 machine and it installed fine so *something* changed on F19.

Is there any triaging I can do to help this along?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34600</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-07-16 11:32:38 +0000</bug_when>
    <thetext>The problem it&apos;s in the script here:
executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm +111)

-perm +mode is no longer supported according to F19&apos;s find&apos;s man page:


 -perm +mode
              This  is  no  longer  supported  (and  has been deprecated since
              2005).  Use -perm /mode instead.

F18&apos;s man page says:

  -perm +mode
              Deprecated,  old way of searching for files with any of the per‐
              mission bits in mode set.  You should use -perm  /mode  instead.
              Trying to use the `+&apos; syntax with symbolic modes will yield sur‐
              prising results.  For example, `+u+x&apos; is a valid  symbolic  mode
              (equivalent to +u,+x, i.e. 0111) and will therefore not be eval‐
              uated as -perm +mode but instead as  the  exact  mode  specifier
              -perm  mode  and so it matches files with exact permissions 0111
              instead of files with any execute bit set.  If  you  found  this
              paragraph  confusing,  you&apos;re  not alone - just use -perm /mode.
              This form of the -perm test  is  deprecated  because  the  POSIX
              specification  requires  the  interpretation of a leading `+&apos; as
              being part of a symbolic mode, and so we switched to  using  `/&apos;
              instead.


The new /mode seems to workson F18 and Ubuntu 12.04, I&apos;ll send a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34602</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-07-16 11:35:27 +0000</bug_when>
    <thetext>Assigning the bug to Stefan as he already has the fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34603</commentid>
    <comment_count>4</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-07-16 11:48:44 +0000</bug_when>
    <thetext>I&apos;ve sent a fix on the ML.
With that applied I&apos;ve built meta-toolchain on latest master and that installed just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34696</commentid>
    <comment_count>5</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-07-19 09:17:33 +0000</bug_when>
    <thetext>Merged in master, commit 8db36429ef328b97340ee1d9fc2e697cfdd68bff</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>