From: Etienne Cordonnier <[email protected]> There is a bug in uutils-coreutils causing stdbuf to include the HOST version of libstdbuf.so, even when cross-compiled. As a side-effect, the uutils-coreutils binary was containing the buildpath, because RPATH was set on libstdbuf.so. Thus the buildpath error can be re-enabled.
This is tracked upstream by https://github.com/uutils/coreutils/issues/6591 Signed-off-by: Etienne Cordonnier <[email protected]> Co-authored-by: Gyorgy Sarvari <[email protected]> Signed-off-by: Khem Raj <[email protected]> (cherry picked from commit 1d43511321f2bd08a4b3f0aa1422cf406ae0b3f6) Signed-off-by: Esa Jaaskela <[email protected]> --- .../files/0002-do-not-compile-stdbuf.patch | 39 +++++++++++++++++++ .../uutils-coreutils_0.0.28.bb | 3 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-core/uutils-coreutils/files/0002-do-not-compile-stdbuf.patch diff --git a/meta-oe/recipes-core/uutils-coreutils/files/0002-do-not-compile-stdbuf.patch b/meta-oe/recipes-core/uutils-coreutils/files/0002-do-not-compile-stdbuf.patch new file mode 100644 index 0000000000..e4f5627f12 --- /dev/null +++ b/meta-oe/recipes-core/uutils-coreutils/files/0002-do-not-compile-stdbuf.patch @@ -0,0 +1,39 @@ +From 5c08d92aae49f83e3b52ae58e566ef48c749f3c7 Mon Sep 17 00:00:00 2001 +From: Etienne Cordonnier <[email protected]> +Date: Fri, 7 Mar 2025 16:39:33 +0100 +Subject: [PATCH] do not compile stdbuf + +Due to including the host version of libstdbuf.so, stdbuf does not work when cross-compiled. See https://github.com/uutils/coreutils/issues/6591#issuecomment-2706575853 for details + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Etienne Cordonnier <[email protected]> +--- + Cargo.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Cargo.toml b/Cargo.toml +index ea87ccea79..e218719363 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -154,7 +154,7 @@ feat_os_macos = [ + feat_os_unix = [ + "feat_Tier1", + # +- "feat_require_crate_cpp", ++ # don't compile feature_require_crate_cpp per default (which contains only stdbuf). "feat_require_crate_cpp", + "feat_require_unix", + "feat_require_unix_utmpx", + "feat_require_unix_hostid", +@@ -189,7 +189,7 @@ feat_os_unix_android = [ + # ** NOTE: these `feat_require_...` sets should be minimized as much as possible to encourage cross-platform availability of utilities + # + # "feat_require_crate_cpp" == set of utilities requiring the `cpp` crate (which fail to compile on several platforms; as of 2020-04-23) +-feat_require_crate_cpp = ["stdbuf"] ++feat_require_crate_cpp = [] + # "feat_require_unix" == set of utilities requiring support which is only available on unix platforms (as of 2020-04-23) + feat_require_unix = [ + "chgrp", +-- +2.43.0 + diff --git a/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb b/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb index 76cecac5a6..beaef37700 100644 --- a/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb +++ b/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb @@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e74349878141b240070458d414ab3b64" inherit cargo cargo-update-recipe-crates SRC_URI += "git://github.com/uutils/coreutils.git;protocol=https;branch=main \ - file://0001-Cargo.lock-revert-to-selinux-sys-0.6.9-and-fts-sys-0.patch" + file://0001-Cargo.lock-revert-to-selinux-sys-0.6.9-and-fts-sys-0.patch \ + file://0002-do-not-compile-stdbuf.patch" # musl not supported because the libc crate does not support functions like "endutxent" at the moment, # so src/uucore/src/lib/features.rs disables utmpx when targetting musl. -- 2.47.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#128138): https://lists.openembedded.org/g/openembedded-devel/message/128138 Mute This Topic: https://lists.openembedded.org/mt/120225812/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
