existing dev-python/pyelftools-0.21-r2 masks out all versions of python (package explicitly does not support <2.6): [ebuild U ] dev-python/pyelftools-0.21-r2 [0.21-r1] PYTHON_TARGETS="(-python2_6%*) (-python2_7%*) (-python3_2%*) (-python3_3%*)" 0 kB package author indicates pyelftools is built for versions 2.6,2.7,3.2+ this ebuild uses EAPI5 Reproducible: Always attached ebuild compiles and installs cleanly for supported versions
Created attachment 350290 [details] pyelftools-0.21-r3.ebuild updated ebuild for correct python versions per package author
Comment on attachment 350290 [details] pyelftools-0.21-r3.ebuild --- pyelftools-0.21-r2.ebuild 2013-04-24 03:35:21.000000000 +0200 +++ - 2013-06-06 17:16:59.052203031 +0200 @@ -2,10 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyelftools/pyelftools-0.21-r2.ebuild,v 1.1 2013/04/24 01:35:21 vapier Exp $ -EAPI="4" +EAPI="5" -SUPPORT_PYTHON_ABIS="1" -inherit distutils eutils +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) + +inherit distutils-r1 multilib DESCRIPTION="pure-Python library for parsing and analyzing ELF files and DWARF debugging information" HOMEPAGE="http://pypi.python.org/pypi/pyelftools https://bitbucket.org/eliben/pyelftools" @@ -16,18 +17,20 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" IUSE="" -src_prepare() { +python_prepare_all() { epatch "${FILESDIR}"/${P}-dyntable.patch + + distutils-r1_python_prepare_all } python_test() { # readelf_tests often fails due to host `readelf` changing output format local t for t in all_unittests examples_test ; do - PYTHONPATH=$(_distutils_get_PYTHONPATH) "$(PYTHON)" ./test/run_${t}.py || die + "$(PYTHON)" ./test/run_${t}.py || die done } -src_test() { - python_execute_function python_test +python_install_all() { + distutils-r1_python_install_all }
distutils-r1 requires EAPI=5 so it'll be some time before the ebuild changes
should be all set now in the tree; thanks for the report! Commit message: Re-add Michał Górny's distutils-r1 now that the eclass supports EAPI=4 http://sources.gentoo.org/dev-python/pyelftools/pyelftools-0.21-r3.ebuild?rev=1.1
(In reply to SpanKY from comment #4) pyelftools-0.21-dyntable.patch is no longer applied.
should be all set now in the tree; thanks for the report! Commit message: Re-add dyntable patch accidentally dropped in distutils-r1 conversion http://sources.gentoo.org/dev-python/pyelftools/pyelftools-0.21-r4.ebuild?rev=1.1