commit: c881d9de00195dce9125d3a408d17cfc5a5d10ed
Author: Caleb Stein <caleb <AT> calebstein <DOT> net>
AuthorDate: Wed Oct 18 16:22:33 2023 +0000
Commit: orbea <orbea <AT> riseup <DOT> net>
CommitDate: Wed Oct 18 17:00:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=c881d9de
dev-lang/rust: fixed rust-1.73.0 failing to build
Signed-off-by: Caleb Stein <caleb <AT> calebstein.net>
Signed-off-by: orbea <orbea <AT> riseup.net>
dev-lang/rust/rust-1.73.0.ebuild | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/dev-lang/rust/rust-1.73.0.ebuild b/dev-lang/rust/rust-1.73.0.ebuild
index abb848a..44df771 100644
--- a/dev-lang/rust/rust-1.73.0.ebuild
+++ b/dev-lang/rust/rust-1.73.0.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,8 @@ 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.
for i in addr2line-0.20.0 bstr cranelift-jit crossbeam-channel
elasticlunr-rs handlebars icu_locid libffi \
terminal_size tracing-tree; do