diff options
author | Ned Ludd <solar@gentoo.org> | 2010-02-24 08:29:38 -0800 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2010-02-24 08:29:38 -0800 |
commit | 3c271c0d316fdb19098cc5f9b8096d5e9b8743ed (patch) | |
tree | 9a4e3fb44edf547ff54a14fc265c2f765c825d20 | |
parent | bashrc: fix cross-fix-root comment to reflect reality (diff) | |
download | crossdev-3c271c0d316fdb19098cc5f9b8096d5e9b8743ed.tar.gz crossdev-3c271c0d316fdb19098cc5f9b8096d5e9b8743ed.tar.bz2 crossdev-3c271c0d316fdb19098cc5f9b8096d5e9b8743ed.zip |
check ROOT == SYSROOT vs EMERGE_FROM != binary so the -g/-G options can also be used properly. Thanks to msb and tedbo for pointing this out
Signed-off-by: Ned Ludd <solar@gentoo.org>
-rw-r--r-- | wrappers/etc/portage/bashrc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wrappers/etc/portage/bashrc b/wrappers/etc/portage/bashrc index 9d85e95..e78b634 100644 --- a/wrappers/etc/portage/bashrc +++ b/wrappers/etc/portage/bashrc @@ -14,8 +14,7 @@ post_src_install() { # 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. We should have a -# better way of detecting this ... maybe check SYSROOT ? +# want hacking while the latter does. if [[ $EBUILD_PHASE == "postinst" ]]; then - [[ $EMERGE_FROM != binary ]] && cross-fix-root ${CHOST} + [[ $SYSROOT == $ROOT ]] && cross-fix-root ${CHOST} fi |