Lines 407-412
Link Here
|
407 |
eerror "${FUNCNAME}: D is unset" |
407 |
eerror "${FUNCNAME}: D is unset" |
408 |
return 1 |
408 |
return 1 |
409 |
fi |
409 |
fi |
|
|
410 |
|
411 |
# Make sure $PWD is not ${D} so that we don't leave gmon.out files |
412 |
# in there in case any tools were built with -pg in CFLAGS. |
413 |
cd "${T}" |
414 |
|
410 |
# remove man pages, info pages, docs if requested |
415 |
# remove man pages, info pages, docs if requested |
411 |
for f in man info doc; do |
416 |
for f in man info doc; do |
412 |
if hasq no${f} $FEATURES; then |
417 |
if hasq no${f} $FEATURES; then |
Lines 525-531
Link Here
|
525 |
} |
530 |
} |
526 |
|
531 |
|
527 |
dyn_package() { |
532 |
dyn_package() { |
528 |
cd "${PORTAGE_BUILDDIR}/image" |
533 |
# Make sure $PWD is not ${D} so that we don't leave gmon.out files |
|
|
534 |
# in there in case any tools were built with -pg in CFLAGS. |
535 |
cd "${T}" |
529 |
install_mask "${PORTAGE_BUILDDIR}/image" "${PKG_INSTALL_MASK}" |
536 |
install_mask "${PORTAGE_BUILDDIR}/image" "${PKG_INSTALL_MASK}" |
530 |
local pkg_dest="${PKGDIR}/All/${PF}.tbz2" |
537 |
local pkg_dest="${PKGDIR}/All/${PF}.tbz2" |
531 |
local pkg_tmp="${PKGDIR}/All/${PF}.tbz2.$$" |
538 |
local pkg_tmp="${PKGDIR}/All/${PF}.tbz2.$$" |
Lines 534-543
Link Here
|
534 |
# Sandbox is disabled in case the user wants to use a symlink |
541 |
# Sandbox is disabled in case the user wants to use a symlink |
535 |
# for $PKGDIR and/or $PKGDIR/All. |
542 |
# for $PKGDIR and/or $PKGDIR/All. |
536 |
export SANDBOX_ON="0" |
543 |
export SANDBOX_ON="0" |
537 |
tar $tar_options -cf - $PORTAGE_BINPKG_TAR_OPTS . | \ |
544 |
tar $tar_options -cf - $PORTAGE_BINPKG_TAR_OPTS -C "${D}" . | \ |
538 |
bzip2 -f > "${pkg_tmp}" || \ |
545 |
bzip2 -f > "${pkg_tmp}" || \ |
539 |
die "Failed to create tarball" |
546 |
die "Failed to create tarball" |
540 |
cd .. |
|
|
541 |
export PYTHONPATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym} |
547 |
export PYTHONPATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym} |
542 |
python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')" |
548 |
python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')" |
543 |
if [ $? -ne 0 ]; then |
549 |
if [ $? -ne 0 ]; then |