commit:     c5573f88f5f07123507726c1fb516e6a0b0b440f
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 10 08:46:03 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sun Mar 10 08:47:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5573f88

dev-lang/rust: fix boostrap on ppc64

Bug: https://bugs.gentoo.org/679806
Thanks-to: Sergei Trofimovich <slyfox <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 dev-lang/rust/rust-1.32.0.ebuild | 6 ++++++
 dev-lang/rust/rust-1.33.0.ebuild | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/dev-lang/rust/rust-1.32.0.ebuild b/dev-lang/rust/rust-1.32.0.ebuild
index 06578ddc8bf..74202f48fd8 100644
--- a/dev-lang/rust/rust-1.32.0.ebuild
+++ b/dev-lang/rust/rust-1.32.0.ebuild
@@ -107,6 +107,12 @@ src_prepare() {
 
        "${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig 
--destdir="${rust_stage0_root}" --prefix=/ || die
 
+       # ugly hack for https://bugs.gentoo.org/679806
+       if use ppc64; then
+               sed -i 's/getentropy/gEtEnTrOpY/g' 
"${rust_stage0_root}"/bin/cargo
+               export OPENSSL_ppccap=0
+       fi
+
        default
 }
 

diff --git a/dev-lang/rust/rust-1.33.0.ebuild b/dev-lang/rust/rust-1.33.0.ebuild
index c853798a69d..1d6d1dbccc8 100644
--- a/dev-lang/rust/rust-1.33.0.ebuild
+++ b/dev-lang/rust/rust-1.33.0.ebuild
@@ -103,6 +103,12 @@ src_prepare() {
 
        "${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig 
--destdir="${rust_stage0_root}" --prefix=/ || die
 
+       # ugly hack for https://bugs.gentoo.org/679806
+       if use ppc64; then
+               sed -i 's/getentropy/gEtEnTrOpY/g' 
"${rust_stage0_root}"/bin/cargo
+               export OPENSSL_ppccap=0
+       fi
+
        default
 }
 

Reply via email to