]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
rust: Fix for duplicate libstd.so
authorDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Mon, 13 Jan 2025 12:08:07 +0000 (04:08 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jan 2025 11:57:45 +0000 (11:57 +0000)
commiteffd4ba4c23cbf53b01116b5cc81d6a29ca3b1a6
tree1f4cfb4ffe2ee3e5deb1f587effd419ee071f2ee
parent5136176198d4d150afa39b50dc4e879f5b206909
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.

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/rust_1.80.1.bb