I have python-2.4.6, python-2.5.4-r3, python-2.6.4 and python-3.1.1-r1 installed. When I try to emerge snakeoil, it is only installed into the python-2.4 directory: # emerge snakeoil >>> Emerging (1 of 1) dev-python/snakeoil-0.3.3 * snakeoil-0.3.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: dev-python/snakeoil-0.3.3 * REPO: gentoo * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU >>> Unpacking source... >>> Unpacking snakeoil-0.3.3.tar.bz2 to /var/tmp/portage/dev-python/snakeoil-0.3.3/work >>> Source unpacked in /var/tmp/portage/dev-python/snakeoil-0.3.3/work >>> Compiling source in /var/tmp/portage/dev-python/snakeoil-0.3.3/work/snakeoil-0.3.3 ... python2.4 setup.py build [...] >>> Completed installing snakeoil-0.3.3 into /var/tmp/portage/dev-python/snakeoil-0.3.3/image/ strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment usr/lib64/python2.4/site-packages/snakeoil/_formatters.so usr/lib64/python2.4/site-packages/snakeoil/_compatibility.so usr/lib64/python2.4/site-packages/snakeoil/_caching.so usr/lib64/python2.4/site-packages/snakeoil/osutils/_readdir.so usr/lib64/python2.4/site-packages/snakeoil/osutils/_posix.so usr/lib64/python2.4/site-packages/snakeoil/_klass.so usr/lib64/python2.4/site-packages/snakeoil/_lists.so >>> Installing (1 of 1) dev-python/snakeoil-0.3.3 Naturally, this is not what I want: I need the snakeoil ebuild to (at the minimum) install the python-2.6 version, otherwise I cannot install pkgcore. I believe that this bug is caused by changes in the python and/or distutils eclass breaking the "ugly hack" in the snakeoil ebuild.
Created attachment 211702 [details] fixed snakeoil-0.3.3.ebuild Fixed the ugly hack in the ebuild to work with latest python and distutils eclasses by overriding the PYTHON() function. With this ebuild, snakeoil is correctly installed for all versions of python-2.
This patch is incorrect. I will apply a better workaround...
Fixed.
*** Bug 296354 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > Created an attachment (id=211702) [details] > fixed snakeoil-0.3.3.ebuild > > Fixed the ugly hack in the ebuild to work with latest python and distutils > eclasses by overriding the PYTHON() function. With this ebuild, snakeoil is > correctly installed for all versions of python-2. Sorry... that ebuild preceeded all of the new bits and hasn't been modified in a *long* time. That said, snakeoil works for py3k also, so please tweak the ebuild to mark py3k abi as supported, instead of currently restricted.
(In reply to comment #5) > That said, snakeoil works for py3k also, so please tweak the ebuild to mark > py3k abi as supported, instead of currently restricted. Done.