librav1e: make nasm dependency x86-specific
PATCH 1/2 librav1e: make nasm dependency x86-specific
nasm is an x86 assembler, so only depend on it (and work around the build paths errors) on x86-64 (the assembler fastpaths are explicitly 64-bit only).
--- .../recipes-multimedia/rav1e/librav1e_p20250902.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +3 -2
@@ -7,9 +7,10 @@ inherit cargo_c pkgconfig cargo-update-recipe-crates require ${PN}-crates.inc -DEPENDS += "nasm-native" +DEPENDS:append:x86_64 = " nasm-native" SRC_URI += "git://github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=${PV}" SRCREV = "a2f01b3e233f531c28a20b4c29fb5c9e5d29fa6d" -INHIBIT_PACKAGE_DEBUG_SPLIT = "1" +# TODO we need to pass -fdebug-prefix-map to the nasm calls +INHIBIT_PACKAGE_DEBUG_SPLIT:x86-64 = "1"
Signature · 1 line
2.43.0
PATCH 2/2 uutils-coreutils: delete .cargo/config.toml
This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.
--- .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4 -0
@@ -65,6 +65,10 @@ python __anonymous() { BBCLASSEXTEND = "native nativesdk" +do_configure:prepend() { + rm -f ${S}/.cargo/config.toml +} + do_compile:prepend() { export LIBSTDBUF_DIR="${libdir}/coreutils" }
Signature · 1 line
2.43.0
Re: [oe] [PATCH 2/2] uutils-coreutils: delete .cargo/config.toml
Hi Ross,
what is the use-case of the patch? config.toml file is ignored in out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ), so AFAIU removing it shouldn't make any difference for a bitbake build. Is it for devtool builds?
Étienne
Quoted 43 lines · Ross Burton via lists.openembedded.org
This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.
Signed-off-by Ross Burton <[email protected]>--- .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.9.0.bb
indexd294736395..2c7d3a3200100644meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4
-1@@ -65,6 +65,10 @@ python __anonymous() { BBCLASSEXTEND = "native nativesdk" +do_configure:prepend() { + rm -f ${S}/.cargo/config.toml +} + do_compile:prepend() { export LIBSTDBUF_DIR="${libdir}/coreutils" } --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#128027):
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_message_128027&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=SOdQBYUxH7BLXzTcxj9ZvaK6NGp2-7IVaqDjBLLiqzTSJVfVV9rx4ihsNf7nh8E0&s=O9-vKBRH9FlzsZfYlxmATl9wU4N_eiIW6nyWGWtYbVY&e=
Mute This Topic:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_mt_120136596_7048771&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=SOdQBYUxH7BLXzTcxj9ZvaK6NGp2-7IVaqDjBLLiqzTSJVfVV9rx4ihsNf7nh8E0&s=2yFkpP2kDn3joVADoPeFPZ0Zi9frtMNUKCeXShwvgr8&e=
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=SOdQBYUxH7BLXzTcxj9ZvaK6NGp2-7IVaqDjBLLiqzTSJVfVV9rx4ihsNf7nh8E0&s=IkfzKX-TOIl7nmyig50STkBSa2ay6flcERE0_reNnh0&e=
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] uutils-coreutils: delete .cargo/config.toml
Hi,
The file is not ignored. It gets used and overrides linker set by cargo.bbclass/rust. uutils-coreutils builds are currently broken on arm64 build hosts and this patch fixed them.
Cheers,
-Mikko
Quoted 56 lines · Etienne Cordonnier via lists.openembedded.org
Hi Ross,
what is the use-case of the patch? config.toml file is ignored in out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ), so AFAIU removing it shouldn't make any difference for a bitbake build. Is it for devtool builds?
Étienne
Quoted 27 lines · Ross Burton via lists.openembedded.org
This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.
Signed-off-by Ross Burton <[email protected]>--- .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.9.0.bb
indexd294736395..2c7d3a3200100644meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4
-1@@ -65,6 +65,10 @@ python __anonymous() { BBCLASSEXTEND = "native nativesdk" +do_configure:prepend() { + rm -f ${S}/.cargo/config.toml +} + do_compile:prepend() { export LIBSTDBUF_DIR="${libdir}/coreutils" } --Quoted 6 lines
2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#128031): https://lists.openembedded.org/g/openembedded-devel/message/128031
Mute This Topic: https://lists.openembedded.org/mt/120136596/7159507
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] uutils-coreutils: delete .cargo/config.toml
OK, thanks. I'll need to investigate whether something changed. In the past I had to send fixes specifically because this file was ignored in yocto builds ( see https://github.com/uutils/coreutils/pull/8360 ).
Quoted 78 lines · Mikko Rapeli
Hi,
The file is not ignored. It gets used and overrides linker set by cargo.bbclass/rust.
uutils-coreutils builds are currently broken on arm64 build hosts and this patch fixed them.Cheers,
-Mikko
Quoted 4 lines · Etienne Cordonnier via lists.openembedded.org
Hi Ross,
what is the use-case of the patch? config.toml file is ignored in out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ),
so
Quoted 1 line
AFAIU removing it shouldn't make any difference for a bitbake build. Is
it
Quoted 15 lines
for devtool builds?
Étienne
Quoted 7 lines · Ross Burton via lists.openembedded.org
This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.
Signed-off-by Ross Burton <[email protected]>--- .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb | 4++++
Quoted 23 lines
Quoted 23 lines
1 file changed, 4 insertions(+)(quoted diff) +0
-0uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.9.0.bb
indexd294736395..2c7d3a3200100644meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4
-1@@ -65,6 +65,10 @@ python __anonymous() { BBCLASSEXTEND = "native nativesdk" +do_configure:prepend() { + rm -f ${S}/.cargo/config.toml +} + do_compile:prepend() { export LIBSTDBUF_DIR="${libdir}/coreutils" } --2.43.0
Quoted 8 lines
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#128031):Quoted 1 line
Mute This Topic:
Quoted 2 lines
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_unsub&d=DwIDaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=uLBAxAVxvPA0OdjZ6ENLmT8jfeji5R00bAuSC7pG1WThhqcr5s4ImgHl2V2Ksvon&s=N5X_J-Kw5XXiqJL6mqgIKED8BMXuK0S7uIHndfvs03k&e=
[[email protected]]Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
Does adding fdebug-prefix-map to ASFLAGS help on x86
Quoted 46 lines · Ross Burton via lists.openembedded.org
nasm is an x86 assembler, so only depend on it (and work around the build paths errors) on x86-64 (the assembler fastpaths are explicitly 64-bit only).
Signed-off-by Ross Burton <[email protected]>--- .../recipes-multimedia/rav1e/librav1e_p20250902.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)(quoted diff) +0
-0librav1e_p20250902.bb b/meta-multimedia/recipes-multimedia/rav1e/ librav1e_p20250902.bb
index836cd4448f..80ac5d9268100644meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +1
-1@@ -7,9 +7,10 @@ inherit cargo_c pkgconfig cargo-update-recipe-crates require ${PN}-crates.inc -DEPENDS += "nasm-native" +DEPENDS:append:x86_64 = " nasm-native" SRC_URI += "git:// github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=${PV}<http://github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=$%7BPV%7D>
"
SRCREV = "a2f01b3e233f531c28a20b4c29fb5c9e5d29fa6d"meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +2
-2-INHIBIT_PACKAGE_DEBUG_SPLIT = "1" +# TODO we need to pass -fdebug-prefix-map to the nasm calls +INHIBIT_PACKAGE_DEBUG_SPLIT:x86-64 = "1" --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#128026):
https://lists.openembedded.org/g/openembedded-devel/message/128026
Mute This Topic: https://lists.openembedded.org/mt/120136595/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines · Khem Raj
Does adding fdebug-prefix-map to ASFLAGS help on x86
It would, if the nasm invocation wasn’t buried into rust crates with no way to add flags from the recipe.
Ross