<?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>15464</bug_id>
          
          <creation_ts>2024-04-02 09:41:56 +0000</creation_ts>
          <short_desc>OECORE_NATIVE_SYSROOT set but not exported in the external SDK</short_desc>
          <delta_ts>2024-08-08 15:09:09 +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>deployment</component>
          <version>4.3.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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gauthier HADERER">ghaderer</reporter>
          <assigned_to name="Gauthier HADERER">ghaderer</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>98682</commentid>
    <comment_count>0</comment_count>
      <attachid>5038</attachid>
    <who name="Gauthier HADERER">ghaderer</who>
    <bug_when>2024-04-02 09:41:56 +0000</bug_when>
    <thetext>Created attachment 5038
Re-export OECORE_NATIVE_SYSROOT in the SDK&apos;s main environment file

Reproduction:

1. Install the Poky external SDK.
2. Source the environment file.
3. Run oe-find-native-sysroot for any component, for instance zlib-native.

&gt; $ oe-find-native-sysroot zlib-native
&gt; Error: Unable to locate bitbake command.
&gt; Did you forget to source the build environment setup script?

OECORE_NATIVE_SYSROOT is correctly set up and exported in the SDK&apos;s environment file. But it&apos;s then unset in buildtools/environment-setup-*. The value is then restored in the SDK&apos;s environment file but not exported again.

This was tested with the following SDKs:

- poky-glibc-x86_64-core-image-sato-core2-64-qemux86-64-toolchain-ext-4.0.17.sh
- poky-glibc-x86_64-core-image-sato-core2-64-qemux86-64-toolchain-ext-4.3.3.sh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98691</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-04-04 14:37:44 +0000</bug_when>
    <thetext>Gauthier,

Can you please send the patch to the openembedded-core@lists.openembedded.org mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98693</commentid>
    <comment_count>2</comment_count>
    <who name="Gauthier HADERER">ghaderer</who>
    <bug_when>2024-04-04 14:49:10 +0000</bug_when>
    <thetext>Hi Tim,

Sure I will do that. I just need to read the contribution guidelines first.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99168</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-06-11 18:39:51 +0000</bug_when>
    <thetext>Bump to M2. Any news Gauthier? Do you need help with the work or the process?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99178</commentid>
    <comment_count>4</comment_count>
    <who name="Gauthier HADERER">ghaderer</who>
    <bug_when>2024-06-13 13:17:33 +0000</bug_when>
    <thetext>Hi Randy,

I&apos;m very busy with the project I&apos;m working on. We&apos;re close to the final delivery, so I had to put this ticket aside to focus on higher priority tasks. I hope I should be able to move forward in the coming weeks. I&apos;m really sorry for the delay.

Cheers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99180</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-06-13 14:30:14 +0000</bug_when>
    <thetext>Gauthier, 
No worries. Thanks for the update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99267</commentid>
    <comment_count>6</comment_count>
    <who name="Gauthier HADERER">ghaderer</who>
    <bug_when>2024-06-27 08:45:41 +0000</bug_when>
    <thetext>I finally sent the patch to the mailing list: https://lists.openembedded.org/g/openembedded-core/topic/patch/106905435. Thanks for your patience.

Cheers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99524</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-08-08 15:09:09 +0000</bug_when>
    <thetext>https://git.openembedded.org/openembedded-core/commit/?id=825c996b7995d3ad510933b1a88229831ca5ea29</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5038</attachid>
            <date>2024-04-02 09:41:56 +0000</date>
            <delta_ts>2024-04-02 09:41:56 +0000</delta_ts>
            <desc>Re-export OECORE_NATIVE_SYSROOT in the SDK&apos;s main environment file</desc>
            <filename>0001-Make-sure-OECORE_NATIVE_SYSROOT-is-exported-in-the-e.patch</filename>
            <type>text/plain</type>
            <size>1290</size>
            <attacher name="Gauthier HADERER">ghaderer</attacher>
            
              <data encoding="base64">RnJvbSAwMmZlN2YxYjkwOTBmZTM4YTQ1Yzk2YTU4Mzg2ZGNmOWI4MTNjNmZiIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBHYXV0aGllciBIQURFUkVSIDxnaGFkZXJlckB3eXBsYXkuY29t
PgpEYXRlOiBUdWUsIDIgQXByIDIwMjQgMTE6MzU6MDQgKzAyMDAKU3ViamVjdDogTWFrZSBzdXJl
IE9FQ09SRV9OQVRJVkVfU1lTUk9PVCBpcyBleHBvcnRlZCBpbiB0aGUgZXh0ZW5zaWJsZSBTREsu
CgpJdCdzIGNvcnJlY3RseSBzZXQgdXAgYW5kIGV4cG9ydGVkI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