Re: [OE-core] [scarthgap][PATCH 1/1] wpa-supplicant: Add CVE id to CVE-2024-3596_00.patch

2025-01-21 Thread Robert Yang via lists.openembedded.org
On 1/22/25 00:41, Marko, Peter wrote: This is not correct. The patch CVE-2024-3596_00 does not fix any part of that CVE. As the commit message says, it's a style commit so that real CVE patches apply cleanly. If it bothers you that it has CVE in filename but no CVE, maybe rename it instead a

Re: [OE-core][PATCH V2] lib32-64k-pagesize.inc: add conf for building 32bit binary with 64K alignment

2025-01-21 Thread Khem Raj via lists.openembedded.org
On Tue, Jan 21, 2025 at 8:52 PM ChenQi wrote: > > On 1/22/25 12:18, Khem Raj wrote: > > On Tue, Jan 21, 2025 at 7:03 PM Chen Qi via lists.openembedded.org > > wrote: > >> ping > >> > >> Is there something I need to do for this patch? Or is this patch not > >> suitable for oe-core? > >> > > if we

Re: [OE-core][PATCH V2] lib32-64k-pagesize.inc: add conf for building 32bit binary with 64K alignment

2025-01-21 Thread Chen Qi via lists.openembedded.org
On 1/22/25 12:18, Khem Raj wrote: On Tue, Jan 21, 2025 at 7:03 PM Chen Qi via lists.openembedded.org wrote: ping Is there something I need to do for this patch? Or is this patch not suitable for oe-core? if we are enabling 64K pages then 32bit aarch32 apps should also be compiled using 64k p

[OE-core] [PATCH v2 9/9] selftest/multiconfig: test multiconfig multlib nativesdk gcc

2025-01-21 Thread hongxu via lists.openembedded.org
Add 2 cases to test multiconfig multlib nativesdk gcc 1. test_multiconfig_64bit_gcc_suport_32bit_multilib Build 64bit x86_64 buildtools-tarball with package nativesdk-multiconfig-multlib-toolchain-packager-x86. The recipe nativesdk-multiconfig-multlib-toolchain-packager trigger a x86 multiconfig

[OE-core] [PATCH] classes/spdx-common: Fix patch error for recipes that inherit dos2unix.

2025-01-21 Thread hongxu via lists.openembedded.org
While SPDX_INCLUDE_SOURCES = "1", do_create_spdx error happens for these recipes inherit dos2unix Refer [1] to fix the issue [1] https://git.openembedded.org/openembedded-core/commit/?id=2ceda7c90c0087f52693c54d5ccab143b27f4d21 Signed-off-by: Hongxu Jia --- meta/lib/oe/spdx_common.py | 2 ++

Re: [OE-core] [PATCH 7/9] gcc-configure-common.inc: add multlib support for i686/i586/x86_64 nativesdk gcc

2025-01-21 Thread Khem Raj via lists.openembedded.org
seems ok to me. On Tue, Jan 21, 2025 at 12:55 AM hongxu via lists.openembedded.org wrote: > > We have patch 0016-handle-sysroot-support-for-nativesdk-gcc.patch to handle > sysroot support for nativesdk-gcc, and add %r target_relocatable_prefix > into spec file for nativesdk-gcc relocation. It was

Re: [OE-core][PATCH V2] lib32-64k-pagesize.inc: add conf for building 32bit binary with 64K alignment

2025-01-21 Thread Khem Raj via lists.openembedded.org
On Tue, Jan 21, 2025 at 7:03 PM Chen Qi via lists.openembedded.org wrote: > > ping > > Is there something I need to do for this patch? Or is this patch not > suitable for oe-core? > if we are enabling 64K pages then 32bit aarch32 apps should also be compiled using 64k pages. Usually this could me

[OE-core][scarthgap 06/14] ofono: patch CVE-2023-4232

2025-01-21 Thread Steve Sakoman
From: Peter Marko Cherry-pick commit https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=2ff2da7ac374a790f8b2a0216bcb4e3126498225 Signed-off-by: Peter Marko Signed-off-by: Steve Sakoman --- .../ofono/ofono/CVE-2023-4232.patch | 31 +++ meta/recipes-conn

[OE-core][scarthgap 14/14] libgfortran: fix buildpath QA issue

