Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295340 - dev-python/snakeoil-0.3.3 install is broken when multiple python-2 versions are present
Summary: dev-python/snakeoil-0.3.3 install is broken when multiple python-2 versions a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 296354 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-01 16:22 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2009-12-11 01:34 UTC (History)
1 user (show)

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


Attachments
fixed snakeoil-0.3.3.ebuild (snakeoil-0.3.3.ebuild,1.42 KB, text/plain)
2009-12-01 16:25 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-12-01 16:22:35 UTC
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.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-12-01 16:25:51 UTC
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.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-04 02:26:56 UTC
This patch is incorrect.
I will apply a better workaround...
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-05 21:22:25 UTC
Fixed.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-11 00:46:14 UTC
*** Bug 296354 has been marked as a duplicate of this bug. ***
Comment 5 Brian Harring (RETIRED) gentoo-dev 2009-12-11 01:03:46 UTC
(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.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-11 01:34:47 UTC
(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.