Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150865 - games-fps/qudos ebuild improvements
Summary: games-fps/qudos ebuild improvements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://qudos.quakedev.com/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-10-11 01:55 UTC by Paul Bredbury
Modified: 2010-04-11 18:58 UTC (History)
4 users (show)

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


Attachments
qudos-0.40.1.ebuild (qudos-0.40.1.ebuild,4.95 KB, text/plain)
2006-10-11 01:56 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.81 KB, text/plain)
2006-10-11 01:57 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,5.07 KB, text/plain)
2006-11-05 12:05 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.78 KB, text/plain)
2006-11-05 13:14 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.80 KB, text/plain)
2007-01-23 23:38 UTC, Kyle Hunter
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.80 KB, text/plain)
2007-03-18 20:47 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.83 KB, text/plain)
2007-03-31 13:05 UTC, Ian Perry
Details
qudos-0.40.1.ebuild (qudos-0.40.1.ebuild,5.06 KB, text/plain)
2007-03-31 13:43 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.85 KB, text/plain)
2007-03-31 13:44 UTC, Paul Bredbury
Details
qudos-0.40.1.ebuild (qudos-0.40.1.ebuild,5.01 KB, text/plain)
2007-05-01 22:34 UTC, Paul Bredbury
Details
qudos-9999.ebuild (qudos-9999.ebuild,4.80 KB, text/plain)
2007-05-01 22:35 UTC, Paul Bredbury
Details
Fixes compilation with jpeg-8 (qudos-jpeg8.patch,725 bytes, patch)
2010-02-15 16:05 UTC, Paul Bredbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bredbury 2006-10-11 01:55:51 UTC
Hi, here are some improvements to the qudos ebuilds:

* Added ~amd64 from bug #140726

* Added "optimize-cflags" USE flag, to use the CFLAGS in the Makefile.

* Tidied (R)DEPEND - the game can run as a server without requiring OpenGL.

* Fixed Makefile to work with the "debug" USE flag.

* Better integration with the demo data - adds "+set game demo" on the command-line, rather than requiring the "symlink" USE flag in games-fps/quake2-demodata.

* OpenGL is favoured over SDL, because it is stable when switching the screen resolution.
Comment 1 Paul Bredbury 2006-10-11 01:56:58 UTC
Created attachment 99350 [details]
qudos-0.40.1.ebuild
Comment 2 Paul Bredbury 2006-10-11 01:57:16 UTC
Created attachment 99351 [details]
qudos-9999.ebuild
Comment 3 Paul Bredbury 2006-11-05 12:05:28 UTC
Created attachment 101289 [details]
qudos-9999.ebuild

Changed xmms to audacious, and now filter out -fomit-frame-pointer to fix crashes when changing screen resolution.
Comment 4 Paul Bredbury 2006-11-05 13:14:38 UTC
Created attachment 101301 [details]
qudos-9999.ebuild

Removed unnecessary sed for audacious. Added back ~amd64.
Comment 5 Kyle Hunter 2007-01-23 23:38:40 UTC
Created attachment 107954 [details]
qudos-9999.ebuild

BUILD_GAME=YES needed to be added or else it would not build the game!..  (If anyone wants to build it without the game, you will need to make it optional, but I doubt anyone want that..)
Comment 6 Paul Bredbury 2007-03-18 20:47:38 UTC
Created attachment 113712 [details]
qudos-9999.ebuild

Updated URL for viewing the subversion code.
Comment 7 Ian Perry 2007-03-31 13:05:48 UTC
Created attachment 115034 [details]
qudos-9999.ebuild

Will not build without x11-proto/xf86vidmodeproto installed (build-time dependency only).
Comment 8 Paul Bredbury 2007-03-31 13:43:40 UTC
Created attachment 115037 [details]
qudos-0.40.1.ebuild

Fixes DEPEND (properly) for xf86vidmodeproto.
Comment 9 Paul Bredbury 2007-03-31 13:44:22 UTC
Created attachment 115039 [details]
qudos-9999.ebuild