2025-01-21 Thread Steve Sakoman
From: Chen Qi The '-fdebug-prefix-map' options are used to map source files locations, otherwise, DW_AT_comp_dir will contain buildpath. The '-gno-record-gcc-switches' option is used to fix the buildpath introduced by '-fintrinsic-modules-path' option, which is automatically added by fortran. He

[OE-core][scarthgap 13/14] pulseaudio: fix webrtc audio depdency

2025-01-21 Thread Steve Sakoman
From: Esben Haabendal Since pulseaudio v16.99.1, the library needed is webrtc-audio-processing-1. This fixes Run-time dependency webrtc-audio-processing-1 found: NO (tried pkgconfig and cmake) Looking for a fallback subproject for the dependency webrtc-audio-processing-1 ../pulseaudio-17.0/mes

[OE-core][scarthgap 00/14] Patch review

2025-01-21 Thread Steve Sakoman
Please review this set of changes for scarthgap and have comments back by end of day Thursday, January 23 Passed a-full on autobuilder: https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/856 The following changes since commit 92eea72a25e553c698bee9e3f551a5880bd4631c: systemd:

[OE-core][scarthgap 12/14] classes/qemu: use tune to select QEMU_EXTRAOPTIONS, not package architecture

2025-01-21 Thread Steve Sakoman
From: Ross Burton Using the package architecture to select the right qemu options to pass to qemu-user is incorrect, and fails for recipes that set PACKAGE_ARCH to MACHINE_ARCH (as the qemuppc workarounds suggest) because there are not typically any options set for the machine name. Solve this b

[OE-core][scarthgap 05/14] ofono: patch CVE-2024-7540, CVE-2024-7541, CVE-2024-7542

2025-01-21 Thread Steve Sakoman
From: Peter Marko Cherry-pick commit https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=29ff6334b492504ace101be748b256e6953d2c2f Signed-off-by: Peter Marko Signed-off-by: Steve Sakoman --- ...024-7540_CVE-2024-7541_CVE-2024-7542.patch | 52 +++ meta/recipes-conn

[OE-core][scarthgap 09/14] oeqa/ssh: allow to retrieve raw, unformatted ouput

2025-01-21 Thread Steve Sakoman
From: Alexis Lothoré The ssh target is currently well tailored to easily retrieve textual output from a command run on a remote target. It could also be used to retrieve raw data from a command run onto a remote target (for example, to feed this data directly to another program), but it currently

[OE-core][scarthgap 03/14] avahi: fix CVE-2024-52616

2025-01-21 Thread Steve Sakoman
From: Zhang Peng CVE-2024-52616: A flaw was found in the Avahi-daemon, where it initializes DNS transaction IDs randomly only once at startup, incrementing them sequentially after that. This predictable behavior facilitates DNS spoofing attacks, allowing attackers to guess transaction IDs. Refer

[OE-core][scarthgap 04/14] socat: patch CVE-2024-54661

2025-01-21 Thread Steve Sakoman
From: Peter Marko Picked upstream commit https://repo.or.cz/socat.git/commitdiff/4ee1f31cf80019c5907876576d6dfd49368d660f Since this was the only commit in 1.8.0.2 it also contained release changes which were dropped. Signed-off-by: Peter Marko Signed-off-by: Steve Sakoman --- .../socat/file

[OE-core][scarthgap 11/14] classes/nativesdk: also override TUNE_PKGARCH

2025-01-21 Thread Steve Sakoman
From: Ross Burton The nativesdk class overrides PACKAGE_ARCH and unsets TUNE_FEATURES, but as recipes might want to look at TUNE_PKGARCH too (for example, when setting QEMU_EXTRAOPTIONS) we should also override that variable. Otherwise, a nativesdk recipe will have the TUNE_PKGARCH of the target

[OE-core][scarthgap 10/14] Revert "bluez5: remove configuration files from install task"

2025-01-21 Thread Steve Sakoman
From: Catalin Popescu This reverts commit 49391fdcf71b32c5fd3c7b134c1d1c45cc1db388 which introduced a bluetooth regression on systems with read-only rootfs. When configuration files are missing, bluez tries to generate them which fails on a read-only rootfs. As a result bluetooth service fails t

[OE-core][scarthgap 08/14] scripts/install-buildtools: Update to 5.0.6

