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

Fix make -j for SWIG bindings (was: swig: srcdir vs. blddir)

From: David James <james82_at_gmail.com>
Date: 2005-12-17 07:02:18 CET

On 12/15/05, Philip Martin <philip@codematters.co.uk> wrote:
> 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, does the attached patch solve the issue with make -j?

[[[

* build/generator/gen_make.py
  Ensure that external_runtime.py is only called once. This fixes
  "make -j", which crashes when multiple instances of
  external_runtime.py try to create the same files.

Found by: philip

]]]

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Dec 17 07:02:53 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.