Bug 60752 - quake2 "entering video menu" crash
Bug#: 60752 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: steve_v@paradise.net.nz
Component: Games
URL: 
Summary: quake2 "entering video menu" crash
Keywords:  
Status Whiteboard: 
Opened: 2004-08-18 02:53 0000
Description:   Opened: 2004-08-18 02:53 0000
quake2-icculus-0.15-r1.ebuild


I have seen many reports of, and experienced a crash when entering the "video options" menu...

quake2 is looking for driver libs in /usr/share/games/quake2-data, but they actualy live in /usr/games/lib/quake2-icculus

shouldn't be too hard to patch for someone who knows what they are doing :-)

strace:

stat64("/usr/share/games/quake2-data/ref_soft.so", 0xbfffea6c) = -1 ENOENT (No such file or directory)
stat64("/usr/share/games/quake2-data/ref_softx.so", 0xbfffea6c) = -1 ENOENT (No such file or directory)
stat64("/usr/share/games/quake2-data/ref_softsdl.so", 0xbfffea6c) = -1 ENOENT (No such file or directory)
stat64("/usr/share/games/quake2-data/ref_glx.so", 0xbfffea6c) = -1 ENOENT (No such file or directory)
stat64("/usr/share/games/quake2-data/ref_sdlgl.so", 0xbfffea6c) = -1 ENOENT (No such file or directory)


Steve.

------- Comment #1 From SpanKY 2004-08-18 15:55:31 0000 -------
awesome, i'll try to fix this soon

------- Comment #2 From Chris Gianelloni (RETIRED) 2004-08-26 06:46:24 0000 -------
*** Bug 61801 has been marked as a duplicate of this bug. ***

------- Comment #3 From Marcos González 2004-08-26 06:53:55 0000 -------
Althoug the video menu fix was duplicate (sorry, my fault), the game386.so
files placing bug is a different bug. Only wanted to note that, in case it
could be overlooked. I wish I helped.

------- Comment #4 From SpanKY 2005-01-03 15:52:01 0000 -------
fixed in 0.16 ... forgot to patch the VID_CheckRefExists() function

------- Comment #5 From Marcos González 2005-01-04 12:51:10 0000 -------
When I try to emerge it, this is what I get:



[...]
/var/tmp/portage/quake2-icculus-0.16/work/quake2-r0.16/src/xatrix/xatrixsrc320.shar:
rogue
 * Applying 0.16-rogue-nan.patch ...

 * Failed Patch: 0.16-rogue-nan.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/quake2-icculus-0.16/temp/0.16-rogue-nan.patch-30948.out


!!! ERROR: games-fps/quake2-icculus-0.16 failed.
!!! Function epatch, Line 410, Exitcode 0
!!! Failed Patch: 0.16-rogue-nan.patch!
!!! If you need support, post the topmost build error, NOT this status message.



This is the content of /var/tmp/portage/quake2-icculus-0.16/temp/0.16-rogue-nan.patch-22453.out:



***** 0.16-rogue-nan.patch *****

================================

PATCH COMMAND:  patch -p0 -g0 < /usr/portage/games-fps/quake2-icculus/files/0.16-rogue-nan.patch

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/rogue/g_local.h.orig	2005-01-03 02:16:03.233329552 -0500
|+++ src/rogue/g_local.h	2005-01-03 02:16:03.244327880 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
================================

PATCH COMMAND:  patch -p1 -g0 < /usr/portage/games-fps/quake2-icculus/files/0.16-rogue-nan.patch

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/rogue/g_local.h.orig	2005-01-03 02:16:03.233329552 -0500
|+++ src/rogue/g_local.h	2005-01-03 02:16:03.244327880 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
================================

PATCH COMMAND:  patch -p2 -g0 < /usr/portage/games-fps/quake2-icculus/files/0.16-rogue-nan.patch

================================
patching file g_local.h
Hunk #1 FAILED at 24.
1 out of 1 hunk FAILED -- saving rejects to file g_local.h.rej
================================

PATCH COMMAND:  patch -p3 -g0 < /usr/portage/games-fps/quake2-icculus/files/0.16-rogue-nan.patch

================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/rogue/g_local.h.orig	2005-01-03 02:16:03.233329552 -0500
|+++ src/rogue/g_local.h	2005-01-03 02:16:03.244327880 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
================================

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/games-fps/quake2-icculus/files/0.16-rogue-nan.patch

================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/rogue/g_local.h.orig	2005-01-03 02:16:03.233329552 -0500
|+++ src/rogue/g_local.h	2005-01-03 02:16:03.244327880 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

------- Comment #6 From Chris Gianelloni (RETIRED) 2005-01-04 13:04:11 0000 -------
File a new bug

------- Comment #7 From Marcos González 2005-01-04 14:06:58 0000 -------
Sorry, I thought only the ebuild had been updated, and so, the failure was
because of the changes.
But now I realize also the program has bumped from 0.15 to 0.16, so it wasn't
mandatorily an ebuid fault. I'll open a new bug. Thank you.