From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/crossdev:master commit in: wrappers/, wrappers/etc/portage/
Date: Mon, 23 Dec 2013 03:11:04 +0000 (UTC) [thread overview]
Message-ID: <1387768123.a4ab14acf5522e3ced4d71d535657d6f241c23c0.vapier@gentoo> (raw)
commit: a4ab14acf5522e3ced4d71d535657d6f241c23c0
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 23 03:08:43 2013 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Dec 23 03:08:43 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commit;h=a4ab14ac
wrappers: drop custom bashrc/e_machine logic
Cross-compiling logic has largely stabilized enough now that we don't need
this post-install hack to keep things sane. Plus, if you install a package
that doesn't cross-compile properly, you'll notice pretty quickly.
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
---
wrappers/emerge-wrapper | 14 --------------
wrappers/etc/portage/bashrc | 20 --------------------
wrappers/etc/portage/make.conf | 1 -
3 files changed, 35 deletions(-)
diff --git a/wrappers/emerge-wrapper b/wrappers/emerge-wrapper
index 9a85f05..4658b5f 100755
--- a/wrappers/emerge-wrapper
+++ b/wrappers/emerge-wrapper
@@ -46,17 +46,6 @@ cross_wrap_etc()
)
[[ ${ARCH} == "unknown" ]] && emit_setup_warning
- # Now map out the non-standard EM values
- case ${ARCH} in
- amd64) E_MACHINE=X86_64 ;;
- hppa) E_MACHINE=PARISC ;;
- ia64) E_MACHINE=IA_64 ;;
- m68k) E_MACHINE=68K ;;
- x86) E_MACHINE=386 ;;
- *) E_MACHINE=`echo ${ARCH} | tr '[:lower:]' '[:upper:]'` ;;
- esac
- E_MACHINE="EM_${E_MACHINE}"
-
LIBC="__LIBC__"
case ${CHOST} in
*gnu*) LIBC=glibc ;;
@@ -66,13 +55,10 @@ cross_wrap_etc()
sed -i \
-e "s:__LIBC__:${LIBC}:g" \
- -e "s:__E_MACHINE__:${E_MACHINE}:g" \
-e "s:__ARCH__:${ARCH}:g" \
-e "s:__CHOST__:${CHOST}:g" \
-e "s:__CBUILD__:${CBUILD}:g" \
"${conf}"
- [[ ${EM_MACHINE} == "EM_UNKNOWN" ]] \
- && sed -i '/^E_MACHINE/s:^:#:' "${conf}"
# Merge UCLIBC_CPU from env only
local v
diff --git a/wrappers/etc/portage/bashrc b/wrappers/etc/portage/bashrc
deleted file mode 100644
index 4ca2768..0000000
--- a/wrappers/etc/portage/bashrc
+++ /dev/null
@@ -1,20 +0,0 @@
-[[ $(basename $(readlink -f $PORTAGE_CONFIGROOT/etc/portage/make.profile)) == "embedded" ]] && . ${PORTDIR}/profiles/base/profile.bashrc
-
-post_src_install() {
- [[ -d ${D} ]] || return 0
- [[ ${E_MACHINE} == "" ]] && return 0
- cmdline=""
- for EM in $E_MACHINE; do
- cmdline+=" -e ^${EM}[[:space:]]";
- done
- output="$( cd ${D} && scanelf -RmyBF%a . | grep -v ${cmdline} )"
- [[ $output != "" ]] && { echo; echo "* Wrong EM_TYPE. Expected ${E_MACHINE}"; echo -e "${output}"; echo; exit 1; }
-}
-
-# We don't run this on the assumption that when you're
-# emerging binary packages, it's into a runtime ROOT
-# rather than build development ROOT. The former doesn't
-# want hacking while the latter does.
-if [[ $EBUILD_PHASE == "postinst" ]]; then
- [[ $SYSROOT == $ROOT ]] && cross-fix-root ${CHOST}
-fi
diff --git a/wrappers/etc/portage/make.conf b/wrappers/etc/portage/make.conf
index 82e489b..6c1ffbd 100644
--- a/wrappers/etc/portage/make.conf
+++ b/wrappers/etc/portage/make.conf
@@ -3,7 +3,6 @@ CBUILD=__CBUILD__
ARCH=__ARCH__
HOSTCC=__CBUILD__-gcc
-E_MACHINE=__E_MACHINE__
ROOT=/usr/${CHOST}/
next reply other threads:[~2013-12-23 3:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-23 3:11 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-12-23 2:54 [gentoo-commits] proj/crossdev:master commit in: wrappers/, wrappers/etc/portage/ Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1387768123.a4ab14acf5522e3ced4d71d535657d6f241c23c0.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox