Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411563 - python-distutils-ng: python_install_all() done in different PWD than it says
Summary: python-distutils-ng: python_install_all() done in different PWD than it says
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-11 08:18 UTC by Michał Górny
Modified: 2012-04-30 08:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-04-11 08:18:02 UTC
* Running python_install_all in /tmp/portage/app-portage/gentoopm-9999/work/gentoopm-9999 for all

but pwd says:
/tmp/portage/app-portage/gentoopm-9999/work/impl_python2_7/gentoopm-9999
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2012-04-30 08:26:03 UTC
Thank you for this report, I've forgot the calls to pushd/popd:


Index: python-distutils-ng.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v
retrieving revision 1.11
diff -u -r1.11 python-distutils-ng.eclass
--- python-distutils-ng.eclass  3 Apr 2012 19:21:45 -0000       1.11
+++ python-distutils-ng.eclass  30 Apr 2012 08:20:08 -0000
@@ -388,7 +388,9 @@
        S="${WORKDIR}/${_PACKAGE_SPECIFIC_S}"
        if type python_install_all &> /dev/null; then
                einfo "Running python_install_all in ${S} for all"
+               pushd "${S}" &> /dev/null
                python_install_all
+               popd &> /dev/null
        fi
 
        for impl in ${PYTHON_COMPAT}; do