Spring data directory

Spring data directory

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
osymandias
Posts: 10
Joined: 29 Sep 2008, 13:12

Spring data directory

Post by osymandias »

Building Spring from source under a fakeroot, Spring appears to use the buildbath as a data directory rather than the path it's installed under. Obviously, this may be a fault of the way I'm compiling, but how in general does one set the spring read-only data dir?

The problem:

Code: Select all

Using read-write data directory: /home/nclarke/.spring/
Using read-only  data directory: /var/abs/local/yaourtbuild/spring-svn/pkg/usr/share/spring/
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring data directory

Post by Auswaschbar »

osymandias wrote:Building Spring from source under a fakeroot, Spring appears to use the buildbath as a data directory rather than the path it's installed under. Obviously, this may be a fault of the way I'm compiling, but how in general does one set the spring read-only data dir?

The problem:

Code: Select all

Using read-write data directory: /home/nclarke/.spring/
Using read-only  data directory: /var/abs/local/yaourtbuild/spring-svn/pkg/usr/share/spring/
Its because you used a fakeroot to compile. Compile it as user (somewhere in /home or /tmp), and if you want a fakeinstall, use "make install DESTDIR=/fake/install/directory".
Apart from this, you can manually adjust the SPRING_DATADIR variable in cmake (either gui or commandline).
Its also possible to simply ignore the entry and add additional directories into /etc/spring/datadir or ~/.springrc.
osymandias
Posts: 10
Joined: 29 Sep 2008, 13:12

Re: Spring data directory

Post by osymandias »

Thanks, that's sorted.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Spring data directory

Post by Tobi »

In case you are using the scons buildsystem you can use installprefix argument to scons configure to set the directory where the files are installed and prefix to set the directory where Spring thinks it is being installed.
osymandias
Posts: 10
Joined: 29 Sep 2008, 13:12

Re: Spring data directory

Post by osymandias »

I'm using CMAKE, but thanks anyway. In the end I used:

Code: Select all

cmake -DCMAKE_INSTALL_PREFIX=/usr -DJAVA_INCLUDE_PATH=/opt/java/include -DJAVA_INCLUDE_PATH2=/opt/java/include/linux .
  make || return 1
  make install DESTDIR=$pkgdir
Post Reply

Return to “Help & Bugs”