Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 411563

Summary: python-distutils-ng: python_install_all() done in different PWD than it says
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: EclassesAssignee: Krzysztof Pawlik (RETIRED) <nelchael>
Status: RESOLVED FIXED    
Severity: normal CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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