commit:     64245e628af8de13c9782c36088a000bd645ada7
Author:     stefson <herrtimson <AT> yahoo <DOT> de>
AuthorDate: Fri Apr 27 05:01:43 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Apr 27 10:32:31 2018 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=64245e62

dev-util/cargo: fix CHOST detection for arm and 17.0 profiles

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

 dev-util/cargo/cargo-0.22.0-r1.ebuild | 4 ++--
 dev-util/cargo/cargo-0.23.0.ebuild    | 4 ++--
 dev-util/cargo/cargo-0.24.0.ebuild    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-util/cargo/cargo-0.22.0-r1.ebuild 
b/dev-util/cargo/cargo-0.22.0-r1.ebuild
index db6da09..d1b7509 100644
--- a/dev-util/cargo/cargo-0.22.0-r1.ebuild
+++ b/dev-util/cargo/cargo-0.22.0-r1.ebuild
@@ -124,7 +124,7 @@ ws2_32-sys-0.2.1
 inherit bash-completion-r1 cargo versionator
 
 case "${CHOST}" in
-       armv7a-hardfloat-*)
+       armv7a*)
                CARGOARCH=armv7 ;;
        arm*)
                CARGOARCH=arm ;;
@@ -135,7 +135,7 @@ case "${CHOST}" in
        armv7a-hardfloat-*)
                CARGOLIBC=${ELIBC/glibc/gnu}eabihf ;;
        arm*)
-               CARGOLIBC=${ELIBC/glibc/gnu}eabi ;;
+               CARGOLIBC=${CHOST##*-} ;;
        *)
                CARGOLIBC=${ELIBC/glibc/gnu} ;;
 esac

diff --git a/dev-util/cargo/cargo-0.23.0.ebuild 
b/dev-util/cargo/cargo-0.23.0.ebuild
index 73a3fe3..e223913 100644
--- a/dev-util/cargo/cargo-0.23.0.ebuild
+++ b/dev-util/cargo/cargo-0.23.0.ebuild
@@ -131,7 +131,7 @@ ws2_32-sys-0.2.1
 inherit bash-completion-r1 cargo versionator
 
 case "${CHOST}" in
-       armv7a-hardfloat-*)
+       armv7a*)
                CARGOARCH=armv7 ;;
        arm*)
                CARGOARCH=arm ;;
@@ -142,7 +142,7 @@ case "${CHOST}" in
        armv7a-hardfloat-*)
                CARGOLIBC=${ELIBC/glibc/gnu}eabihf ;;
        arm*)
-               CARGOLIBC=${ELIBC/glibc/gnu}eabi ;;
+               CARGOLIBC=${CHOST##*-} ;;
        *)
                CARGOLIBC=${ELIBC/glibc/gnu} ;;
 esac

diff --git a/dev-util/cargo/cargo-0.24.0.ebuild 
b/dev-util/cargo/cargo-0.24.0.ebuild
index 89f6a7f..14d6057 100644
--- a/dev-util/cargo/cargo-0.24.0.ebuild
+++ b/dev-util/cargo/cargo-0.24.0.ebuild
@@ -135,7 +135,7 @@ ws2_32-sys-0.2.1
 inherit bash-completion-r1 cargo versionator
 
 case "${CHOST}" in
-       armv7a-hardfloat-*)
+       armv7a*)
                CARGOARCH=armv7 ;;
        arm*)
                CARGOARCH=arm ;;
@@ -146,7 +146,7 @@ case "${CHOST}" in
        armv7a-hardfloat-*)
                CARGOLIBC=${ELIBC/glibc/gnu}eabihf ;;
        arm*)
-               CARGOLIBC=${ELIBC/glibc/gnu}eabi ;;
+               CARGOLIBC=${CHOST##*-} ;;
        *)
                CARGOLIBC=${ELIBC/glibc/gnu} ;;
 esac

Reply via email to