<?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>7545</bug_id>
          
          <creation_ts>2015-03-31 09:08:57 +0000</creation_ts>
          <short_desc>Installing extensible SDK as root should fail earlier with a proper error</short_desc>
          <delta_ts>2015-08-07 09:20:55 +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>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.9 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Randy Witt">randy.e.witt</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>ke.zou</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>49951</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-03-31 09:08:57 +0000</bug_when>
    <thetext>Git rev: master/8b3d3e7c957ad06c390886487f69aeb8e145da6a

Steps:
1. set the arch to qemuppc
2. bitbake core-image-sato -c populate_sdk_ext
3. Install the poky-glibc-x86_64-core-image-sato-ppc7400-toolchain-ext-1.8.sh

############################
$ sudo ./poky-glibc-x86_64-core-image-sato-ppc7400-toolchain-ext-1.8.sh 
Enter target directory for SDK (default: /opt/poky/1.8): 
You are about to install the SDK to &quot;/opt/poky/1.8&quot;. Proceed[Y/n]?
Extracting SDK...done
Setting it up...
Extracting buildtools...
Preparing build system...
ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Do not use Bitbake as root.
SDK preparation failed
#############################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49965</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-03-31 13:04:03 +0000</bug_when>
    <thetext>This is a known limitation - even if we bypassed the check, the user must be able to write to the directory where the extensible SDK is installed, so there&apos;s no point installing it as root. Ideally we would check for it up front however rather than waiting until the preparation stage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50189</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-04-09 15:32:43 +0000</bug_when>
    <thetext>found during 1.8_M4.rc2 testing
fido:33558eacc8a2d3dce3396b9ab2fd0773ac5076bc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52089</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-07-02 06:01:20 +0000</bug_when>
    <thetext>This issue still exists in 1.9 M1 rc1 (master/18e902b2dc17746af453869bcc1fba4dbae7c94f)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52533</commentid>
    <comment_count>4</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-07-22 19:56:50 +0000</bug_when>
    <thetext>This should be fixed in master as of:

commit 2563aa55281c60c877d8a298b6884ee7da550234
Author: Randy Witt &lt;randy.e.witt@linux.intel.com&gt;
Date:   Thu Jul 16 13:34:21 2015 -0700</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52897</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-08-07 09:20:55 +0000</bug_when>
    <thetext>I tested on the 1.9 M2 rc1 (master/22078d5e533e59a9aa6999abefbf6ece4e01de8d)
It can throw error properly now:

$ sudo ./poky-glibc-x86_64-core-image-sato-ppc7400-toolchain-ext-1.8+snapshot.sh
Poky (Yocto Project Reference Distro) Extensible SDK installer version 1.8+snapshot
===========================================================
ERROR: The extensible sdk cannot be installed as root.

But there is still other error when install it by normal user. I will open a new bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>