From: Zac Medico Date: Fri, 19 Apr 2019 04:49:57 +0000 (-0700) Subject: sys-apps/portage: update 9999 with backward compat for bug 378603 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1471339d008bb42ce9b727ad0bf7aa354797d712;p=gentoo.git sys-apps/portage: update 9999 with backward compat for bug 378603 Bug: https://bugs.gentoo.org/378603 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Zac Medico --- diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild index 42273cc4fdd3..5ac144404c9a 100644 --- a/sys-apps/portage/portage-9999.ebuild +++ b/sys-apps/portage/portage-9999.ebuild @@ -247,16 +247,15 @@ python_install_all() { } pkg_preinst() { - # comment out sanity test until it is fixed to work - # with the new PORTAGE_PYM_PATH - #if [[ $ROOT == / ]] ; then - ## Run some minimal tests as a sanity check. - #local test_runner=$(find "${ED}" -name runTests) - #if [[ -n $test_runner && -x $test_runner ]] ; then - #einfo "Running preinst sanity tests..." - #"$test_runner" || die "preinst sanity tests failed" - #fi - #fi + python_setup + python_export PYTHON_SITEDIR + env -u DISTDIR \ + -u PORTAGE_OVERRIDE_EPREFIX \ + -u PORTAGE_REPOSITORIES \ + -u PORTDIR \ + -u PORTDIR_OVERLAY \ + PYTHONPATH="${ED%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ + "${PYTHON}" -m portage._compat_upgrade.default_locations || die # elog dir must exist to avoid logrotate error for bug #415911. # This code runs in preinst in order to bypass the mapping of