The dev-python/sip-3.5 ebuild correctly uses PYVER to install itself into version-specific python directories, but fails to ever set the value of PYVER. Borrowing from other python ebuilds, inserting: PYVER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:') fixes the problem. An example of the havoc this error causes, dev-python/PyQt won't build because it can't find sip.h in /usr/include/python2.2 as the broken ebuild for dev-python/sip installed into the non-existent /usr/include/python directory. Reproducible: Always Steps to Reproduce: 1. Emerge dev-python/sip-3.5.ebuild Actual Results: Sip installed in the wrong directories. Expected Results: Set PYVER in the ebuild file.
Created attachment 10225 [details] Fixed ebuild for dev-python/sip-3.5 by setting PYVER.
PYVER is set by the distutils_python_version from the distutils.eclass. the re-declaration of this is not really needed. the package merges fine into the right directories: >>> Merging dev-python/sip-3.5 to / --- /usr/ --- /usr/include/ --- /usr/include/python2.2/ >>> /usr/include/python2.2/sip.h >>> /usr/include/python2.2/sipQt.h --- /usr/bin/ >>> /usr/bin/sip --- /usr/lib/ --- /usr/lib/python2.2/ --- /usr/lib/python2.2/site-packages/ >>> /usr/lib/python2.2/site-packages/libsip.so.9.3.0 >>> /usr/lib/python2.2/site-packages/libsip.so -> libsip.so.9.3.0 >>> /usr/lib/python2.2/site-packages/libsip.so.9 -> libsip.so.9.3.0 >>> /usr/lib/python2.2/site-packages/libsip.so.9.3 -> libsip.so.9.3.0
How did PYVER get set for you?
I said: PYVER is set by the distutils_python_version from the distutils.eclass.