<?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>131</bug_id>
          
          <creation_ts>2010-07-19 20:34:56 +0000</creation_ts>
          <short_desc>Yocto SDK plugin set the wrong environment variables for cross autotool</short_desc>
          <delta_ts>2010-12-21 05:59: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>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>0.9</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>major</bug_severity>
          <target_milestone>0.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>liping.ke</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9024</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-07-19 20:34:56 +0000</bug_when>
    <thetext>After Richard modified the meta-toolchain output infrastructure, the environment variables for cross autotool compile in Yocto SDK plugin is not valid any more.

The environment variables are set through YoctoSDKProjectNature.setEnvironmentVariables(), which set 3 variables &quot;PATH&quot;, &quot;PKG_CONFIG_SYSROOT_DIR&quot;, &quot;PKG_CONFIG_PATH&quot;. They all need to be adjusted according to the latest meta-toolchain output change.

It looks like there are some env variables missing in the function, e.g. CC, CONFIGURE_FLAGS, etc. which are defined in the file /opt/poky/environment-setup-XXX-poky-linux. 

The misconfigured environment would cause autogen.sh generated wrong configure while the user is unaware of. (HelloWorld has no problem, but large projects using pkg-config would cause problems).

Besides, it would be nice if YoctoSDKProjectNature.configureAutotoolsoptions() can set autotool options like --host, --target, --build to the value extracted from CONFIGURE_CFLAGS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9055</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-07-25 15:57:22 +0000</bug_when>
    <thetext>Rework the preference and project setting pages for Yocto projects to adopt the latest meta-toolchain-sdk directory structure changes.  Also, include target, host, build and compiler flags to autobools according the user setup</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9167</commentid>
    <comment_count>2</comment_count>
    <who name="Yongkang You">yongkang.you</who>
    <bug_when>2010-07-29 18:34:30 +0000</bug_when>
    <thetext>Changed to SDK Plugin/Eclipse component</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9757</commentid>
    <comment_count>3</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-09-13 02:36:34 +0000</bug_when>
    <thetext>Verified that the plug-in now read in those environment variables from the file /opt/poky/environment-setup-XXX-poky-linux.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>