Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31375 - Load game broken in games-fps/quakeforge 0.5.4
Summary: Load game broken in games-fps/quakeforge 0.5.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Games
URL: http://zuul.quakeforge.net/list-archi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-17 13:42 UTC by Gavin Baker
Modified: 2003-10-28 15:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Baker 2003-10-17 13:42:09 UTC
Saving a game works fine.
Trying to load a games gives "Fatal Error: First token isn't a brace" then
shutsdown.

It's apparently fixed in cvs, and seems trivial. Can you patch 0.5.4 with this fix?

Reproducible: Always
Steps to Reproduce:
1. Try to Load a game

Actual Results:  
shutdown

Expected Results:  
Continue shooting the hell outa evil monsters.

none needed
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-10-17 16:45:40 UTC
Be sure to mention the name of the package in your bug reports. ;-)
Comment 2 Gavin Baker 2003-10-18 07:15:40 UTC
oops :)

I thought bugzilla would just know!
Comment 3 SpanKY gentoo-dev 2003-10-27 15:35:14 UTC
`emerge sync` in a bit and re-emerge quakeforge ... if you see a msg about
patching with a com-parse patch, then you have the right version ...

test it to make sure it fixes the bug then i'll ver bump the ebuild ;)
Comment 4 Gavin Baker 2003-10-28 15:19:12 UTC
Calculating dependencies ...done!
>>> emerge (1 of 1) games-fps/quakeforge-0.5.4 to /
>>> md5 src_uri ;-) quakeforge-0.5.4.tar.bz2
>>> Unpacking source...
>>> Unpacking quakeforge-0.5.4.tar.bz2 to /var/tmp/portage/quakeforge-0.5.4/work
 * Applying 0.5.4-com-parse.patch...
 
 * Failed Patch: 0.5.4-com-parse.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/quakeforge-0.5.4/temp/0.5.4-com-parse.patch-23995.out
 
 
!!! ERROR: games-fps/quakeforge-0.5.4 failed.
!!! Function epatch, Line 322, Exitcode 0
!!! Failed Patch: 0.5.4-com-parse.patch!


cat /var/tmp/portage/quakeforge-0.5.4/temp/0.5.4-com-parse.patch-23995.out
***** 0.5.4-com-parse.patch *****
 
=================================
 
PATCH COMMAND:  patch -g0 -p0 < /usr/portage/games-fps/quakeforge/files/0.5.4-com-parse.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:
--------------------------
|--- quakeforge-0.5.4/libs/util/idparse.c       2003-05-26 15:14:18.000000000
-0400
|+++ quakeforge/libs/util/idparse.c     2003-07-27 18:00:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=================================
 
PATCH COMMAND:  patch -g0 -p1 < /usr/portage/games-fps/quakeforge/files/0.5.4-com-parse.patch
 
=================================
patching file libs/util/idparse.c
Hunk #1 FAILED at 33.
1 out of 2 hunks FAILED -- saving rejects to file libs/util/idparse.c.rej
=================================
 
PATCH COMMAND:  patch -g0 -p2 < /usr/portage/games-fps/quakeforge/files/0.5.4-com-parse.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:
--------------------------
|--- quakeforge-0.5.4/libs/util/idparse.c       2003-05-26 15:14:18.000000000
-0400
|+++ quakeforge/libs/util/idparse.c     2003-07-27 18:00:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=================================
 
PATCH COMMAND:  patch -g0 -p3 < /usr/portage/games-fps/quakeforge/files/0.5.4-com-parse.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:
--------------------------
|--- quakeforge-0.5.4/libs/util/idparse.c       2003-05-26 15:14:18.000000000
-0400
|+++ quakeforge/libs/util/idparse.c     2003-07-27 18:00:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=================================
 
PATCH COMMAND:  patch -g0 -p4 < /usr/portage/games-fps/quakeforge/files/0.5.4-com-parse.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:
--------------------------
|--- quakeforge-0.5.4/libs/util/idparse.c       2003-05-26 15:14:18.000000000
-0400
|+++ quakeforge/libs/util/idparse.c     2003-07-27 18:00:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored


ps, should the following two lines be in the patch for libs/util/idparse.c
?

-        "$Id: 0.5.4-com-parse.patch,v 1.1 2003/10/27 23:34:42 vapier Exp
$";
+        "$Id: 0.5.4-com-parse.patch,v 1.1 2003/10/27 23:34:42 vapier Exp
$";

patching manually gives: Hunk #1 FAILED at 33 and gives the following .rej

cat libs/util/idparse.c.rej
***************
*** 33,39 ****
  #endif
   
  static __attribute__ ((unused)) const char rcsid[] =
-         "$Id: 0.5.4-com-parse.patch,v 1.1 2003/10/27 23:34:42 vapier Exp
$";
   
  #include <ctype.h>
  #include <stdlib.h>
--- 33,39 ----
  #endif
   
  static __attribute__ ((unused)) const char rcsid[] =
+         "$Id: 0.5.4-com-parse.patch,v 1.1 2003/10/27 23:34:42 vapier Exp
$";
   
  #include <ctype.h>
  #include <stdlib.h>


but the important bit patches ok.
Comment 5 SpanKY gentoo-dev 2003-10-28 15:24:32 UTC
fixed in portage ... stupid cvs headers
Comment 6 Gavin Baker 2003-10-28 15:32:53 UTC
Removing the first hunk of the patch fixes the epatch problem, and, more
importantly, fixes loading games! Thanks :)

working 0.5.4-com-parse.patch below

--- quakeforge-0.5.4/libs/util/idparse.c        2003-05-26 15:14:18.000000000
-0400
+++ quakeforge/libs/util/idparse.c      2003-07-27 18:00:25.000000000 -0400
@@ -107,8 +107,11 @@
 skipwhite:
        while (isspace ((byte) *data))
                data++;
-       if (!*data)
+       if (!*data) {
+               dstring_clearstr (_com_token);
+               com_token = _com_token->str;
                return 0;
+       }
        if (data[0] == '/' && data[1] == '/') {
                while (*data && *data != '\n')
                        data++;

Comment 7 SpanKY gentoo-dev 2003-10-28 15:36:03 UTC
sounds good :)