2025-01-21 Thread Steve Sakoman
From: Aleksandar Nikolic Update to the 5.0.6 release of the 5.0 series for buildtools. Signed-off-by: Aleksandar Nikolic Signed-off-by: Steve Sakoman --- scripts/install-buildtools | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-buildtools b/scripts/ins

[OE-core][scarthgap 07/14] ofono: patch CVE-2023-4235

2025-01-21 Thread Steve Sakoman
From: Peter Marko Cherry-pick commit https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=02aa0f9bad3d9e47a152fc045d0f51874d901d7e Signed-off-by: Peter Marko Signed-off-by: Steve Sakoman --- .../ofono/ofono/CVE-2023-4235.patch | 38 +++ meta/recipes-conn

[OE-core][scarthgap 02/14] ofono: Fix multiple CVEs

2025-01-21 Thread Steve Sakoman
From: Hitendra Prajapati Backport fixes for: * CVE-2024-7539 - Upstream-Status: Backport from https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=389e2344f86319265fb72ae590b470716e038fdc * CVE-2024-7543 - Upstream-Status: Backport from https://git.kernel.org/pub/scm/network/ofono

[OE-core][scarthgap 01/14] wget: fix CVE-2024-10524

2025-01-21 Thread Steve Sakoman
From: Divya Chellam Applications that use Wget to access a remote resource using shorthand URLs and pass arbitrary user credentials in the URL are vulnerable. In these cases attackers can enter crafted credentials which will cause Wget to access an arbitrary host. Reference: https://nvd.nist.gov

Re: [OE-core][PATCH V2] lib32-64k-pagesize.inc: add conf for building 32bit binary with 64K alignment

2025-01-21 Thread Chen Qi via lists.openembedded.org
ping Is there something I need to do for this patch? Or is this patch not suitable for oe-core? Regards, Qi On 1/16/25 12:34, Chen Qi via lists.openembedded.org wrote: Ping Ross & Richard, is there anything else I need to do for this patch? Regards, Qi -Original Message- From: Che

Re: [OE-core] [scarthgap] TUNE_ARCH error #scarthgap

2025-01-21 Thread Mark Hatle
On 1/21/25 6:06 AM, Ganesh Mahajan via lists.openembedded.org wrote: when tried to build image using command bitbake -k wac-core-image below error poped up. ERROR:  OE-core's config sanity checker detected a potential misconfiguration.     Either fix the cause of this error or at your own ris

Re: [OE-core] [master][PATCH] opencl-cts: add recipe

2025-01-21 Thread Randolph Sapp via lists.openembedded.org
On Fri Jan 17, 2025 at 3:58 PM CST, a-christidis via lists.openembedded.org wrote: > From: Antonios Christidis > > This recipe provides the opecl-cts suite. This is a pre-release version > v2024-08-08, which I have tested to work with opencl-headers version > v2024.05.08 > . The pre-release ver

Re: [PATCH] [OE-core] [PATCH v3] ncurses: Fix install conflict when enable multilib.

2025-01-21 Thread wangmy via lists.openembedded.org
This issue has been raised to the upstream, who stated that in addition to linux-gnueabi, there are many other types that need to be matched, so they have included the modifications in the to-do list. -- Best Regards --- Wang Mingyu FUJITSU NANJI

Re: [OE-core] [PATCH v5] u-boot: kernel-fitimage: Fix dependency loop if UBOOT_SIGN_ENABLE and UBOOT_ENV enabled

2025-01-21 Thread Marek Vasut via lists.openembedded.org
On 1/21/25 1:34 PM, Richard Purdie wrote: On Sun, 2025-01-19 at 19:08 +0100, Marek Vasut wrote: In case both UBOOT_SIGN_ENABLE and UBOOT_ENV are enabled and kernel-fitimage.bbclass is in use to generate signed kernel fitImage, there is a circular dependency between uboot-sign and kernel-fitimage

[OE-core] [PATCH v6] u-boot: kernel-fitimage: Fix dependency loop if UBOOT_SIGN_ENABLE and UBOOT_ENV enabled

2025-01-21 Thread Marek Vasut via lists.openembedded.org
In case both UBOOT_SIGN_ENABLE and UBOOT_ENV are enabled and kernel-fitimage.bbclass is in use to generate signed kernel fitImage, there is a circular dependency between uboot-sign and kernel-fitimage bbclasses . The loop looks like this: kernel-fitimage.bbclass: - do_populate_sysroot depends on d

