Debian Packages

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
deja_vu
On Lightcycle Grid
Posts: 11
Joined: Sat May 14, 2005 9:28 pm
Contact:

Debian Packages

Post by deja_vu »

Finally i was able to build some .debs, for Sarge and Sid.(Haven't tried the -server packages yet)

Had to make some changes to the debian/ files from the armagetronad_build module...

Missing build dependency:

Code: Select all

$ diff armagetronad_build/debian/control armagetronad/debian/control 
8c8
<  libsdl1.2-dev (>= 1.2.2), autotools-dev
---
>  libsdl1.2-dev (>= 1.2.2), autotools-dev, libxml2-dev
2 config files weren't installed:

Code: Select all

$ diff armagetronad_build/debian/rules armagetronad/debian/rules 
98a99,100
>       $(INSTALL) ../armagetronad/config/master.srv $(common)/etc/armagetronad
>       $(INSTALL) ../armagetronad/client/config/*.cfg $(common)/etc/armagetronad
P.S.: When starting the game, I get the following:
Warning in void FindConfigurationPath(const char*) in ../../../armagetronad/src/tools/tDirectories.cpp:1141 :
Could not determine path to configuration files. Using defaults or command line arguments.
Now in scr/tools/tDirectories.cpp, line 1139

Code: Select all

 // if ( TestConfigurationPath1( "/etc/" PROGNAME) ) return;
is commented out, so it can't find the files in /etc/armagetronad ...
What is the reason for that? :roll:
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

I don't know a thing about the debian build, sorry, but the commented-out line in tDirectories is not required when the game is installed with "make install" (that all build systems are strongly encouraged to use now, I don't know whether debian has been updated): the two line before that should find the configuration files. "make install" only installs symlinks in /etc, the real configuration files reside in ${prefix}/etc/games/armagetronad, and that's where

Code: Select all

if ( FindConfigurationPath2( executable ) ) return;
is looking.
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

This afternoon I'll fix the dependency and config files problems in the control and rules files. Thanks!

A bit strange that it's not working. I have tested the scripts buildind debs and installing them in my ubuntu linux and it worked good. I'll try to mount a clean chroot and install over it.
Post Reply