[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Fix build errors in bindings with SWIG 3.0.4

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 26 Jan 2015 09:28:04 +0000

Andreas Stieger <andreas.stieger_at_gmx.de> writes:

> Index: subversion/bindings/swig/include/proxy.swg
> ===================================================================
> --- subversion/bindings/swig/include/proxy.swg (revision 1654697)
> +++ subversion/bindings/swig/include/proxy.swg (working copy)
> @@ -83,13 +83,14 @@
>
> value = _swig_getattr(self, self.__class__, name)
>
> - # If we got back a different object than we have, we need to copy all our
> - # metadata into it, so that it looks identical
> + /* If we got back a different object than we have, we need to copy all our
> + * metadata into it, so that it looks identical
> + */
> members = self.__dict__.get("_members")

That file breaks for me:

$ make check-swig-py
if [ "LD_LIBRARY_PATH" = "DYLD_LIBRARY_PATH" ]; then for d in /home/pm/sw/subversion/obj/subversion/bindings/swig/python/libsvn_swig_py /home/pm/sw/subversion/obj/subversion/bindings/swig/python/../../../libsvn_*; do if [ -n "$DYLD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$d/.libs"; else LD_LIBRARY_PATH="$d/.libs"; fi; done; export LD_LIBRARY_PATH; fi; \
        cd /home/pm/sw/subversion/obj/subversion/bindings/swig/python; \
          /usr/bin/python /home/pm/sw/subversion/obj/../src/subversion/bindings/swig/python/tests/run_all.py
Traceback (most recent call last):
  File "/home/pm/sw/subversion/obj/../src/subversion/bindings/swig/python/tests/run_all.py", line 22, in <module>
    import mergeinfo, core, client, delta, checksum, pool, ra, wc, repository, \
  File "/home/pm/sw/subversion/src/subversion/bindings/swig/python/tests/mergeinfo.py", line 22, in <module>
    from svn import core, repos, fs
  File "/home/pm/sw/subversion/src/subversion/bindings/swig/python/tests/../svn/core.py", line 26, in <module>
    from libsvn.core import *
  File "/home/pm/sw/subversion/obj/subversion/bindings/swig/python/libsvn/core.py", line 491
    /* If we got back a different object than we have, we need to copy all our
    ^
SyntaxError: invalid syntax
make: *** [check-swig-py] Error 1

I'm using swig 2.0.7-3 and python 2.7.3.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2015-01-26 10:30:48 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.