Fixes DEPEND (properly) for xf86vidmodeproto.
Comment 10 Paul Bredbury 2007-05-01 22:34:59 UTC
Created attachment 117902 [details]
qudos-0.40.1.ebuild

Uses $(games_get_libdir)
Comment 11 Paul Bredbury 2007-05-01 22:35:59 UTC
Created attachment 117904 [details]
qudos-9999.ebuild

Uses $(games_get_libdir)
Comment 12 Paul Bredbury 2008-06-05 17:32:17 UTC
particles/fly_{3,4}.png are missing from qudos.pk3 in qudos-9999, which is why the buzzing flies on dead bodies appear as black squares in some frames. Easy solution is to unzip qudos.pk3 (rename it to .zip first, so unzip is happy) and copy fly_1.png to fly_3.png, and fly_2.png to fly_4.png

fly_{3,4}.png can go in /usr/yourlibdir/gamessubdirifyouuseit/qudos/baseq2/particles/
Comment 13 Tango 2010-02-15 14:24:12 UTC
After a recent upgrade of media-libs/jpeg qudos won't build.  Fails with this error

x86_64-pc-linux-gnu-gcc -c -march=k8 -O3 -pipe -ggdb -I/usr/include -I/usr/X11R6/include -DGAME_NAME='"game.so"' -DQUDOS_VERSION='"QuDos 0.40.2"' -DOP_SYSTEM='"Linux 2.6.27-gentoo-r8"' -DCC_VERSION='"4.3.4"' -DC_ONLY -Wall  -ffloat-store -DNDEBUG -DWITH_ACEBOT -DDATADIR='"/usr/share/games/quake2"' -DGAME_MOD -DLIBDIR='"/usr/games/lib64/qudos"' -DQMAX -DRETEX -fPIC -DREF_GL -o QuDos-build/ref_glx/gl_image.o src/ref_gl/gl_image.c
src/ref_gl/gl_image.c:915: error: conflicting types for ‘jpeg_mem_src’
/usr/include/jpeglib.h:959: error: previous declaration of ‘jpeg_mem_src’ was here
make: *** [QuDos-build/ref_glx/gl_image.o] Error 1
 [31;01m*[0m ERROR: games-fps/qudos-9999 failed:
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  54:  Called src_compile
 [31;01m*[0m   environment, line 3524:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       emake -j1 BUILD_QUAKE2="${client}" BUILD_DEDICATED=$(yesno dedicated) BUILD_GLX=${build_opengl} BUILD_SDLGL=${build_sdl} BUILD_SDL_SND=${build_sdl} BUILD_ALSA_SND=$(yesno alsa) BUILD_OSS_SND=$(yesno oss) WITH_AUDACIOUS=$(yesno audacious) WITH_XMMS=NO WITH_DGA_MOUSE=$(yesno dga) WITH_JOYSTICK=$(yesno joystick) DATADIR="${dir}" LOCALBASE=/usr LIBDIR="${libdir}" WITH_QMAX=$(yesno qmax) BUILD_3ZB2=$(yesno mods) BUILD_CTF=$(yesno mods) BUILD_JABOT=$(yesno mods) BUILD_ROGUE=$(yesno mods) BUILD_XATRIX=$(yesno mods) BUILD_ZAERO=$(yesno mods) WITH_BOTS=$(yesno mods) HAVE_IPV6=$(yesno ipv6) OPTIMIZE=$(yesno optimize-cflags) CC="$(tc-getCC)" WITH_DATADIR=YES WITH_LIBDIR=YES BUILD_DEBUG_DIR=release BUILD_RELEASE_DIR=release BUILD_GAME=YES STRIP=NO TYPE="${type}" || die "emake failed"

Any ideas on how to work around this problem?
Comment 14 Paul Bredbury 2010-02-15 16:05:46 UTC
Created attachment 219803 [details, diff]
Fixes compilation with jpeg-8

This simple patch seems to work.
Comment 15 Tango 2010-02-16 15:01:12 UTC
(In reply to comment #14)
> Created an attachment (id=219803) [details]
> Fixes compilation with jpeg-8
> 
> This simple patch seems to work. 
> 

It does in fact solve the problem on my system.  Thanks
Comment 16 Brandon Captain 2010-04-07 22:34:22 UTC
the line number is different now in the svn build. it is more elegant to just put this at the end of src_unpack:

sed -i 's/jpeg_mem_src/qudos_jpeg_mem_src/g' src/ref_gl/gl_image.c
Comment 17 Brandon Captain 2010-04-07 22:41:45 UTC
qudos-9999 fails:
In file included from src/unix/audacious_player.c:27:
src/unix/audacious_player.h:21:32: error: audacious/beepctrl.h: No such file or directory
In file included from src/unix/audacious_player.c:42:
src/unix/audacious_funcs.h:25: error: expected ')' before 'session'

qudos-0.40.1 fails:
In file included from src/client/snd_xmms.c:30:
src/client/xmms.h:19:27: error: xmms/xmmsctrl.h: No such file or directory
make: *** [QuDos-build/QuDos/snd_xmms.o] Error 1
Comment 18 Brandon Captain 2010-04-07 22:52:14 UTC
I got passed my most recent 0.40.1 problem by adding this to the end of src_unpack

sed -i 's/#include <xmms\/xmmsctrl.h>//g' src/client/xmms.h

and then it compiles wonderfully. apparently the src didn't need that header.
Comment 19 Brandon Captain 2010-04-07 22:59:26 UTC
... except now that I run the game, it begs for xmms libs:

Could not open 'libxmms.so'
Please install 'libxmms' and 'libxmms-devel' packages.
Loading gamei386.so

Game dir: /home/caibbor/.quake2/baseq2

Game dir: /home/caibbor/.quake2/baseq2

Game dir: /usr/share/games/quake2/baseq2

Game dir: /usr/games/lib/qudos/baseq2

==== InitGame ====

------- Server Initialization -------
0 entities inhibited
0 teams with 0 entities
-------------------------------------

QuDos Initialized in: 1.87s

Received signal 11, exiting...
Comment 20 Brandon Captain 2010-04-09 00:07:02 UTC
as for qudos-9999:

it relies on libaudacious5, which is an old version that you cant get from portage (and probably wouldn't want to anyway). so the "audacious" use flag on this ebuild should not be used until they update the source.

using "alsa" instead results in no game sound, but at least it compiles.

(on a separate note, I was able to successfully compile qudos-9999 with the audacious use flag by fetching files from the web and got qudos to run, however without sound.)

on another note, when I go to the Options screen in qudos, the game crashed until I `cd /dev ; ln -s dsp2 dsp`, still even afterward I have no sound.
Comment 21 Paul Bredbury 2010-04-09 05:00:35 UTC
(In reply to comment #20)
> I have no sound.

Cannot mix ALSA and OSS - it bypasses ALSA's dmix. I was hoping that everyone would know this, after I've ranted about it several times:

http://bbs.archlinux.org/viewtopic.php?pid=729613#p729613

Qudos is a dead project, unfortunately. As an alternative, you gamers could try yamagi:

http://www.yamagi.org/quake2/
http://www.happypenguin.org/show?Yamagi%20Quake%20II
http://aur.archlinux.org/packages.php?ID=27683
Comment 22 Brandon Captain 2010-04-11 18:58:18 UTC
(In reply to comment #21)
> Cannot mix ALSA and OSS - it bypasses ALSA's dmix. I was hoping that everyone
> would know this, after I've ranted about it several times:
> 
> http://bbs.archlinux.org/viewtopic.php?pid=729613#p729613

in an Arch Linux forum? Sorry, I don't run Arch Linux :-)

moreover, the only contact I get with the gento ocommunity is pertty much on these few games ebuilds bugs.