You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2015/02/12 21:55:13 UTC
svn commit: r1659397 - in /subversion/trunk: TODO build/ac-macros/swig.m4
Author: brane
Date: Thu Feb 12 20:55:13 2015
New Revision: 1659397
URL: http://svn.apache.org/r1659397
Log:
Do not attempt to build bindings with Swig 3.0+. Current versions
break the Python bindings.
* build/ac-macros/swig.m4
(SVN_FIND_SWIG): Add an upper limite to supported Swig versions.
Do not configure bindings if the detected Swig is not suitable.
Removed:
subversion/trunk/TODO
Modified:
subversion/trunk/build/ac-macros/swig.m4
Modified: subversion/trunk/build/ac-macros/swig.m4
URL: http://svn.apache.org/viewvc/subversion/trunk/build/ac-macros/swig.m4?rev=1659397&r1=1659396&r2=1659397&view=diff
==============================================================================
--- subversion/trunk/build/ac-macros/swig.m4 (original)
+++ subversion/trunk/build/ac-macros/swig.m4 Thu Feb 12 20:55:13 2015
@@ -92,18 +92,25 @@ AC_DEFUN(SVN_FIND_SWIG,
# packages/rpm/redhat-7.x/subversion.spec
# packages/rpm/rhel-3/subversion.spec
# packages/rpm/rhel-4/subversion.spec
- if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
+ if test -n "$SWIG_VERSION" \
+ && test "$SWIG_VERSION" -ge "103024" \
+ && test "$SWIG_VERSION" -lt "300000"; then
SWIG_SUITABLE=yes
else
SWIG_SUITABLE=no
AC_MSG_WARN([Detected SWIG version $SWIG_VERSION_RAW])
- AC_MSG_WARN([Subversion requires SWIG 1.3.24 or later])
+ if test "$SWIG_VERSION" -lt "300000"; then
+ AC_MSG_WARN([Subversion requires SWIG 1.3.24 or later])
+ else
+ AC_MSG_WARN([Subversion dos not support SWIG 3.0 and later])
+ fi
+ AC_MSG_WARN([Building Python, Perl and/or Ruby bindings is disabled])
fi
fi
-
+
SWIG_PY_COMPILE="none"
SWIG_PY_LINK="none"
- if test "$PYTHON" != "none"; then
+ if test "$PYTHON" != "none" && test "$SWIG_SUITABLE" = "yes"; then
AC_MSG_NOTICE([Configuring python swig binding])
AC_CACHE_CHECK([for Python includes], [ac_cv_python_includes],[
@@ -166,7 +173,7 @@ AC_DEFUN(SVN_FIND_SWIG,
[ for apr_int64_t])
fi
- if test "$PERL" != "none"; then
+ if test "$PERL" != "none" && test "$SWIG_SUITABLE" = "yes"; then
AC_MSG_CHECKING([perl version])
dnl Note that the q() bit is there to avoid unbalanced brackets
dnl which m4 really doesn't like.
@@ -181,7 +188,7 @@ AC_DEFUN(SVN_FIND_SWIG,
SWIG_RB_COMPILE="none"
SWIG_RB_LINK="none"
- if test "$RUBY" != "none"; then
+ if test "$RUBY" != "none" && test "$SWIG_SUITABLE" = "yes"; then
rbconfig="$RUBY -rrbconfig -e "
for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
Re: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-macros/swig.m4
Posted by Branko Čibej <br...@wandisco.com>.
On 13.02.2015 01:30, Bert Huijben wrote:
>
>> -----Original Message-----
>> From: brane@apache.org [mailto:brane@apache.org]
>> Sent: donderdag 12 februari 2015 21:55
>> To: commits@subversion.apache.org
>> Subject: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-
>> macros/swig.m4
>>
>> Author: brane
>> Date: Thu Feb 12 20:55:13 2015
>> New Revision: 1659397
>>
>> URL: http://svn.apache.org/r1659397
>> Log:
>> Do not attempt to build bindings with Swig 3.0+. Current versions
>> break the Python bindings.
>>
>> * build/ac-macros/swig.m4
>> (SVN_FIND_SWIG): Add an upper limite to supported Swig versions.
>> Do not configure bindings if the detected Swig is not suitable.
> This breaks the mac buildbot as it appears to run 3.0.2.
>
> [[
> configure:24262: checking swig version
> configure:24278: result: 3.0.2
> configure:24292: WARNING: Detected SWIG version 3.0.2
> configure:24298: WARNING: Subversion dos not support SWIG 3.0 and later
> configure:24301: WARNING: Building Python, Perl and/or Ruby bindings is disabled
> ]]
>
> I think this needs a s/dos/does/
>
> I'm surprised that we didn't see failures on this bot?
> (Is there some patch in the distribution that unbreaks swig for us?)
Maybe I just didn't look carefully enough and 3.0.2 is OK ... 3.0.3 and
later are definitely bad. I'll fix the condition.
-- Brane
RE: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-macros/swig.m4
Posted by Bert Huijben <be...@qqmail.nl>.
> -----Original Message-----
> From: brane@apache.org [mailto:brane@apache.org]
> Sent: donderdag 12 februari 2015 21:55
> To: commits@subversion.apache.org
> Subject: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-
> macros/swig.m4
>
> Author: brane
> Date: Thu Feb 12 20:55:13 2015
> New Revision: 1659397
>
> URL: http://svn.apache.org/r1659397
> Log:
> Do not attempt to build bindings with Swig 3.0+. Current versions
> break the Python bindings.
>
> * build/ac-macros/swig.m4
> (SVN_FIND_SWIG): Add an upper limite to supported Swig versions.
> Do not configure bindings if the detected Swig is not suitable.
This breaks the mac buildbot as it appears to run 3.0.2.
[[
configure:24262: checking swig version
configure:24278: result: 3.0.2
configure:24292: WARNING: Detected SWIG version 3.0.2
configure:24298: WARNING: Subversion dos not support SWIG 3.0 and later
configure:24301: WARNING: Building Python, Perl and/or Ruby bindings is disabled
]]
I think this needs a s/dos/does/
I'm surprised that we didn't see failures on this bot?
(Is there some patch in the distribution that unbreaks swig for us?)
Bert
RE: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-macros/swig.m4
Posted by Bert Huijben <be...@qqmail.nl>.
> -----Original Message-----
> From: brane@apache.org [mailto:brane@apache.org]
> Sent: donderdag 12 februari 2015 21:55
> To: commits@subversion.apache.org
> Subject: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-
> macros/swig.m4
>
> Author: brane
> Date: Thu Feb 12 20:55:13 2015
> New Revision: 1659397
>
> URL: http://svn.apache.org/r1659397
> Log:
> Do not attempt to build bindings with Swig 3.0+. Current versions
> break the Python bindings.
>
> * build/ac-macros/swig.m4
> (SVN_FIND_SWIG): Add an upper limite to supported Swig versions.
> Do not configure bindings if the detected Swig is not suitable.
This breaks the mac buildbot as it appears to run 3.0.2.
[[
configure:24262: checking swig version
configure:24278: result: 3.0.2
configure:24292: WARNING: Detected SWIG version 3.0.2
configure:24298: WARNING: Subversion dos not support SWIG 3.0 and later
configure:24301: WARNING: Building Python, Perl and/or Ruby bindings is disabled
]]
I think this needs a s/dos/does/
I'm surprised that we didn't see failures on this bot?
(Is there some patch in the distribution that unbreaks swig for us?)
Bert
Aw: Re: svn commit: r1659397 - in /subversion/trunk: TODO
build/ac-macros/swig.m4
Posted by Andreas Stieger <An...@gmx.de>.
Hi,
> Gesendet: Donnerstag, 12. Februar 2015 um 21:59 Uhr
> Von: "Branko Čibej" <br...@wandisco.com>
> An: dev@subversion.apache.org
> Betreff: Re: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-macros/swig.m4
>
> On 12.02.2015 21:55, brane@apache.org wrote:
> > Author: brane
> > Date: Thu Feb 12 20:55:13 2015
> > New Revision: 1659397
> >
> > URL: http://svn.apache.org/r1659397
> > Log:
> > Do not attempt to build bindings with Swig 3.0+. Current versions
> > break the Python bindings.
>
> Heads up for the above; should be in CHANGES, probably. Several people
> have been trying to get our Python bindings to work with Swig 3.0.x,
> without success. Even though the Perl and Ruby bindings work at this
> point with 3.0.5 (at least, they compile and the tests pass), I think
> it's safer to tell people to use Swig 2.x for the time being, until the
> issues with 3.x are resolved.
You surely know that much of your direct code use is from distributions, not individuals who build from source. And in their development version there often simply isn't such a choice. I have SWIG 3.0.5 in my distribution development tree and it is only going forward. The swig project is working on the python regressions, and I will patch the svn or swig source to get it all to work. Would you not rather want to state that some items are not supported with SWIG 3.0+ than erroring out altogether? (Which is incorrect by itself because the python regression did not occur between 3.0.0 and 3.0.2)
Andreas
Re: svn commit: r1659397 - in /subversion/trunk: TODO build/ac-macros/swig.m4
Posted by Branko Čibej <br...@wandisco.com>.
On 12.02.2015 21:55, brane@apache.org wrote:
> Author: brane
> Date: Thu Feb 12 20:55:13 2015
> New Revision: 1659397
>
> URL: http://svn.apache.org/r1659397
> Log:
> Do not attempt to build bindings with Swig 3.0+. Current versions
> break the Python bindings.
Heads up for the above; should be in CHANGES, probably. Several people
have been trying to get our Python bindings to work with Swig 3.0.x,
without success. Even though the Perl and Ruby bindings work at this
point with 3.0.5 (at least, they compile and the tests pass), I think
it's safer to tell people to use Swig 2.x for the time being, until the
issues with 3.x are resolved.
-- Brane