Bug 15464 - OECORE_NATIVE_SYSROOT set but not exported in the external SDK
Summary: OECORE_NATIVE_SYSROOT set but not exported in the external SDK
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 4.3.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.1 M2
Assignee: Gauthier HADERER
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-04-02 09:41 UTC by Gauthier HADERER
Modified: 2024-08-08 15:09 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Re-export OECORE_NATIVE_SYSROOT in the SDK's main environment file (1.26 KB, patch)
2024-04-02 09:41 UTC, Gauthier HADERER
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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