[OE-core] [PATCH 2/2] gcc: make include poisoning fatal again in gcc/g++

2025-01-21 Thread Ross Burton via lists.openembedded.org
We have a patch to allow us to 'poison' system include directories, which are warnings by default but we make them fatal in cross builds. However, in the 13.1 upgrade[1] the patch to make the warnings fatal was dropped in the compiler invocation, so it only took effect for pure preprocessor calls.

[OE-core] [PATCH 1/2] oeqa/poisoning: fix gcc include poisoning test

2025-01-21 Thread Ross Burton via lists.openembedded.org
The test code in poison was flawed: as long as one CPP/CC/CXX has fatal poisoning enabled then the test passes. However, at the moment due to a bad rebase only CPP has fatal poisoning and CC/CXX do not. Rewrite the do_compile() task to more carefully check the output so the test harness itself ju

Re: [OE-core] [scarthgap][PATCH 1/1] wpa-supplicant: Add CVE id to CVE-2024-3596_00.patch

2025-01-21 Thread Peter Marko via lists.openembedded.org
This is not correct. The patch CVE-2024-3596_00 does not fix any part of that CVE. As the commit message says, it's a style commit so that real CVE patches apply cleanly. If it bothers you that it has CVE in filename but no CVE, maybe rename it instead adding incorrect tag? Peter > -Origin

Re: [OE-core] npm based packages omit dependencies since Yocto 5.1

2025-01-21 Thread Zoltan Boszormenyi via lists.openembedded.org
The recent changes in Yocto master with the unmodified recipe didn't help. But npmsw://...;destsuffix=npm in the recipe did. Thanks again! 2025. 01. 21. 12:27 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org írta: That's it! ;destsuffix=npm helped with Yocto 5.1. Thank you very much!

Re: [OE-core] [PATCH] rust-common: add LDFLAGS to 'build-rust-cc' wrapper

2025-01-21 Thread Mathieu Dubois-Briand via lists.openembedded.org
On Tue Jan 21, 2025 at 2:19 PM CET, Mathieu Dubois-Briand wrote: > On Mon Jan 20, 2025 at 5:45 PM CET, Enrico Scholz via lists.openembedded.org > wrote: > > From: Enrico Scholz > > > > Although rust differs between compiling (--> 'rust-cc' wrapper) and > > linking (--> 'rust-ccld' wrapper), some

Re: [OE-core] [PATCH v4] sanity: test for c toolchain

2025-01-21 Thread Christos Gavros via lists.openembedded.org
hi actually patch v1 used g++ and was compiling a "hello world" .cpp program but on of the comments was to change to gcc and c program. You can see a bit more about that here https://bugzilla.yoctoproject.org/show_bug.cgi?id=15712 What is your opinion ? Regarding the rest of the comments , I wi

Re: [PATCH] [OE-core] [PATCH v3] ncurses: Fix install conflict when enable multilib.

2025-01-21 Thread Ross Burton via lists.openembedded.org
On 16 Jan 2025, at 00:19, wangmy via lists.openembedded.org wrote: > > From: Wang Mingyu > > The setting of want_xterm_kbs is as following: > case $host_os in > (*linux-gnu|*cygwin|*mingw32|*msys) >want_xterm_kbs=DEL >;; > (*) >want_xterm_kbs=BS >;; > esac > > The host_os when

Re: [PATCH] [OE-core] [PATCH v3] ncurses: Fix install conflict when enable multilib.

