diff options
author | Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> | 2025-01-13 04:08:07 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-14 11:57:52 +0000 |
commit | 3805214ecfc683cce6cdc9cf00b0ebad2a69b875 (patch) | |
tree | b476cfeba80720e10b61e02975b0cb82a3c4a9f1 /meta/recipes-devtools | |
parent | 1652df1273a73ef70c061819f8e214f4ef09ac72 (diff) | |
download | poky-3805214ecfc683cce6cdc9cf00b0ebad2a69b875.tar.gz |
rust: Fix for duplicate libstd.so
During the Rust build process, multiple copies of libstd-*.so are generated, as Rust copies the
required files from the stage2 build artifacts to the target image directory. When these build
binaries are copied to the image, Yocto's do_package step encounters an error. To resolve this,
the redundant libstd-*.so files are removed during the do_install step.
-----------------------------------------------------------------------------------------------
ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for libstd-20c3de2d9292cd03.so:..
....
-----------------------------------------------------------------------------------------------
Multiple copies of libstd-*.so are generated during the Rust build process.
The redundant files are removed during the do_install step.
(From OE-Core rev: effd4ba4c23cbf53b01116b5cc81d6a29ca3b1a6)
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/rust/rust_1.80.1.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.80.1.bb b/meta/recipes-devtools/rust/rust_1.80.1.bb index eae1f28bb8..b583508456 100644 --- a/meta/recipes-devtools/rust/rust_1.80.1.bb +++ b/meta/recipes-devtools/rust/rust_1.80.1.bb | |||
@@ -271,6 +271,7 @@ rust_do_install:class-nativesdk() { | |||
271 | rm ${D}${libdir}/rustlib/uninstall.sh | 271 | rm ${D}${libdir}/rustlib/uninstall.sh |
272 | rm ${D}${libdir}/rustlib/install.log | 272 | rm ${D}${libdir}/rustlib/install.log |
273 | rm ${D}${libdir}/rustlib/manifest* | 273 | rm ${D}${libdir}/rustlib/manifest* |
274 | rm ${D}${libdir}/rustlib/${RUST_HOST_SYS}/lib/libstd*.so | ||
274 | } | 275 | } |
275 | 276 | ||
276 | EXTRA_TOOLS ?= "cargo-clippy clippy-driver rustfmt" | 277 | EXTRA_TOOLS ?= "cargo-clippy clippy-driver rustfmt" |
@@ -294,6 +295,7 @@ rust_do_install:class-target() { | |||
294 | rm ${D}${libdir}/rustlib/uninstall.sh | 295 | rm ${D}${libdir}/rustlib/uninstall.sh |
295 | rm ${D}${libdir}/rustlib/install.log | 296 | rm ${D}${libdir}/rustlib/install.log |
296 | rm ${D}${libdir}/rustlib/manifest* | 297 | rm ${D}${libdir}/rustlib/manifest* |
298 | rm ${D}${libdir}/rustlib/${RUST_HOST_SYS}/lib/libstd*.so | ||
297 | } | 299 | } |
298 | 300 | ||
299 | addtask do_update_snapshot after do_patch | 301 | addtask do_update_snapshot after do_patch |