python swig svn bindings

Status
Not open for further replies.

JTM

Ars Praetorian
401
Hi,

I am trying to run ViewVC

http://www.viewvc.org

on Mac OS X 10.9. To do so, I need python swig bindings for svn. I've tried building them using the subversion sources found here:

http://www.apple.com/opensource/

using the makefile defined here:

http://stackoverflow.com/questions/...indings-needed-by-hg-convert-on-mac-os-x-10-8

but the Makefile complains of not being able to find libsvn dynamic libraries. The Apple open source website also contains code for those(it appears), and mentions they are part of Mac OS X and XCode. Should I be able to download those dynamic libraries through XCode or would I need to build those libraries as well?

Is there some other way to get python swig bindings for svn, short of using something like MacPorts?


Thanks


Jason Mazzotta
 

JTM

Ars Praetorian
401
I've managed to get a bit further. I ran configure as follows:

./configure --prefix=/usr --with-swig --enable-swig-bindings=python

Make works. But then, when I run:

make swig-py

I get the following error from libtool

cd subversion/bindings/swig/python/libsvn_swig_py && /bin/sh /Users/fred/sandbox/subversion-52/subversion/libtool --tag=CC --silent --mode=link gcc -g -O2 -rpath -bundle -undefined dynamic_lookup -Wl,-F. -o libsvn_swig_py-1.la swigutil_py.lo ../../../../../subversion/libsvn_client/libsvn_client-1.la ../../../../../subversion/libsvn_wc/libsvn_wc-1.la ../../../../../subversion/libsvn_ra/libsvn_ra-1.la ../../../../../subversion/libsvn_delta/libsvn_delta-1.la ../../../../../subversion/libsvn_subr/libsvn_subr-1.la -L/usr/lib -R/usr/lib -laprutil-1 -lldap -llber -llber -lexpat -liconv -lsqlite3 -lldap -llber -llber -L/usr/lib -R/usr/lib -lapr-1 -lpthread -framework Security -framework CoreFoundation -framework CoreServices
libtool: link: only absolute run-paths are allowed
make: *** [subversion/bindings/swig/python/libsvn_swig_py/libsvn_swig_py-1.la] Error 1

I think this is because -rpath doesn't have anything after it. I looked at the swig-py target in the Makefile and found the following:

swig-py: autogen-swig-py copy-swig-py

I can't find the target autogen-swig-py in the Makefile. Can anyone tell me where I can find this target defined? Is there somewhere else I should look to find why -rpath is empty above?
 

JTM

Ars Praetorian
401
I actually managed to get the python swig svn bindings working.

I followed the INSTALL instructions in the swig subdirectory in the subversion source code

http://svn.apache.org/repos/asf/subvers ... ig/INSTALL

Apparently, you really do need a swig version between 1.3.24 and 1.3.31.

When making subversion, I had to define RPATHVERS in the Makefile. I found the answer for that in the subversion Makefile on Apple's open source website:

https://www.opensource.apple.com/source ... 5/Makefile

Finally, I had to copy libsvn_swig_py-1.0.0.0.dylib into /usr/local/lib

Now, viewVC works.
 
Status
Not open for further replies.