commit:     7c1ace82e82ecebd13ac180bb0d1e6d82258e99b
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 25 09:28:55 2019 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Dec 25 10:57:58 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c1ace82

sys-libs/glibc: cross-*: pass EPREFIX to --with-headers

  This is a follow up of ea4cbdc9159c0ebbd29d4062bbb314393a8cc32f.

  Otherwise when building cross toolchain on Gentoo Prefix, configure cannot
  find the needed linux-headers.

Bug: https://bugs.gentoo.org/642604
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 sys-libs/glibc/glibc-2.30-r3.ebuild | 4 ++--
 sys-libs/glibc/glibc-9999.ebuild    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.30-r3.ebuild 
b/sys-libs/glibc/glibc-2.30-r3.ebuild
index 7bbdf0c882a..393684b8a8b 100644
--- a/sys-libs/glibc/glibc-2.30-r3.ebuild
+++ b/sys-libs/glibc/glibc-2.30-r3.ebuild
@@ -929,7 +929,7 @@ glibc_do_configure() {
                --host=${CTARGET_OPT:-${CTARGET}}
                $(use_enable profile)
                $(use_with gd)
-               --with-headers=$(alt_build_headers)
+               --with-headers=$(build_eprefix)$(alt_build_headers)
                --prefix="$(host_eprefix)/usr"
                --sysconfdir="$(host_eprefix)/etc"
                --localstatedir="$(host_eprefix)/var"
@@ -1084,7 +1084,7 @@ glibc_headers_configure() {
                --enable-bind-now
                --build=${CBUILD_OPT:-${CBUILD}}
                --host=${CTARGET_OPT:-${CTARGET}}
-               --with-headers=$(alt_build_headers)
+               --with-headers=$(build_eprefix)$(alt_build_headers)
                --prefix="$(host_eprefix)/usr"
                ${EXTRA_ECONF}
        )

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index a3d9d33a368..94ff23bb27e 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -929,7 +929,7 @@ glibc_do_configure() {
                --host=${CTARGET_OPT:-${CTARGET}}
                $(use_enable profile)
                $(use_with gd)
-               --with-headers=$(alt_build_headers)
+               --with-headers=$(build_eprefix)$(alt_build_headers)
                --prefix="$(host_eprefix)/usr"
                --sysconfdir="$(host_eprefix)/etc"
                --localstatedir="$(host_eprefix)/var"
@@ -1084,7 +1084,7 @@ glibc_headers_configure() {
                --enable-bind-now
                --build=${CBUILD_OPT:-${CBUILD}}
                --host=${CTARGET_OPT:-${CTARGET}}
-               --with-headers=$(alt_build_headers)
+               --with-headers=$(build_eprefix)$(alt_build_headers)
                --prefix="$(host_eprefix)/usr"
                ${EXTRA_ECONF}
        )

Reply via email to