steps to reproduce: linux01 ~ # eselect python list Available Python interpreters: [1] python2.7 [2] python3.1 * works (Python 2.7): -------------------- linux01 ~ # eselect python set 1 linux01 ~ # FEATURES="test ccache" emerge -1v app-misc/pax-utils-0.2.3 ... make[3]: Entering directory `/var/tmp/portage/app-misc/pax-utils-0.2.3/work/pax-utils-0.2.3/tests/source' ./dotest PASS: src.typos PASS: src.obsolete.funcs PASS: src.bad.constants PASS: src.obsolete.headers PASS: src.use.xfuncs ... fails (Python 3.x): ------------------- linux01 ~ # eselect python set 2 linux01 ~ # FEATURES="test ccache" emerge -1v app-misc/pax-utils-0.2.3 ... make[3]: Entering directory `/var/tmp/portage/app-misc/pax-utils-0.2.3/work/pax-utils-0.2.3/tests/source' ./dotest PASS: src.typos PASS: src.obsolete.funcs PASS: src.bad.constants PASS: src.obsolete.headers PASS: src.use.xfuncs PASS: src.style File "/var/tmp/portage/app-misc/pax-utils-0.2.3/work/pax-utils-0.2.3/tests/source/space.py", line 18 print line ^ SyntaxError: invalid syntax File "/var/tmp/portage/app-misc/pax-utils-0.2.3/work/pax-utils-0.2.3/tests/source/space.py", line 18 print line ^ ...
works (Python 2.7): (src.style part) -------------------- ... PASS: src.obsolete.headers PASS: src.use.xfuncs PASS: src.style PASS: src.space make[3]: Leaving directory `/var/tmp/portage/app-misc/pax-utils-0.2.3/work/pax-utils-0.2.3/tests/source' make -C scanelf all ...
right line (it's friday!): FEATURES="test ccache" emerge -1v =app-misc/pax-utils-0.2.3
Created attachment 264729 [details, diff] pax-utils-0.2.3-python3.patch This patch adds support for Python 3 and fixes ResourceWarnings with Python >=3.2 and -Wd.
Additionally app-misc/pax-utils ebuilds should have IUSE="... test" and DEPEND="... test? ( dev-lang/python )"
yeah, no. we're not depending on python.
Comment on attachment 264729 [details, diff] pax-utils-0.2.3-python3.patch thanks, ive applied this to portage-utils/pax-utils http://sources.gentoo.org/gentoo-projects/pax-utils/tests/source/space.py?r1=1.1&r2=1.2 http://sources.gentoo.org/gentoo-projects/portage-utils/tests/source/space.py?r1=1.1&r2=1.2
pax-utils no longer has space.py at all. ive converted it to sed/awk.