Bug 144100 - Build error in ufo2000-0.7.1062
|
Bug#:
144100
|
Product: Gentoo Linux
|
Version: 2006.0
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: alexander.stein@informatik.tu-chemnitz.de
|
|
Component: Games
|
|
|
URL:
|
|
Summary: Build error in ufo2000-0.7.1062
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-08-16 04:09 0000
|
I get an error in the build process, at least (I suppose) on systems where
LANGUAGE is set to German.
When make starts, i get the following error:
g++ -MMD -funsigned-char -Wall -Wno-deprecated-declarations -I src/lua -I
src/luasqlite3 -DDEBUGMODE -DUFO_SVNVERSION=\"exportiert \" -O2 -pipe
-I/usr/include/freetype2 -DHAVE_FREETYPE -DGLYPH_TARGET=GLYPH_TARGET_ALLEGRO
-DGK_NO_LEGACY -DHAVE_DUMBOGG -DHAVE_PNG -DLINUX -I/usr/include -c
src/bullet.cpp -o obj/bullet.o
g++: ": Datei oder Verzeichnis nicht gefunden
Note the space after exportiert!
If I run the make manually by typing "LANGUAGE=C make" the output is:
g++ -MMD -funsigned-char -Wall -Wno-deprecated-declarations -I src/lua -I
src/luasqlite3 -DDEBUGMODE -DUFO_SVNVERSION=\"exported\" -O2 -pipe
-I/usr/include/freetype2 -DHAVE_FREETYPE -DGLYPH_TARGET=GLYPH_TARGET_ALLEGRO
-DGK_NO_LEGACY -DHAVE_DUMBOGG -DHAVE_PNG -DLINUX -I/usr/include -c
src/bullet.cpp -o obj/bullet.o
Without any error (note there is no space after exported). After digging the
makefile I found, that the error is in this line:
UFO_SVNVERSION := ${shell svnversion .}
But I don't know, what it does and which causes this (translation?) error.
Maybe somebody can dig into this.
This is done in order to get exact revision number when building the game from
SVN working copy. It is unexpected inconvenience that 'exported' is not a
constant identifier but an internationalized string which contains space
character for German and break building process. Looks like the best solution
is to sed 'UFO_SVNVERSION := ${shell svnversion .}' line from ebuild to
explicitly define it to 'exported' or empty string or probably even better to
'0.7.1062-gentoo'. This version number identifier will be shown in the top left
corner in the main menu screen in the game and also reported to the server when
connecting for statistics purpuses. See http://ufo2000.xcomufo.com:2000 client
version information in the table.
Ah, I just didn't know that svnversion is a command itself.
I build a patch to fix the string problem. I edited the ebuild for the patch
and added RESTRICT="test" because I get link error against allegro (which I
have installed).