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

Re: [PATCH] Use swig binary from --with-swig configure switch

From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2002-11-07 08:14:11 CET

Daniel Rall <dlr@finemaltcoding.com> writes:

> Index: Makefile.in
> ===================================================================
> --- Makefile.in (revision 3678)
> +++ Makefile.in (working copy)
> @@ -65,6 +65,7 @@
> APACHE_TARGET = @APACHE_TARGET@
> APACHE_LIBEXECDIR = $(DESTDIR)@APACHE_LIBEXECDIR@
>
> +SWIG = @SWIG@
> SWIG_PY_INCLUDES = @SWIG_PY_INCLUDES@
>
> SVN_APR_INCLUDES = @SVN_APR_INCLUDES@
> @@ -266,6 +267,7 @@
> -I$(abs_srcdir)/subversion/include $(SVN_APR_INCLUDES) \
> -S$(SWIG_SRC_DIR) \
> -L$(DESTDIR)$(prefix)/lib -L$(SVN_APR_PREFIX)/lib \
> + -s$(SWIG) \

This isn't quite right -- when I comment out the SWIG make variable,
Python's getopt module becomes irrate (perhaps because no option was
passed for -s, which requires a value). Quoting the value for -s (and
thus passing the empty string) doesn't help.

dlr@despot:svn$ make swig-py-ext
(cd /home/dlr/src/svn/subversion/bindings/swig/python; \
         /usr/bin/python2 setup.py \
            -I/home/dlr/src/svn/subversion/bindings/swig \
            -I/home/dlr/src/svn/subversion/include -I/home/dlr/src/apache.org/httpd-2.0/srclib/apr/include -I/home/dlr/src/apache.org/apr/include \
            -S/home/dlr/src/svn/subversion/bindings/swig \
            -L/usr/local/subversion/lib -L/usr/local/apr/lib \
            -I'/usr/local/swig/lib/swig1.3' \
            -I'/usr/local/swig/lib/swig1.3/python' \
            -I'/usr/local/swig/lib/swig1.3/java' \
            -s"" \
            build --build-base=/home/dlr/src/svn/subversion/bindings/swig/python/build)
Traceback (most recent call last):
  File "setup.py", line 58, in ?
    ["prefix=", "install-dir=", "help"])
  File "/usr/lib/python2.2/getopt.py", line 72, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.2/getopt.py", line 86, in do_longs
    has_arg, opt = long_has_args(opt, longopts)
  File "/usr/lib/python2.2/getopt.py", line 103, in long_has_args
    raise GetoptError('option --%s not recognized' % opt, opt)
getopt.GetoptError: option --build-base not recognized
make: *** [swig-py-ext] Error 1

> In any case, in my environment I'm missing a -I flag,
> $(SWIG_DIR)/lib/swig1.3. When I check in the Java stuff, I'll also be
> missing $(SWIG_DIR)/lib/swig1.3/java.

I also need $(SWIG_DIR)/lib/swig1.3/python. Worth noting that I made
up the SWIG_DIR token -- it's just an example.

-- 
Daniel Rall <dlr@finemaltcoding.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 7 08:14:39 2002

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.