2008/06/09

WMU-6500FS - Subversion 1.4.6



Configured with python and perl language bindings.



Build results: [binary] [files list]
Info sources: [Installing svn - quick guide] [svn with apache]

Here you can find the following info:
One thing you do need, though, is SSL capability. So you must use the --with-ssl option to configure and configure must find the Openssl library installed. If you don't need a language other than English, you can simplify things a little more with the --disable-nls option.
Without --disable-nls svn binary had locales related problems (undefined __ctype_* symbols)
dev# wget http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.gz
dev# tar xvzf subversion-deps-1.4.6.tar.gz
dev# wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
dev# tar xvzf subversion-1.4.6.tar.gz
dev# cd subversion-1.4.6
dev# ./configure --prefix=/mnt/C/sys --enable-shared --without-neon 
--with-swig --with-ssl --disable-nls --with-apxs=/mnt/C/sys/apache2/bin/apxs 
--with-apr=/mnt/C/sys/apache2 --with-apr-util=/mnt/C/sys/apache2 
--with-python=/mnt/C/sys/bin/python2.5 --with-perl=/mnt/C/sys/lib/perl5/5.8.8 --enable-maintainer-mode
dev# make
Generate and build swig python bindings
dev# make swig-py
Libtool error: unrecognized option '-DLINUX=2'
=> used swig version 1.3.27 instead of 1.3.29, rebuilt both swig and svn and problem was fixed.
Libtool error: command i386-linux-gcc not found
=> following hack helped to solve it
dev# ln -s /usr/bin/i386-linux-uclibc-gcc i386-linux-gcc
Generate and build swig perl bindings
dev# make swig-pl
Install
dev# make install
dev# make install-swig-py
dev# make install-swig-pl
Make sure that whatever directory the bindings got installed is accessible. You can use PYTHONPATH variable or the following approach:
dev# echo /mnt/C/sys/lib/svn-python > /mnt/C/sys/lib/python2.5/site-packages/subversion.pth
Test installation
You can try subversion tests (but for me it did not succeed completely and I have not solved it yet):
dev# make check-swig-py
dev# make check-swig-pl
At least following should succeed:
dev# python -c "from svn import client"
dev# cd tools/examples
dev# python svnlook.py <some-svn-repository>
Hack for the deployment (in order to be included in generated tarball) - without it some files are older and do not get to the resulting package:
dev# find /mnt/C/sys/lib/perl5/ -path *SVN* -type f -exec touch {} \;

No comments: