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

Re: swig: srcdir vs. blddir

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-12-16 01:57:15 CET

Greg Hudson <ghudson@MIT.EDU> writes:

> I don't think "make clean" should be deleting files generated in the
> source tree. That would mean a tarball build would break after a "make
> clean" for users who don't have the tools used to create those files.

My build from a working copy deletes generated files. Looking at the
Makefile it appears to depend on RELEASE_MODE, I'm not sure what sets
that.

> "make distclean" shouldn't remove them either, for that matter, since
> they're part of the distributed files. I guess that's what "make
> extraclean" is for.
>
> Regardless, two parallel builds in separate directories won't be
> independent if you start from the checked-out sources. But they will be
> if you start from the distributed tarball sources; that's good enough
> for me.

I don't build the bindings very often so I'm not really bothered--but
the old system was better :)

A more annoying problem is that the 'make -j4 swig-py' parallel build
is broken, it sometimes fails with

/usr/local/swig-1.3.24/bin/swig -I/home/pm/sw/subversion/obj/../svn/subversion/include -I/home/pm/sw/subversion/obj/../svn/subversion/bindings/swig -I/home/pm/sw/subversion/obj/../svn/subversion/bindings/swig/include -I/home/pm/sw/subversion/obj/../svn/subversion/bindings/swig/proxy -I/home/pm/sw/subversion/obj/subversion/bindings/swig/proxy -I/usr/local/apache2/include -I/usr/local/apache2/include -python -classic -w451 -w305 -o ../svn/subversion/bindings/swig/python/svn_client.c ../svn/subversion/bindings/swig/svn_client.i
Traceback (most recent call last):
  File "build/generator/swig/external_runtime.py", line 107, in ?
    gen.write()
  File "build/generator/swig/external_runtime.py", line 99, in write
    self.write_long_long_fix()
  File "build/generator/swig/external_runtime.py", line 82, in write_long_long_fix
    self.checkout("python","python.swg")
  File "/home/pm/sw/subversion/svn/build/generator/swig/__init__.py", line 56, in checkout
    shutil.copy("%s/%s/%s" % (self.swig_libdir, dir, file), out)
  File "/usr/lib/python2.3/shutil.py", line 73, in copy
    copymode(src, dst)
  File "/usr/lib/python2.3/shutil.py", line 52, in copymode
    os.chmod(dst, mode)
OSError: [Errno 2] No such file or directory: 'subversion/bindings/swig/proxy/python.swg'

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 16 01:58:16 2005

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.