<?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>3019</bug_id>
          
          <creation_ts>2012-08-28 09:16:13 +0000</creation_ts>
          <short_desc>NullPointerException when setting sysroot in Window-&gt;Preferences</short_desc>
          <delta_ts>2012-11-07 17:03:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.2</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>minor</bug_severity>
          <target_milestone>1.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Björn Arnelid">bjorn.arnelid</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>david.c.nystrom</cc>
    
    <cc>david.nystrom</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</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>24530</commentid>
    <comment_count>0</comment_count>
    <who name="Björn Arnelid">bjorn.arnelid</who>
    <bug_when>2012-08-28 09:16:13 +0000</bug_when>
    <thetext>When pointing to a sysroot with a name differrent from *-pokysdk-linux a NullPointerException will be thrown and sysroot is not set since &quot;-pokysdk-linux&quot; is hardcoded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24703</commentid>
    <comment_count>1</comment_count>
    <who name="Björn Arnelid">bjorn.arnelid</who>
    <bug_when>2012-08-31 13:16:34 +0000</bug_when>
    <thetext>Workaround for me is to create a folder in &lt;toolchaindir&gt;/sysroot named &lt;architecture&gt;-pokysdk-linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24786</commentid>
    <comment_count>2</comment_count>
    <who name="David Nyström">david.c.nystrom</who>
    <bug_when>2012-09-04 08:47:07 +0000</bug_when>
    <thetext>Patch posted on yocto ML.

http://permalink.gmane.org/gmane.linux.embedded.yocto.general/8861</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24805</commentid>
    <comment_count>3</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-04 17:22:56 +0000</bug_when>
    <thetext>Hi David,

Send the question to your patch, please help clarify how you generate your toolchain that&apos;s not following the naming convention.

Thanks,
Jessica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25135</commentid>
    <comment_count>4</comment_count>
    <who name="David Nyström">david.nystrom</who>
    <bug_when>2012-09-13 05:49:26 +0000</bug_when>
    <thetext>Laurentiu Serban, asked me to followup, so here it goes:

In cases where toolchains are created with ${DISTRO} != &quot;poky&quot;, this nullpointerexception is seen,
This patch has already been merged to master, and judging by the git tags, will be apart of the 1.3 release I guess.

Br,
David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25211</commentid>
    <comment_count>5</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-13 18:47:27 +0000</bug_when>
    <thetext>fixed by commit: http://git.yoctoproject.org/cgit.cgi/eclipse-poky/commit/?id=26692a18a8245561cefcab1402b93b6325c36bed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27258</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-11-06 14:40:17 +0000</bug_when>
    <thetext>Hi David,

I am trying to verify this bug but I need some additional details. 
Can you tell me what exact distro are you using, and also what eclipse plugin version you were using?

Thanks,
Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27270</commentid>
    <comment_count>7</comment_count>
    <who name="Björn Arnelid">bjorn.arnelid</who>
    <bug_when>2012-11-07 06:42:04 +0000</bug_when>
    <thetext>This bug is fixed in yocto plugin 1.3. 
It was a problem using yocto plugin 1.2 and earlier on any version of eclipse running on any version of Linux. 

As David described you need to create a toolchain where ${DISTRO} is something other then &quot;poky&quot; to get this error.

I first encountered this bug using eclipse 3.8.1, Yocto plugin 1.2 on Ubuntu 12.04 LTS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27299</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-11-07 17:03:19 +0000</bug_when>
    <thetext>Tested with 78983e939ab17f02f8911c8b0d0e326b419856b9 on master.


In order to verify, I modified the DISTRO to be other than poky. To do so, the following have to be modified in poky:

1. chose a name different than poky for DISTRO, e.g: pob
2. Change in conf/local.conf DISTRO = &quot;poky&quot; to: DISTRO = &quot;pob&quot;
3. Copy meta-yocto/conf/distro/poky.conf to meta-yocto/conf/distro/pob.conf
4. In meta-yocto/conf/distro/pob.conf change the following parameters to other than standard, for ex:

DISTRO = &quot;pob&quot;
SDK_VENDOR = &quot;-pobsdk&quot;
TARGET_VENDOR = &quot;-poby&quot;

This way the folders under sysroots  after sdk is installed will have a different name than &quot;-pokysdk-linux&quot;

5. Source the poky environment: $ source oe-init-build-env
6. Build the standalone toolchain: $ bitbake meta-toolchain-sdk
7. Install the resulted toolchain.

In the latest eclipse (juno) with the latest plugin (http://autobuilder.yoctoproject.org/pub/nightly/20121102-2/eclipse-plugin/) the standalone toolchain created can be imported and used to create and build a new helloworld project.

In eclipse indigo with the 1.2 eclipse plugin release (http://downloads.yoctoproject.org/releases/eclipse-plugin/1.2) and the above toolchain created does not exactly show me a NullPointerException but when pressing OK, a popup window appears and disappears immediately and then the Yocto Project ADT window closes without saving the changes.

Given that using the fix and latest eclipse-plugin and eclipse juno I could build successfully a Hello World application, we can close the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>