Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452262 - =games-fps/doomsday-1.9.10 : Version bump
Summary: =games-fps/doomsday-1.9.10 : Version bump
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-15 13:22 UTC by Agostino Sarubbo
Modified: 2013-03-10 15:08 UTC (History)
0 users

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


Attachments
games-fps/doomsday-1.9.10.ebuild (doomsday-1.9.10.ebuild,6.13 KB, text/plain)
2013-01-24 01:46 UTC, Patrick McMunn
Details
doomsday-1.9.10-driver_openal.cpp.patch (doomsday-1.9.10-driver_openal.cpp.patch,935 bytes, patch)
2013-01-24 01:47 UTC, Patrick McMunn
Details | Diff
doomsday-1.9.10-threadsafe.patch (doomsday-1.9.10-threadsafe.patch,2.42 KB, patch)
2013-01-24 01:48 UTC, Patrick McMunn
Details | Diff
metadata.xml (metadata.xml,1.44 KB, text/plain)
2013-01-24 01:49 UTC, Patrick McMunn
Details
Emerge failed outout. (emerge_failed.log,28.99 KB, text/plain)
2013-01-25 08:34 UTC, No Name
Details
games-fps/doomsday-1.9.10.ebuild (doomsday-1.9.10.ebuild,6.02 KB, text/plain)
2013-01-25 18:44 UTC, Patrick McMunn
Details
games-fps/doomsday-1.9.10.ebuild (doomsday-1.9.10.ebuild,6.00 KB, text/plain)
2013-01-26 05:33 UTC, Patrick McMunn
Details
doomsday-1.9.10-python_build.patch (doomsday-1.9.10-python_build.patch,1.95 KB, text/plain)
2013-01-26 05:34 UTC, Patrick McMunn
Details
doomsday-9999.ebuild (doomsday-9999.ebuild,3.87 KB, text/plain)
2013-02-06 17:14 UTC, Julian Ospald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-01-15 13:22:22 UTC
$summary
Comment 1 No Name 2013-01-17 23:37:32 UTC
The build of this version in the overlay fails to build because of something with python. please check it.
Comment 2 Patrick McMunn 2013-01-24 01:46:42 UTC
Created attachment 336676 [details]
games-fps/doomsday-1.9.10.ebuild

This is the ebuild from my own overlay (paddymac). I'm not sure if this is the same one you tried, but it works great for me. Also please note that, if you enable the FMOD use flag, you'll need a newer version of FMOD than is currently in Portage. See bug 453748. If you still have trouble, post your error message.
Comment 3 Patrick McMunn 2013-01-24 01:47:38 UTC
Created attachment 336678 [details, diff]
doomsday-1.9.10-driver_openal.cpp.patch
Comment 4 Patrick McMunn 2013-01-24 01:48:12 UTC
Created attachment 336680 [details, diff]
doomsday-1.9.10-threadsafe.patch
Comment 5 Patrick McMunn 2013-01-24 01:49:57 UTC
Created attachment 336682 [details]
metadata.xml
Comment 6 No Name 2013-01-24 11:18:14 UTC
I also used the version from your overlay. this is the only version which exist for gentoo actually. but it fails.
Comment 7 No Name 2013-01-24 11:18:52 UTC
Is failing emerge your ebuild a result of a wrong fmod version?!?
Comment 8 Patrick McMunn 2013-01-25 04:50:24 UTC
An unsuitable version of FMOD will only cause a build failure *if* the FMOD use flag is enabled, but that shouldn't happen because the ebuild has a minimum version requirement to ensure a suitable version of FMOD is installed. Please attach the appropriate log(s) and/or post the exact error message you're getting in order to provide sufficient information to address the issue.
Comment 9 No Name 2013-01-25 08:34:47 UTC
Created attachment 336824 [details]
Emerge failed outout.

[ebuild     U  ] games-fps/doomsday-1.9.10::paddymac [1.9.8::gentoo] USE="doom heretic hexen openal sdl%* snowberry tools%* -debug% -demo -fluidsynth% -fmod% -freedoom -resources" 0 kB

I always see "syntax error" i think it has something to do wih python.

see attachment for part of the output.
Comment 10 Patrick McMunn 2013-01-25 18:44:28 UTC
Created attachment 336850 [details]
games-fps/doomsday-1.9.10.ebuild

The only error I discovered in the ebuild was a typo which caused the tools use flag to not work, but this was only responsible for a small QA error message. I'm attaching an ebuild which fixes that small issue.

