Bug 15464

Summary: OECORE_NATIVE_SYSROOT set but not exported in the external SDK
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Gauthier HADERER <ghaderer>
Component: deploymentAssignee: Gauthier HADERER <ghaderer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: randy.macleod, tim.orling
Version: 4.3.3   
Target Milestone: 5.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Re-export OECORE_NATIVE_SYSROOT in the SDK's main environment file none

Description Gauthier HADERER 2024-04-02 09:41:56 UTC
Created attachment 5038 [details]
Re-export OECORE_NATIVE_SYSROOT in the SDK'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.

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

OECORE_NATIVE_SYSROOT is correctly set up and exported in the SDK's environment file. But it's then unset in buildtools/environment-setup-*. The value is then restored in the SDK'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
Comment 1 Tim Orling 2024-04-04 14:37:44 UTC
Gauthier,

Can you please send the patch to the openembedded-core@lists.openembedded.org mailing list.
Comment 2 Gauthier HADERER 2024-04-04 14:49:10 UTC
Hi Tim,

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

Thanks!
Comment 3 Randy MacLeod 2024-06-11 18:39:51 UTC
Bump to M2. Any news Gauthier? Do you need help with the work or the process?
Comment 4 Gauthier HADERER 2024-06-13 13:17:33 UTC
Hi Randy,

I'm very busy with the project I'm working on. We'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'm really sorry for the delay.

Cheers
Comment 5 Randy MacLeod 2024-06-13 14:30:14 UTC
Gauthier, 
No worries. Thanks for the update.
Comment 6 Gauthier HADERER 2024-06-27 08:45:41 UTC
I finally sent the patch to the mailing list: https://lists.openembedded.org/g/openembedded-core/topic/patch/106905435. Thanks for your patience.

Cheers