commit: b7f871e2958b1624f3e67ab0f57dafcbb4f22710 Author: Hélder Rodrigues <v <AT> sqrtd <DOT> dev> AuthorDate: Sat Dec 23 15:34:17 2023 +0000 Commit: orbea <orbea <AT> riseup <DOT> net> CommitDate: Sat Dec 23 20:15:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=b7f871e2
dev-lang/rust: apply libressl-openssl-sys patch on 1.74.1 Signed-off-by: Hélder Rodrigues <v <AT> sqrtd.dev> Closes: https://github.com/gentoo/libressl/pull/546 Signed-off-by: orbea <orbea <AT> riseup.net> dev-lang/rust/rust-1.74.1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-lang/rust/rust-1.74.1.ebuild b/dev-lang/rust/rust-1.74.1.ebuild index 0851f21..0256c22 100644 --- a/dev-lang/rust/rust-1.74.1.ebuild +++ b/dev-lang/rust/rust-1.74.1.ebuild @@ -175,6 +175,14 @@ clear_vendor_checksums() { sed -i 's/\("files":{\)[^}]*/\1/' "vendor/${1}/.cargo-checksum.json" || die } +eapply_crate() { + pushd "${1:?}" > /dev/null || die + local patch="${2:?}" + eapply "${patch}" + "${EPREFIX}"/bin/sh "${FILESDIR}"/rehash-crate.sh "${patch}" || die + popd > /dev/null || die +} + toml_usex() { usex "${1}" true false } @@ -288,6 +296,7 @@ esetup_unwind_hack() { } src_prepare() { + eapply_crate vendor/openssl-sys "${FILESDIR}"/1.72.0-libressl-openssl-sys.patch # Clear vendor checksums for crates that we patched to bump libc. # NOTE: refresh this on each bump. #for i in addr2line-0.20.0 bstr cranelift-jit crossbeam-channel elasticlunr-rs handlebars icu_locid libffi \
