Page 1 of 1
Spring data directory
Posted: 29 Sep 2008, 14:43
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/
Re: Spring data directory
Posted: 29 Sep 2008, 14:55
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.
Re: Spring data directory
Posted: 29 Sep 2008, 16:22
by osymandias
Thanks, that's sorted.
Re: Spring data directory
Posted: 29 Sep 2008, 16:23
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.
Re: Spring data directory
Posted: 29 Sep 2008, 16:33
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