Summary: | games-simulation/singularity-0.30c fails to run with Python3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Mayo <aklhfex> |
Component: | New packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | games, slyfox, tdalman |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 415635 | ||
Attachments: |
patch to ebuild
patch to ebuild patch to ebuild |
Created attachment 285547 [details, diff]
patch to ebuild
Created attachment 285555 [details, diff]
patch to ebuild
grief 2 years ago this has been sitting python team, please take it up and change to current python version 2 months, not years. The patch looks mostly correct. PYTHON_DEPEND="2" instead of PYTHON_DEPEND="2:2.4" is sufficient since 2.4 is the oldest version available in the tree. python_pkg_setup() should be called after python_set_active_version(). also, games should remain the last item on the inherit line. So, this bug can be closed then ? Singularity development seems to be inactive since 2010. With the attached patch, this issue is fixed, right ? Pushed as:
> *singularity-0.30c-r1 (29 Jun 2013)
>
> 29 Jun 2013; Sergei Trofimovich <slyfox@gentoo.org>
> +singularity-0.30c-r1.ebuild, singularity-0.30c.ebuild:
> Ported to python-single-r1 (used funnyboat-1.5-r1 as an example). Added
> workaround to stable ebuild to run python2 (bug #381809 by Chris Mayo).
Hope I broke less, than fixed.
Thank guys!
|
Created attachment 285545 [details] patch to ebuild If Python3 is the default interpreter singularity-0.30c emerges OK but does not run: $ singularity Traceback (most recent call last): File "singularity.py", line 1, in <module> import code.singularity File "/usr/share/games/singularity/code/singularity.py", line 54 except Exception, reason: ^ SyntaxError: invalid syntax Attached patch to the ebuild fixes this for me. (OK only the games_make_wrapper change is key to this, it also sets a Python dependency and byte-compiles the code).