except OSError, e: ^ SyntaxError: invalid syntax * ERROR: dev-python/pythondialog-3.4.0::gentoo failed (compile phase): * (no error message) * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 13.0-systemd_20171126-125140 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.2.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python3.5 (fallback) [3] python2.7 (fallback) Available Ruby profiles: [1] ruby22 (with Rubygems) * emerge -qpv dev-python/pythondialog [ebuild N ] dev-python/pythondialog-3.4.0 USE="-doc -examples" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_6"
Created attachment 507066 [details] emerge-info.txt
Created attachment 507068 [details] dev-python:pythondialog-3.4.0:20171128-232122.log
Created attachment 507070 [details] emerge-history.txt
Created attachment 507072 [details] environment
Created attachment 507074 [details] etc.portage.tbz2
Created attachment 507076 [details] temp.tbz2
I don't think this has anything to do with scons. Looks to me like old Python 2 exception syntax that isn't being converted.
@monsieurp, you've committed this monstrosity. Please fix it. Also FWICS the slots on this thing are off and it misses necessary cross-slot blockers.
Created attachment 515036 [details, diff] pythondialog-3.4.0-3.5.patch emerge =dev-python/pythondialog-3.4.0 --nodeps patch -p0 < /tmp/pythondialog-3.4.0.patch ebuild /usr/portage/dev-python/pythondialog/pythondialog-3.4.0.ebuild compile ebuild /usr/portage/dev-python/pythondialog/pythondialog-3.4.0.ebuild install ebuild /usr/portage/dev-python/pythondialog/pythondialog-3.4.0.ebuild qmerge merged with: http://pythondialog.sourceforge.net/doc/_modules/dialog.html
Affects PyBitMessage. Tried the patch but it gives a hunk failure.
(In reply to tonemgub from comment #10) > Affects PyBitMessage. Tried the patch but it gives a hunk failure. Patch is needed for python 3.x directory. Things i have done: emerge =dev-python/pythondialog-3.4.0 --nodeps wget https://bugs.gentoo.org/attachment.cgi?id=515036 -O /tmp/pythondialog-3.4.0-3.5.patch cd /var/tmp/portage/dev-python/pythondialog-3.4.0/work/python2-pythondialog-3.4.0-python3_4 patch -p0 < /root/pythondialog-3.4.0-3.5.patch cd /var/tmp/portage/dev-python/pythondialog-3.4.0/work/python2-pythondialog-3.4.0-python3_5 patch -p0 < /root/pythondialog-3.4.0-3.5.patch ebuild /usr/portage/dev-python/pythondialog/pythondialog-3.4.0.ebuild compile ebuild /usr/portage/dev-python/pythondialog/pythondialog-3.4.0.ebuild install ebuild /usr/portage/dev-python/pythondialog/pythondialog-3.4.0.ebuild qmerge Not tested with python 3.6 but 3.4 and 3.5 works for me.
i don't think trying to patch the source makes sense the upstream project provides two versions: https://pypi.python.org/pypi/pythondialog https://pypi.python.org/pypi/python2-pythondialog the former is for python-3 while the latter is for python-2 and is what the build is (currently) installing. the 3.3.0 ebuilds had two variants for each, but the 3.4.0 doesn't. probably should be changed to unify the ebuild to fetch the relevant source based on the version.
Thanks a lot Mike for the explanation! I finally understand how to fix this bug.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc8a2a8c318e38e2112dcc2df03cb75d28a4f1a7 commit fc8a2a8c318e38e2112dcc2df03cb75d28a4f1a7 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2018-01-29 10:05:23 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2018-01-29 10:11:21 +0000 dev-python/pythondialog: version bump to 3.4.0. This commit: * alters python-3.4.0.ebuild's slot to 0 for Python 3.x and pypy3 interpreters. * adds python-3.4.0-r200.ebuild using slot "python-2" for Python 2.7 and pypy interpreters. An EAPI 6 bump is crammed in whilst we're at it. Closes: https://bugs.gentoo.org/639188 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-python/pythondialog/Manifest | 1 + .../pythondialog/pythondialog-3.4.0-r200.ebuild | 38 ++++++++++++++++++++++ dev-python/pythondialog/pythondialog-3.4.0.ebuild | 22 ++++--------- 3 files changed, 46 insertions(+), 15 deletions(-)