Lines 640-651
Link Here
|
640 |
tc-is-static-only && return |
640 |
tc-is-static-only && return |
641 |
|
641 |
|
642 |
# Eventually we'd like to get rid of this func completely #417451 |
642 |
# Eventually we'd like to get rid of this func completely #417451 |
643 |
case ${CTARGET:-${CHOST}} in |
643 |
if [[ -z ${GENTOO_ENABLE_SPLIT_USR} ]] ; then |
644 |
*-darwin*) ;; |
644 |
case ${CTARGET:-${CHOST}} in |
645 |
*linux*|*-freebsd*|*-openbsd*|*-netbsd*) |
645 |
*-darwin*) GENTOO_ENABLE_SPLIT_USR='yes' ;; |
646 |
use prefix && return 0 ;; |
646 |
*-freebsd*|*-openbsd*|*-netbsd*) |
647 |
*) return 0 ;; |
647 |
use prefix || GENTOO_ENABLE_SPLIT_USR='yes' ;; |
648 |
esac |
648 |
*Linux*) |
|
|
649 |
# Do a sanity check on users to see if they have a split-/usr. |
650 |
# If so, for now, we warn & still do this stuff. |
651 |
# The ROOT hack isn't entirely correct, but we don't really care. |
652 |
# If you're deploying binpkgs, you can sort it out yourself. |
653 |
if [[ ${ROOT} == "/" && $(stat -c %d /) != "$(stat -c %d /usr)" ]]; then |
654 |
ewarn "You have a /usr mount point, but have not set GENTOO_ENABLE_SPLIT_USR=yes" |
655 |
ewarn "in your make.conf. Please do so now as future builds will stop setting" |
656 |
ewarn "this for you automatically and your system might stop booting." |
657 |
ewarn "See http://bugs.gentoo.org/417451 for more details." |
658 |
GENTOO_ENABLE_SPLIT_USR='yes' |
659 |
fi |
660 |
;; |
661 |
esac |
662 |
fi |
663 |
if [[ ${GENTOO_ENABLE_SPLIT_USR} != "yes" ]] ; then |
664 |
return 0 |
665 |
fi |
649 |
|
666 |
|
650 |
# Just make sure it exists |
667 |
# Just make sure it exists |
651 |
dodir /usr/${libdir} |
668 |
dodir /usr/${libdir} |