2025-01-21 Thread Alexander Kanavin via lists.openembedded.org
On Tue, 21 Jan 2025 at 16:31, Ross Burton via lists.openembedded.org wrote: > > The host_os when enable multilib is as folloing: > > host_os of aarch64 : linux-gnu > > host_os of aarch32 : linux-gnueabi > > Seems like the proper fix would be to change the glob to *linux-gnu* (and > sent that upst

Re: [OE-core] [PATCH V2 2/2] oeqa/sdk/context: fix for gtk3 test failure during do_testsdk

2025-01-21 Thread Ross Burton via lists.openembedded.org
On 16 Jan 2025, at 13:48, Sadineni, Harish via lists.openembedded.org wrote: > > From: Harish Sadineni > > The do_testsdk for lib32-core-image-sato aborts with below error: > configure: error: Package requirements (gtk+-3.0) were not met: > No package 'gtk+-3.0' found > Consider adjusting the

Re: [OE-core] [PATCH] create-spdx: support line numbers

2025-01-21 Thread Joshua Watt via lists.openembedded.org
On Mon, Jan 20, 2025 at 6:10 AM Denis OSTERLAND-HEIM via lists.openembedded.org wrote: > > LIC_FILES_CHKSUM supports begin-/endline for licenses included in > for instance header files. This patch adds support for line numbers > to NO_GENERIC_LICENSE, too. > > Signed-off-by: Denis Osterland-Heim

Re: [OE-core] [PATCH v4] sanity: test for c toolchain

2025-01-21 Thread Ross Burton via lists.openembedded.org
Hi, Some more comments: The shortlog says “C toolchain” but the test is for the C++ toolchain not C, correct? > +def check_c_toolchain(d): > +try: > +with NamedTemporaryFile(delete=False, suffix=".c") as c_file: Why delete=False and then manual cleanup later? You can move the com

[OE-core] [scarthgap] TUNE_ARCH error #scarthgap

2025-01-21 Thread Ganesh Mahajan via lists.openembedded.org
when tried to build image using command bitbake -k wac-core-image below error poped up. ERROR:  OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential p

[OE-core] [scarthgap] TUNE_ARCH error

2025-01-21 Thread Ganesh Mahajan via lists.openembedded.org
When tried to generate image got below error. Command used to generate image:  bitbake -k wac-core-image In dunfell we had no such configuration for TUNE_ARCH in /conf/machine but in scarthgap below error was thrown. Is it good practice to disable the checker? E *RROR:  OE-core's config sanity c

Re: [OE-core] [PATCH] rust-common: add LDFLAGS to 'build-rust-cc' wrapper

2025-01-21 Thread Mathieu Dubois-Briand via lists.openembedded.org
On Mon Jan 20, 2025 at 5:45 PM CET, Enrico Scholz via lists.openembedded.org wrote: > From: Enrico Scholz > > Although rust differs between compiling (--> 'rust-cc' wrapper) and > linking (--> 'rust-ccld' wrapper), some core crates are using only the > 'rust-cc' wrapper to check for available com

Re: [OE-core] [PATCH v5] u-boot: kernel-fitimage: Fix dependency loop if UBOOT_SIGN_ENABLE and UBOOT_ENV enabled

2025-01-21 Thread Richard Purdie via lists.openembedded.org
On Sun, 2025-01-19 at 19:08 +0100, Marek Vasut wrote: > In case both UBOOT_SIGN_ENABLE and UBOOT_ENV are enabled and > kernel-fitimage.bbclass is in use to generate signed kernel > fitImage, there is a circular dependency between uboot-sign > and kernel-fitimage bbclasses . The loop looks like this

Re: [OE-core] [PATCH] cargo: remove LD_LIBRARY_PATH wrapper

2025-01-21 Thread Jan Strater-Büddefeld via lists . openembedded . org
Am 21.01.25 um 09:55 schrieb Richard Purdie: On Tue, 2025-01-21 at 09:12 +0100, Jan Strater-Büddefeld via lists.openembedded.org wrote: Fixes [YOCTO #15579] This commit removes the LD_LIBRARY_PATH wrapper around `cargo`. Setting the LD_LIBRARY_PATH causes many problems. Some build scripts will

Re: [OE-core] npm based packages omit dependencies since Yocto 5.1

2025-01-21 Thread Zoltan Boszormenyi via lists.openembedded.org
That's it! ;destsuffix=npm helped with Yocto 5.1. Thank you very much! I will re-test with Yocto master and report back. 2025. 01. 21. 11:53 keltezéssel, Martin Jansa írta: I believe it's the side effect of UNPACKDIR changes, I had to add ;destsuffix=npm in all npmsw:// entries (or ;destsuffix=

Re: [OE-core] [PATCH] cargo: Drop cargo wrapper to ensure successfull cargo builds in SDK

2025-01-21 Thread Richard Purdie via lists.openembedded.org
On Tue, 2025-01-21 at 02:54 -0800, Yash Shinde via lists.openembedded.org wrote: > From: Yash Shinde > > - The SDK uses a cargo wrapper that sets LD_LIBRARY_PATH to point to SDK > target library directory. >   This wrapper was added to resolve library path errors by including libdir > and base_

[OE-core] [PATCH] cargo: Drop cargo wrapper to ensure successfull cargo builds in SDK

2025-01-21 Thread Yash Shinde via lists.openembedded.org
From: Yash Shinde - The SDK uses a cargo wrapper that sets LD_LIBRARY_PATH to point to SDK target library directory. This wrapper was added to resolve library path errors by including libdir and base_dir paths in LD_LIBRARY_PATH for tumbleweed-ty-3 distro. (https://git.openembedded.org/o

Re: [OE-core] npm based packages omit dependencies since Yocto 5.1

2025-01-21 Thread Martin Jansa via lists.openembedded.org
I believe it's the side effect of UNPACKDIR changes, I had to add ;destsuffix=npm in all npmsw:// entries (or ;destsuffix=git where S is set to WORKDIR/git) for dependencies in node_modules to be unpacked where they used to be before. On Tue, Jan 21, 2025 at 11:31 AM Zoltan Boszormenyi via lists.o

Re: [OE-core] [PATCH] files: overlayfs-create-dirs: Improve mount unit dependency

2025-01-21 Thread Vyacheslav Yurkov via lists.openembedded.org
Looks good. Thanks for the patch. Slava On 18.01.2025 19:49, Esben Haabendal via lists.openembedded.org wrote: The RequiresMountsFor configuration option of systemd.unit (added in systemd version 201) not only adds the Requires and After options for the required mount unit, but it adds them for

Re: [OE-core] npm based packages omit dependencies since Yocto 5.1

2025-01-21 Thread Alexander Kanavin via lists.openembedded.org
There have been recent npm fetcher fixes in master, can you try that please? Alex On Tue, 21 Jan 2025 at 11:31, Zoltan Boszormenyi via lists.openembedded.org wrote: > > Hi, > > I have a minimalistic recipe for pm2 (https://www.npmjs.com/package/pm2): > == > node-p

[OE-core] npm based packages omit dependencies since Yocto 5.1

2025-01-21 Thread Zoltan Boszormenyi via lists.openembedded.org
Hi, I have a minimalistic recipe for pm2 (https://www.npmjs.com/package/pm2): == node-pm2_5.3.1.bb == SUMMARY = "Production process manager for Node.JS applications with a built-in load balancer." HOMEPAGE = "http://pm2.keymetrics.i

[OE-core] [PATCH v2 8/9] nativesdk-multiconfig-multlib-toolchain-packager: add recipe

2025-01-21 Thread hongxu via lists.openembedded.org
Support two mutliconfig build x86 and x86_64: 1. Trigger a x86 multiconfig build to generate 32bit x86 buildtools-tarball. During package runtime installation, script postinst extracted 32bit x86 buildtools-tarball and installed it to 64bit x86_64 nativesdk sysroot. 2. Trigger a x86_64 multiconfi

[OE-core] Patchtest results for [PATCH 8/9] Add recipe nativesdk-multiconfig-multlib-toolchain-packager

2025-01-21 Thread Patchtest via lists.openembedded.org
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information: --- Testing patch /home/patchtest/share/mboxes/8-9-Add-recipe-nativesdk-multiconfig-multlib-toolchain-packager.patch FAIL: test shortlog format: Commit shortlog (

[OE-core] [PATCH 6/9] meta/conf/bitbake.conf: support multiarch for nativesdk

2025-01-21 Thread hongxu via lists.openembedded.org
Otherwise 32bit i686 nativesdk-gcc compiled 64bit executable file failed $ cat << ENDOF > main.c int main() { return 0; } ENDOF $ i686-pokysdk-linux-gcc -m64 main.c -o main cc1: sorry, unimplemented: 64-bit mode not compiled in [ YOCTO #15722 ] Signed-off-by: Hongxu Jia --- meta/conf/bitba

[OE-core] [PATCH 5/9] libgcc-common: apply multilib symlinks for nativesdk libgcc

2025-01-21 Thread hongxu via lists.openembedded.org
Due to the supported SDKMACHINE includes: aarch64, i586, i686, loongarch64, ppc64, ppc64le, riscv64, x86_64 Only i586 and x86_64, i686 and x86_64 have multilib relationship, so create multilib symlinks for i686,i586,x86_64 nativesdk. It will have no regression when nativesdk-gcc disable multili

[OE-core] [PATCH 8/9] Add recipe nativesdk-multiconfig-multlib-toolchain-packager

2025-01-21 Thread hongxu via lists.openembedded.org
Support two mutliconfig build x86 and x86_64: 1. Trigger a x86 multiconfig build to generate 32bit x86 buildtools-tarball. During package runtime installation, script postinst extracted 32bit x86 buildtools-tarball and installed it to 64bit x86_64 nativesdk sysroot. 2. Trigger a x86_64 multiconfi

[OE-core] [PATCH 4/9] script/relocate_sdk.py: check dynamic loader arch before relocating interpreter

2025-01-21 Thread hongxu via lists.openembedded.org
While multiple dynamic loader existed, in order to make executable file is interpreted by the expected dynamic loader, relocating interpreter only if the new dynamic loader and executable file have the same arch [ YOCTO #15722 ] Signed-off-by: Hongxu Jia --- scripts/relocate_sdk.py | 32 +++

[OE-core] [PATCH 9/9] selftest/multiconfig: test multiconfig multlib nativesdk gcc

2025-01-21 Thread hongxu via lists.openembedded.org
Add 2 cases to test multiconfig multlib nativesdk gcc 1. test_multiconfig_64bit_gcc_suport_32bit_multilib Build 64bit x86_64 buildtools-tarball with package nativesdk-multiconfig-multlib-toolchain-packager-x86. The recipe nativesdk-multiconfig-multlib-toolchain-packager trigger a x86 multiconfig

[OE-core] [PATCH 1/9] perl: fix do_install failed for nativesdk-perl

2025-01-21 Thread hongxu via lists.openembedded.org
While set 'baselib = "lib64"' for nativesdk, perl do_install failed: | rm: cannot remove 'tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-perl/ 5.40.0/image//usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/ usr/lib64/perl5/5.40.0/*/CORE/libperl.so': No such file or directory R

[OE-core] [PATCH 7/9] gcc-configure-common.inc: add multlib support for i686/i586/x86_64 nativesdk gcc

2025-01-21 Thread hongxu via lists.openembedded.org
We have patch 0016-handle-sysroot-support-for-nativesdk-gcc.patch to handle sysroot support for nativesdk-gcc, and add %r target_relocatable_prefix into spec file for nativesdk-gcc relocation. It was used for injected paths SYSTEMLIBS_DIR Due to the supported SDKMACHINE includes: aarch64, i586,

[OE-core] [PATCH 2/9] multilib_header.bbclass: need multilib headers for nativesdk builds

2025-01-21 Thread hongxu via lists.openembedded.org
The nativesdk multilib support required it to fix multilib headers conflict [ YOCTO #15722 ] Signed-off-by: Hongxu Jia --- meta/classes-recipe/multilib_header.bbclass | 5 - 1 file changed, 5 deletions(-) diff --git a/meta/classes-recipe/multilib_header.bbclass b/meta/classes-recipe/multi

[OE-core] [PATCH 3/9] toolchain-shar-relocate.sh: support multiple dynamic loaders for multilib

2025-01-21 Thread hongxu via lists.openembedded.org
While nativesdk support multilib, there are two dynamic loaders, $OECORE_NATIVE_SYSROOT/lib64/ld-linux-x86-64.so.2 $OECORE_NATIVE_SYSROOT/lib/ld-linux.so.2 Search them with wildcard and call relocate_sdk.py separately [ YOCTO #15722 ] Signed-off-by: Hongxu Jia --- meta/files/toolchain

Re: [OE-core] [PATCH] cargo: remove LD_LIBRARY_PATH wrapper

2025-01-21 Thread Richard Purdie via lists.openembedded.org
On Tue, 2025-01-21 at 09:12 +0100, Jan Strater-Büddefeld via lists.openembedded.org wrote: > Fixes [YOCTO #15579] > > This commit removes the LD_LIBRARY_PATH wrapper around `cargo`. > Setting the LD_LIBRARY_PATH causes many problems. > Some build scripts will not run because the build scripts exe

[OE-core] [PATCH] cargo: remove LD_LIBRARY_PATH wrapper

2025-01-21 Thread Jan Strater-Büddefeld via lists . openembedded . org
Fixes [YOCTO #15579] This commit removes the LD_LIBRARY_PATH wrapper around `cargo`. Setting the LD_LIBRARY_PATH causes many problems. Some build scripts will not run because the build scripts execute binaries from the host system that are not compatible with the target libraries. Even a simple `c