|
Lines 233-239
Link Here
|
| 233 |
|
233 |
|
| 234 |
[[ -d ${PORTDIR_OVERLAY}/cross-${CTARGET} ]] \ |
234 |
[[ -d ${PORTDIR_OVERLAY}/cross-${CTARGET} ]] \ |
| 235 |
&& rm -r ${PORTDIR_OVERLAY}/cross-${CTARGET} |
235 |
&& rm -r ${PORTDIR_OVERLAY}/cross-${CTARGET} |
| 236 |
sed -i -e "/^cross-${CTARGET}$/d" /etc/portage/categories |
236 |
sed -i -e "/^cross-${CTARGET}$/d" "${EPREFIX}"/etc/portage/categories |
| 237 |
for f in package.{mask,keywords,use} ; do |
237 |
for f in package.{mask,keywords,use} ; do |
| 238 |
f="${EPREFIX}/etc/portage/${f}" |
238 |
f="${EPREFIX}/etc/portage/${f}" |
| 239 |
if [[ -d ${f} ]] ; then |
239 |
if [[ -d ${f} ]] ; then |
|
Lines 533-543
Link Here
|
| 533 |
set_links ${cat} ${pkg} |
533 |
set_links ${cat} ${pkg} |
| 534 |
} |
534 |
} |
| 535 |
|
535 |
|
| 536 |
mkdir -p /etc/portage |
536 |
mkdir -p "${EPREFIX}"/etc/portage |
| 537 |
grep -qs "^cross-${CTARGET}$" /etc/portage/categories \ |
537 |
grep -qs "^cross-${CTARGET}$" "${EPREFIX}"/etc/portage/categories \ |
| 538 |
|| echo cross-${CTARGET} >> /etc/portage/categories |
538 |
|| echo cross-${CTARGET} >> "${EPREFIX}"/etc/portage/categories |
| 539 |
mkdir -p "${PORTDIR_OVERLAY}"/cross-${CTARGET} |
539 |
mkdir -p "${PORTDIR_OVERLAY}"/cross-${CTARGET} |
| 540 |
cd /etc/portage |
540 |
cd "${EPREFIX}"/etc/portage |
| 541 |
for f in package.{keywords,mask,use} ; do |
541 |
for f in package.{keywords,mask,use} ; do |
| 542 |
[[ -f ${f} ]] && continue |
542 |
[[ -f ${f} ]] && continue |
| 543 |
mkdir -p ${f} |
543 |
mkdir -p ${f} |