Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust-bin/
Date: Mon, 11 Mar 2019 05:00:34
Message-Id: 1552279876.6e428d13d6870832812748de67e48f170cbce6a5.gyakovlev@gentoo
1 commit: 6e428d13d6870832812748de67e48f170cbce6a5
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 11 04:46:09 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 11 04:51:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e428d13
7
8 dev-lang/rust-bin: fix cargo on ppc64
9
10 Bug: https://bugs.gentoo.org/679806
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 dev-lang/rust-bin/rust-bin-1.32.0.ebuild | 13 ++++++++++++-
15 dev-lang/rust-bin/rust-bin-1.33.0.ebuild | 13 ++++++++++++-
16 2 files changed, 24 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-lang/rust-bin/rust-bin-1.32.0.ebuild b/dev-lang/rust-bin/rust-bin-1.32.0.ebuild
19 index a2af32c2885..170a05bf814 100644
20 --- a/dev-lang/rust-bin/rust-bin-1.32.0.ebuild
21 +++ b/dev-lang/rust-bin/rust-bin-1.32.0.ebuild
22 @@ -76,7 +76,18 @@ src_install() {
23 dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
24
25 local cargo=cargo-bin-${PV}
26 - mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
27 + # ugly hack for https://bugs.gentoo.org/679806
28 + if use ppc64; then
29 + mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}".bin || die
30 + sed -i 's/getentropy/gEtEnTrOpY/g' "${D}/opt/${P}/bin/${cargo}".bin || die
31 + cat <<- 'EOF' > "${D}/opt/${P}/bin/${cargo}"
32 + #!/bin/sh
33 + OPENSSL_ppccap=0 $(realpath $0).bin "${@}"
34 + EOF
35 + fperms +x "/opt/${P}/bin/${cargo}"
36 + else
37 + mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
38 + fi
39 dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
40 if use clippy; then
41 local clippy_driver=clippy-driver-bin-${PV}
42
43 diff --git a/dev-lang/rust-bin/rust-bin-1.33.0.ebuild b/dev-lang/rust-bin/rust-bin-1.33.0.ebuild
44 index a2af32c2885..170a05bf814 100644
45 --- a/dev-lang/rust-bin/rust-bin-1.33.0.ebuild
46 +++ b/dev-lang/rust-bin/rust-bin-1.33.0.ebuild
47 @@ -76,7 +76,18 @@ src_install() {
48 dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
49
50 local cargo=cargo-bin-${PV}
51 - mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
52 + # ugly hack for https://bugs.gentoo.org/679806
53 + if use ppc64; then
54 + mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}".bin || die
55 + sed -i 's/getentropy/gEtEnTrOpY/g' "${D}/opt/${P}/bin/${cargo}".bin || die
56 + cat <<- 'EOF' > "${D}/opt/${P}/bin/${cargo}"
57 + #!/bin/sh
58 + OPENSSL_ppccap=0 $(realpath $0).bin "${@}"
59 + EOF
60 + fperms +x "/opt/${P}/bin/${cargo}"
61 + else
62 + mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
63 + fi
64 dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
65 if use clippy; then
66 local clippy_driver=clippy-driver-bin-${PV}