Lines 708-715
Link Here
|
708 |
# in Prefix the sed wrapper is deadly, so kill it |
708 |
# in Prefix the sed wrapper is deadly, so kill it |
709 |
rm -f "${ROOT}"/tmp/usr/lib/portage/bin/ebuild-helpers/sed |
709 |
rm -f "${ROOT}"/tmp/usr/lib/portage/bin/ebuild-helpers/sed |
710 |
|
710 |
|
711 |
local tmpportdir=${ROOT}/tmp/${PORTDIR#${ROOT}} |
711 |
local tmpportdir=${ROOT}/tmp/${PORTDIR#${ROOT}/} |
712 |
[[ -e "${tmpportdir}" ]] || ln -s "${PORTDIR}" "${tmpportdir}" |
712 |
[[ -e "${tmpportdir}" ]] || mkdir -p "${tmpportdir}" && rmdir "${tmpportdir}" && ln -s "${PORTDIR}" "${tmpportdir}" |
713 |
for d in "${ROOT}"/tmp/usr/lib/python?.?; do |
713 |
for d in "${ROOT}"/tmp/usr/lib/python?.?; do |
714 |
[[ -e ${d}/portage ]] || ln -s "${ROOT}"/tmp/usr/lib/portage/lib/portage ${d}/portage |
714 |
[[ -e ${d}/portage ]] || ln -s "${ROOT}"/tmp/usr/lib/portage/lib/portage ${d}/portage |
715 |
[[ -e ${d}/_emerge ]] || ln -s "${ROOT}"/tmp/usr/lib/portage/lib/_emerge ${d}/_emerge |
715 |
[[ -e ${d}/_emerge ]] || ln -s "${ROOT}"/tmp/usr/lib/portage/lib/_emerge ${d}/_emerge |