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

Re: .swg files in subversion-1.3.0-rc2

From: David James <james_at_cs.toronto.edu>
Date: 2005-11-16 17:35:33 CET

On 11/16/05, Mathias Weinert <mathias.weinert@gfa-net.de> wrote:
> After 'make' I do 'make swig-pl' and get
> the following (line breaks and extra lines added
> for readability):
>
> -----------------------------------
>
> /usr/bin/python /tmp/subversion-1.3.0-rc2/build/
> generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
> build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
> subversion/include/svn_client.h
>
> /usr/bin/python /tmp/subversion-1.3.0-rc2/build/
> generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
> build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
> subversion/include/svn_ra_svn.h
>
> /usr/bin/python /tmp/subversion-1.3.0-rc2/build/
> generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
> build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
> subversion/include/svn_repos.h
Why are these files being regenerated? These .swg files are shipped
with the official distribution of subversion 1.3.0rc2, so they should
not need to be regenerated. Currently, it is possible that SWIG files
will be incorrectly regenerated under the following conditions:
1) The timestamps on the extracted files are different from those in
the tarball; and
2) You are not using SWIG 1.3.25, but are using a different version,
such as SWIG 1.3.24.

I think we will either need to change our SWIG build procedure so that
it does not depend on correct timestamps, or we will need to
distribute our tarball without pregenerated SWIG headers.

Some questions:
1) What program did you use to extract the tarball?
2) After extracting the tarball, did you move it into a different
directory, or conduct any operation which might change the timestamps?
3) What filesystem are you using? Is it FAT32 or NTFS?
4) Are you using a pristine copy of the files in
subversion-1.3.0-rc2-nodeps.tar.bz2, or did you modify a few files to
make them work on cygwin?

> [lots of error messages related to SWIG 1.3.24]
>
> FYI I am using SWIG Version 1.3.24 (under cygwin)
If you use SWIG Version 1.3.25, I believe this will fix your problem.

Subversion should not be regenerating any of the ".swg" files at all,
so it should in theory not matter what version of SWIG you have
installed. But it looks like the files are being regenerated on your
system.

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james
Received on Wed Nov 16 17:36:50 2005

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