Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144100 - Build error in ufo2000-0.7.1062
Summary: Build error in ufo2000-0.7.1062
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-16 04:09 UTC by Alexander Stein
Modified: 2006-11-06 19:55 UTC (History)
0 users

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


Attachments
updated ebuild (ufo2000-0.7.1062.ebuild,2.36 KB, text/plain)
2006-08-16 10:48 UTC, Alexander Stein
Details
patch for string issue (ufo2000-0.7.1062-svnstring.patch,495 bytes, patch)
2006-08-16 10:48 UTC, Alexander Stein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Stein 2006-08-16 04:09:50 UTC
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.
Comment 1 Siarhei Siamashka 2006-08-16 09:24:20 UTC
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.
Comment 2 Alexander Stein 2006-08-16 10:47:30 UTC
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).
Comment 3 Alexander Stein 2006-08-16 10:48:26 UTC
Created attachment 94406 [details]
updated ebuild
Comment 4 Alexander Stein 2006-08-16 10:48:51 UTC
Created attachment 94407 [details, diff]
patch for string issue
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2006-11-06 19:55:40 UTC
Fixed, thanks.