Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472500 - dev-python/pyelftools - migrate to distutils-r1
Summary: dev-python/pyelftools - migrate to distutils-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-06 14:51 UTC by Blu3
Modified: 2013-09-30 05:47 UTC (History)
2 users (show)

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


Attachments
pyelftools-0.21-r3.ebuild (pyelftools-0.21-r3.ebuild,1.05 KB, text/plain)
2013-06-06 14:54 UTC, Blu3
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blu3 2013-06-06 14:51:26 UTC
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
Comment 1 Blu3 2013-06-06 14:54:02 UTC
Created attachment 350290 [details]
pyelftools-0.21-r3.ebuild

updated ebuild for correct python versions per package author
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 15:17:08 UTC
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
 }
Comment 3 SpanKY gentoo-dev 2013-06-18 03:23:57 UTC
distutils-r1 requires EAPI=5 so it'll be some time before the ebuild changes
Comment 4 SpanKY gentoo-dev 2013-09-28 11:32:13 UTC
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
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-09-30 04:49:37 UTC
(In reply to SpanKY from comment #4)

pyelftools-0.21-dyntable.patch is no longer applied.
Comment 6 SpanKY gentoo-dev 2013-09-30 05:47:08 UTC
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