Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291933 - games-fps/quake3-urbanterror-4.1 does not find correct autoexec.cfg, runs default quake3, curl error
Summary: games-fps/quake3-urbanterror-4.1 does not find correct autoexec.cfg, runs def...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL: http://www.urbanterror.net/page.php?11
Whiteboard:
Keywords:
Depends on: 203296
Blocks:
  Show dependency tree
 
Reported: 2009-11-05 00:03 UTC by Michael Weber (RETIRED)
Modified: 2011-11-14 04:21 UTC (History)
1 user (show)

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


Attachments
quake3-ut4.diff (quake3-ut4.diff,338 bytes, patch)
2009-11-05 00:05 UTC, Michael Weber (RETIRED)
Details | Diff
stderr from unmodified quake3-ut4 (quake3-ut4.orig.stderr,7.87 KB, text/plain)
2009-11-05 00:06 UTC, Michael Weber (RETIRED)
Details
stderr from modified quake3-ut4 (quake3-ut4.stderr,13.41 KB, text/plain)
2009-11-05 00:06 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2009-11-05 00:03:27 UTC
The /usr/games/bin/quake3-ut4 tries to load the quake mod from the wrong directory /usr/share/games/quake3/UrbanTerror (`pwd`/UrbanTerror) instead of /usr/share/games/quake3/UrbanTerror/q3ut4 (`pwd`/UrbanTerror/q3ut4). 

Btw. as mentioned in http://bugs.gentoo.org/show_bug.cgi?id=269143 UrbanTerror could be run stand alone as /usr/share/games/quake3/UrbanTerror/ioUrbanTerror.x86_64


Reproducible: Always

Steps to Reproduce:
1. run quake3-ut4 from cmdline or graphical menu.

Actual Results:  
startup of default quake3

Expected Results:  
startup of UrbanTerror mod

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r4-pandora.4 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r4-pandora.4-x86_64-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 04 Nov 2009 17:00:21 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mfpmath=sse -mieee-fp -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=amdfam10 -mfpmath=sse -mieee-fp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 4"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://nash.fs.lmu.de/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/gnome /usr/local/portage/layman/sunrise /usr/local/portage/layman/xmw /usr/local/portage/layman/x11"
SYNC="rsync://nash.fs.lmu.de/gentoo-portage/"
USE="3dnow X a52 aac aalib acl acpi alsa amd64 ao apache2 bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdparanoia cdr cgi cli consolekit cracklib crypt ctype cups dbus dga directfb djvu dri dts dv dvb dvd dvdr dvdread encode exif faac faad fbcon ffmpeg fftw flac fontconfig fortran gdbm gif gimp glut gnome gnome-keyring gnutls gphoto2 gpm gs gstreamer gtk hal iconv id3tag ieee1394 imagemagick introspection ipod ipv6 java java6 jbig joystick jpeg jpeg2k lame latex lcms libnotify libsamplerate lm_sensors lzma lzo mad mikmod mmap mmx mng modules mp3 mpeg mpi mplayer mudflap multilib mysql nas nautilus ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pch pcre pdf perl png policykit postgres pppd python qt3 qt4 quicktime raw readline reflection rle samba sdl session smp speex spell spl sqlite sse sse2 ssl subversion svg symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype unicode usb vhosts vim-syntax vorbis wavpack webkit x264 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Michael Weber (RETIRED) gentoo-dev 2009-11-05 00:05:04 UTC
Created attachment 209290 [details, diff]
quake3-ut4.diff
Comment 2 Michael Weber (RETIRED) gentoo-dev 2009-11-05 00:06:23 UTC
Created attachment 209292 [details]
stderr from unmodified quake3-ut4

see line 24: couldn't exec autoexec.cfg
Comment 3 Michael Weber (RETIRED) gentoo-dev 2009-11-05 00:06:43 UTC
Created attachment 209294 [details]
stderr from modified quake3-ut4
Comment 4 Michael Weber (RETIRED) gentoo-dev 2009-11-05 01:42:57 UTC
There is no sound and no maps download /curl error in quake mod execution.
Stand alone mode via /usr/share/games/quake3/UrbanTerror/ioUrbanTerror.x86_64 sould be best.
Comment 5 Michael Weber (RETIRED) gentoo-dev 2009-11-06 14:11:54 UTC
Another point: the precompiled /usr/share/games/quake3/UrbanTerror/ioUrbanTerror.x86_64 is linked against libcurl.so.3 for map download, which is only available as libcurl.so.4 through net-misc/curl-7.19.6. I don't know if the correct version is available, but most reports on the net suggest to give the .4 name through the command line interface (see http://www.google.de/search?hl=en&safe=off&client=firefox-a&rls=org.gentoo%3Aen-US%3Aofficial&hs=yxP&newwindow=1&q=Cl_curllib+UrbanTerror&btnG=Search&aq=f&oq= ).

Maybe an symlink inside the sereach path or system-wide should be installed. I'll try to alter the binary. 
Comment 6 Michael Weber (RETIRED) gentoo-dev 2009-11-06 14:33:30 UTC
(In reply to comment #5)
> Another point: the precompiled
> /usr/share/games/quake3/UrbanTerror/ioUrbanTerror.x86_64 is linked against
> libcurl.so.3 for map download, which is only available as libcurl.so.4 through
> net-misc/curl-7.19.6. I don't know if the correct version is available, but
> most reports on the net suggest to give the .4 name through the command line
> interface (see
> http://www.google.de/search?hl=en&safe=off&client=firefox-a&rls=org.gentoo%3Aen-US%3Aofficial&hs=yxP&newwindow=1&q=Cl_curllib+UrbanTerror&btnG=Search&aq=f&oq=
> ).
> 
> Maybe an symlink inside the sereach path or system-wide should be installed.
> I'll try to alter the binary. 
> 

Following mods do suffice

--- /usr/share/games/quake3/UrbanTerror/q3ut4/autoexec.cfg.orig 2009-07-08 02:29:34.000000000 +0200
+++ /usr/share/games/quake3/UrbanTerror/q3ut4/autoexec.cfg      2009-11-06 15:23:18.000000000 +0100
@@ -2,4 +2,6 @@
 //Lines starting with // are ignored.
 //Example1: exec yourconfig.cfg
 //Example2: set cg_fov "110"
-//Example3: bind x ut_weaptoggle knife
\ No newline at end of file
+//Example3: bind x ut_weaptoggle knife
+seta cl_cURLLib "/usr/lib64/libcurl.so.4"
+

Comment 7 Marco Albanese 2009-12-10 10:22:01 UTC
For me, the solution was:
1) unmerge quake3-bin ( 'cause it's not needed anymore with 4.1)
2) launch /opt/quake3/UrbanTerror/ioUrbanTerror.x86_64

it works like a charm

So, urbanterror-4.1 should not depend on quake3-bin and the launcher should be changed in accord with the executable. I've to fill another bug?
Comment 8 Michael Weber (RETIRED) gentoo-dev 2010-02-18 15:51:30 UTC
Hi to the folks at games@gentoo...,

we could close and forget this, iff http://bugs.gentoo.org/show_bug.cgi?id=203296#c40 hits the tree.

Please?!

   Michael 
Comment 9 Michael Weber (RETIRED) gentoo-dev 2011-11-14 04:21:29 UTC
games-fps/quake3-urbanterror is gone