However, I was able to reproduce the more significant error message you were getting by switching my system python interpreter to 3.2. My current recommendation is to use 'eselect python' to at least temporarily switch your active system python interpreter to 2.7 so that you can successfully emerge Doomsday. You'll probably have to use Python 2.7 in order to use the Snowberry front-end as well.

I'll look at this further to see what else can be done about the matter.
Comment 11 No Name 2013-01-25 20:17:16 UTC
yes ok. but i think the right way would be to explicitly use only the 2.x python with this ebuild. in eselect python i can set defaults for python 2 and python 3. you should change the ebuild to use the python 2 slot binary. or better set the ebuild in such a way that the sintax is compatible with python 3. or better python 2 and 3 at least.
Comment 12 No Name 2013-01-25 20:20:58 UTC
I also think that python 3 is now the default if you new install gentoo. so maybe you should set a info message in he ebuild or block the package if you have set the wrong python version.
Comment 13 Julian Ospald 2013-01-25 22:33:10 UTC
python eclass is in deprecation phase and should not be used any longer

use one of:
distutils-r1 (distutils packages)
python-r1 (non-distutils packages supporting multiple abi)
python-single-r1 (non-distutils packages not supporting multiple abi)
python-any-r1 (mostly for packages that only need python during build-time)

see:
http://www.gentoo.org/proj/en/Python/python-r1/dev-guide.xml
https://wiki.gentoo.org/wiki/Python-r1
https://wiki.gentoo.org/wiki/Python-r1/examples

also eclass manpages:
http://devmanual.gentoo.org/eclass-reference/distutils-r1.eclass/index.html
http://devmanual.gentoo.org/eclass-reference/python-r1.eclass/index.html
http://devmanual.gentoo.org/eclass-reference/python-single-r1.eclass/index.html
http://devmanual.gentoo.org/eclass-reference/python-any-r1.eclass/index.html
Comment 14 Patrick McMunn 2013-01-26 05:33:50 UTC
Created attachment 336868 [details]
games-fps/doomsday-1.9.10.ebuild

This new ebuild along with the accompanying patch should fix the issue. The eclass doesn't really help much, although I did switch to python-single-r1.eclass. There is a variable which can be set called SCRIPT_PYTHON, but the only thing this determines is the path to the python binary in the launch-doomsday script for Snowberry; I set the variable to /usr/bin/python2. There are 4 files in the build system which simply call "python" and therefore use the system default interpreter. The patch simply changes these references to "python2". I also realized that the ebuild was installing two menu entries for Snowberry, so I removed the redundant entry. Thanks to KuriKai in #doomsday for helping me with this.
Comment 15 Patrick McMunn 2013-01-26 05:34:37 UTC
Created attachment 336870 [details]
doomsday-1.9.10-python_build.patch
Comment 16 Julian Ospald 2013-02-06 16:27:23 UTC
I think we should skip this release, it has startup problems and game freezes (after fixing the startup problems)
Comment 17 Julian Ospald 2013-02-06 17:14:58 UTC
Created attachment 338126 [details]
doomsday-9999.ebuild

for those impatient people here is a live ebuild
Comment 18 No Name 2013-02-06 19:50:42 UTC
the game is working fine for me if i only change python 2.x to default before emerging it. after changing back to 3.x the gameplay as stable as the versions before. no freezes on my pc. big thanks!
Comment 19 Julian Ospald 2013-02-06 19:59:42 UTC
(In reply to comment #18)
> the game is working fine for me if i only change python 2.x to default
> before emerging it.

that is no longer needed.
Comment 20 Patrick McMunn 2013-02-22 04:54:47 UTC
You didn't describe the crash that you experienced. If you experienced a bug involving errors like "QEglContext::swapBuffers(): "Bad surface (0x300D)"", that may not be a Doomsday bug (I'm not certain). It might be an issue with QT because there is a similar issue with stellarium (see bug 438848). If that bug is experienced, recompile qt-gui and qt-opengl with the "egl" USE flag disabled.
Comment 21 Mr. Bones. (RETIRED) gentoo-dev 2013-03-10 08:09:50 UTC
Your help is unwelcome.  Further version bump requests from you will result in devrel requests.
Comment 22 Julian Ospald 2013-03-10 15:08:46 UTC
(In reply to comment #20)
> You didn't describe the crash that you experienced. If you experienced a bug
> involving errors like "QEglContext::swapBuffers(): "Bad surface (0x300D)"",
> that may not be a Doomsday bug (I'm not certain). It might be an issue with
> QT because there is a similar issue with stellarium (see bug 438848). If
> that bug is experienced, recompile qt-gui and qt-opengl with the "egl" USE
> flag disabled.

nope, the bug is here
http://sourceforge.net/p/deng/bugs/1105/