commit:     e9a367c1fa24e219d5508a0969b7c0f4a3176479
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  3 18:58:20 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan  3 18:58:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9a367c1

sys-libs/musl: prefix sysroot, bug #755071

Closes: https://bugs.gentoo.org/755071
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-libs/musl/musl-1.2.1-r1.ebuild | 4 ++--
 sys-libs/musl/musl-9999.ebuild     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-libs/musl/musl-1.2.1-r1.ebuild 
b/sys-libs/musl/musl-1.2.1-r1.ebuild
index b380f8294d3..d433abdd339 100644
--- a/sys-libs/musl/musl-1.2.1-r1.ebuild
+++ b/sys-libs/musl/musl-1.2.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -69,7 +69,7 @@ src_configure() {
        just_headers && export CC=true
 
        local sysroot
-       is_crosscompile && sysroot=/usr/${CTARGET}
+       is_crosscompile && sysroot="${EPREFIX}"/usr/${CTARGET}
        ./configure \
                --target=${CTARGET} \
                --prefix=${sysroot}/usr \

diff --git a/sys-libs/musl/musl-9999.ebuild b/sys-libs/musl/musl-9999.ebuild
index 170c94aedcf..a4f0d0fe5f8 100644
--- a/sys-libs/musl/musl-9999.ebuild
+++ b/sys-libs/musl/musl-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -65,7 +65,7 @@ src_configure() {
        just_headers && export CC=true
 
        local sysroot
-       is_crosscompile && sysroot=/usr/${CTARGET}
+       is_crosscompile && sysroot="${EPREFIX}"/usr/${CTARGET}
        ./configure \
                --target=${CTARGET} \
                --prefix=${sysroot}/usr \

Reply via email to