1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 00:39:46 +00:00

rust,libstd-rs: Fix build with latest musl

newer musl do not provide lfs64 functions anymore since off_t is always
64bit on musl using normal functions would suffice

(From OE-Core rev: f01b2ab83068e4d7f263c31dca2a3fa9ef77a98e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2022-12-28 23:12:30 -08:00
committed by Richard Purdie
parent 96df183b60
commit 755540ec8f
2 changed files with 173 additions and 0 deletions
@@ -2,8 +2,13 @@ RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust"
SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
SRC_URI:append:class-target:pn-libstd-rs = "\
file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=../.. \
"
SRC_URI:append:class-target:pn-rust = " \
file://getrandom-open64.patch \
file://0001-Do-not-use-LFS64-on-linux-with-musl.patch \
file://hardcodepaths.patch \
file://crossbeam_atomic.patch"
SRC_URI:append:class-nativesdk:pn-nativesdk-rust = " file://hardcodepaths.patch"