commit: 250707e426f3bd775d85671743df3053e6868c74
Author: Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 14 22:33:04 2017 +0000
Commit: Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Sat Oct 14 22:33:04 2017 +0000
URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=250707e4
Revert "ROOT method for glibc."
This reverts commit d770cdb3feb397cedfdc36ac4b9f07f984152c86.
crossdev | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/crossdev b/crossdev
index 7fdb3e3..3f60517 100755
--- a/crossdev
+++ b/crossdev
@@ -1153,9 +1153,8 @@ emerge-wrapper --target ${CTARGET} --init || exit 1
#################
emerged_with_use() {
- local pkg=$1 use=$2 alt
- case $pkg in *lib*|musl) alt="/usr/${CTARGET}" ;; esac
- grep -qs ${use}
"${EPREFIX}"${alt}/var/db/pkg/cross-${CTARGET}/${pkg}-*/USE
+ local pkg=$1 use=$2
+ grep -qs ${use} "${EPREFIX}"/var/db/pkg/cross-${CTARGET}/${pkg}-*/USE
}
set_eopts_on_pkg_status() {
emerged_with_use "$@" \
@@ -1249,9 +1248,6 @@ if ! ex_fast ; then
# care about at this point -- we aren't
compiling yet
USE="${LUSE} ${USE}" \
CROSSCOMPILE_OPTS="headers-only" \
- ROOT="${EPREFIX}"/usr/${CTARGET} \
- ALT_BUILD_HEADERS="${ROOT}"/usr/include \
- EPREFIX="/" \
EOPTS="${EOPTS} --nodeps" \
doemerge ${LPKG} ${LPKG}-headers
fi
@@ -1279,8 +1275,6 @@ if ! ex_fast ; then
set_eopts_on_pkg_status ${LPKG} crosscompile_opts_headers-only
USE="${LUSE} ${USE}" \
- ROOT=${EPREFIX}/usr/${CTARGET} \
- EPREFIX="/" \
CROSSCOMPILE_OPTS="" \
doemerge ${LPKG}
fi