Hello community, here is the log from the commit of package swig for openSUSE:12.1:Update:Test checked in at 2011-12-14 17:45:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.1:Update:Test/swig (Old) and /work/SRC/openSUSE:12.1:Update:Test/.swig.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "swig", Maintainer is "[email protected]" Changes: -------- New Changes file: --- /dev/null 2010-08-26 16:28:41.000000000 +0200 +++ /work/SRC/openSUSE:12.1:Update:Test/.swig.new/swig.changes 2011-12-14 17:45:55.000000000 +0100 @@ -0,0 +1,553 @@ +------------------------------------------------------------------- +Tue Sep 20 09:31:28 UTC 2011 - [email protected] + +- Update to swig 2.0.4 + (see CHANGES.current for complete list) + * [Perl] Patch #3260265 fixing overloading of non-primitive types and integers in + Perl 5.12 and later. + * [Ruby] Fix %import where one of the imported files %include one of the STL include + files such as std_vector.i. + * [python] Additional fixes for python3.2 support. + * [python] Fixed PyGetSetDescr for python3.2. + * Bug 2635919: Convenience method to convert std::map to a python dict. + * Fixed bug 1163440: vararg typemaps. + * [Python] Applied patch #1932484: migrate PyCObject to PyCapsule. + * [Python] Merged in the szager-python-builtin branch, adding the -builtin feature + for python. The -builtin option may provide a significant performance gain + in python wrappers. For full details and limitations, refer to Doc/Manual/Python.html. + A small test suite designed to demonstrate the performance gain is in + Examples/python/performance. + +------------------------------------------------------------------- +Tue Sep 20 08:46:19 UTC 2011 - [email protected] + +- Fix RHEL/Fedora build + +------------------------------------------------------------------- +Thu May 19 19:50:42 UTC 2011 - [email protected] + +- Drop adapt-perl512.diff and replace it with swig-2.0.3-perl512.patch + which is applied upstream. + +------------------------------------------------------------------- +Thu May 19 08:47:42 UTC 2011 - [email protected] + +- Add swig-2.0.3-perl514.patch: fix test failures with Perl 5.14 + +------------------------------------------------------------------- +Mon May 2 15:36:04 UTC 2011 - [email protected] + +- Update to swig 2.0.3 + * Much better nested class/struct support. + * Much improved template partial specialization and explicit + specialization handling. + * Namespace support improved with the 'nspace' feature where + namespaces can be automatically translated into Java packages or C# namespaces. + * Improved typemap and symbol table debugging. + * Numerous subtle typemap matching rule changes when using the + default (SWIGTYPE) type. These now work much like C++ class template + partial specialization matching. + * Other small enhancements for typemaps. + Typemap fragments are also now official and documented. + * Warning and error display refinements. + * Wrapping of shared_ptr is improved and documented now. + * Numerous C++ unary scope operator (::) fixes. + * Better support for boolean expressions. + * Various bug fixes and improvements in the Allegrocl, C#, Java, + Lua, Octave, PHP, Python, R, Ruby and XML modules. + +------------------------------------------------------------------- +Tue Apr 6 13:38:47 UTC 2010 - [email protected] + +- fix build with new perl 5.12: there is no Reference type anymore, + but references and integers are the same, so a 0L was seen as 0 + pointer - breaking the test suite. The fix is to remove the check + +------------------------------------------------------------------- +Sun Feb 14 09:54:04 UTC 2010 - [email protected] + +- take patch from swig svn to fix assertion on -xmlout (fix + yast2-storage build) + +------------------------------------------------------------------- +Thu Dec 17 10:21:40 UTC 2009 - [email protected] + +- tune .spec file to build on multiple distros + +------------------------------------------------------------------- +Wed Dec 16 10:29:50 CET 2009 - [email protected] + +- package documentation as noarch + +------------------------------------------------------------------- +Tue Nov 24 14:16:48 CET 2009 - [email protected] + +- updated to 1.3.40 + * SWIG now supports directors for PHP. + * PHP support improved in general. + * Octave 3.2 support added. + * Various bug fixes/enhancements for Allegrocl, C#, Java, Octave, + Perl, Python, Ruby and Tcl. + * Other generic fixes and minor new features. + +------------------------------------------------------------------- +Wed Aug 12 14:31:43 CEST 2009 - [email protected] + +- updated to 1.3.39 + * Python 3 support added + * PHP4 support dropped + * many bugfixes and improvements +- ccache support disabled as it didn't work (todo after 11.2) + +------------------------------------------------------------------- +Tue Oct 21 10:01:26 CEST 2008 - [email protected] + +- fixed two integer overflows in perlprimtypes.swg. These were + actually why the two tests on ppc failed. *sigh* (bnc#431945) + +------------------------------------------------------------------- +Fri Sep 26 11:21:13 CEST 2008 - [email protected] + +- disable two perl tests on ppc + +------------------------------------------------------------------- +Wed Sep 24 15:29:33 CEST 2008 - [email protected] + +- updated to 1.3.36 + * Enhancement to directors to wrap all protected members + * Optimisation feature for objects returned by value + * A few bugs fixes in the PHP, Java, Ruby, R, C#, Python, Lua and + Perl modules + * Other minor generic bug fixes + +------------------------------------------------------------------- +Tue Apr 8 09:55:39 CEST 2008 - [email protected] + +- updated to 1.3.35 + * Octave language module added + * Bug fixes in Python, Lua, Java, C#, Perl modules + * A few other generic bugs and runtime assertions fixed + +------------------------------------------------------------------- +Wed Mar 26 15:04:30 CET 2008 - [email protected] + +- remove the croak patch, croak(Nullch) is correct (see + https://sourceforge.net/tracker/?func=detail&atid=301645&aid=1925121&group_id=1645) +- testsuite-warnings.patch not needed + +------------------------------------------------------------------- +Thu Mar 20 14:28:40 CET 2008 - [email protected] + +- define SWIG_croak_null as croak("%s","") not croak(Nullch) + as croak is defined to take a string constant as 1st arg. +- Don't return an unitialized local variable in template code. +- Bracket if clauses so that the compiler doesn't warn in template code. + +------------------------------------------------------------------- +Fri Feb 29 14:21:25 CET 2008 - [email protected] + +- updated to 1.3.34 + + shared_ptr support for Python + + Support for latest R - version 2.6 + + Various minor improvements/bug fixes for R, Lua, Python, Java, + C# + + A few other generic bug fixes, mainly for templates and using + statements + + +------------------------------------------------------------------- +Wed Nov 28 17:48:16 CET 2007 - [email protected] + +- updated to 1.3.33 + + shared_ptr support for Java and C# + + Enhanced STL support for Ruby + + Fixed long-standing memory leak in PHP Module + + Numerous fixes and minor enhancements for Allegrocl, C#, cffi, + Chicken, Guile, Java, Lua, Ocaml, Perl, PHP, Python, Ruby, Tcl + + Improved warning support + +------------------------------------------------------------------- +Wed Sep 19 16:54:03 CEST 2007 - [email protected] + +- don't "update" autofoo when building for older dists in the + buildservice + +------------------------------------------------------------------- +Tue May 29 11:13:24 CEST 2007 - [email protected] + +- install examples in '%%_libdir/swig/examples' (not Examples) to + pass the devel-file-in-non-devel-package rpmlint check + +------------------------------------------------------------------- +Thu May 24 12:04:24 CEST 2007 - [email protected] + +- fixed some rpmlint errors + +------------------------------------------------------------------- +Wed Apr 4 16:23:51 CEST 2007 - [email protected] + +- install the precompiled examples to %%_libdir/swig + +------------------------------------------------------------------- +Wed Jan 24 12:22:40 CET 2007 - [email protected] + +- temporarily disabled li_std_string run test under perl5 on ix86 + and s390 +- build examples and testsuite with -fno-strict-aliasing (packages + using swig & python should do the same for now) ++++ 356 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:12.1:Update:Test/.swig.new/swig.changes New: ---- _link swig-2.0.4-disable-broken-tests.patch swig-2.0.4-disable-broken-tests_rhel4.patch swig-2.0.4-ptrdiff_t.patch swig-2.0.4-support-python32.patch swig-2.0.4.tar.bz2 swig.changes swig.rpmlintrc swig.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ swig.spec ++++++ # # spec file for package swig # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: swig BuildRequires: boost-devel BuildRequires: gcc-c++ BuildRequires: pcre-devel BuildRequires: perl BuildRequires: python-devel %if 0%{?rhel_version} > 0 BuildRequires: -vim %endif %if 0%{?fedora} + 0%{?rhel_version} + 0%{?centos_version} > 0 %define docpath %{_docdir}/%{name}-%{version} BuildRequires: pkgconfig BuildRequires: ruby-devel %if 0%{?rhel_version} + 0%{?centos_version} == 0 BuildRequires: perl-devel %endif %endif %if 0%{?suse_version} > 0 %define docpath %{_docdir}/%{name} %if 0%{?suse_version} > 1010 BuildRequires: fdupes %endif # SLE9 %if 0%{?suse_version} < 920 BuildRequires: pkgconfig BuildRequires: ruby %else BuildRequires: pkg-config # SLE10 and up BuildRequires: ruby-devel %endif %endif Version: 2.0.4 Release: 5 License: GPLv3+ and BSD Summary: Simplified Wrapper and Interface Generator Url: http://www.swig.org Group: Development/Languages/C and C++ Source: %{name}-%{version}.tar.bz2 Source1: %{name}.rpmlintrc # PATCH-FIX-UPSTREAM swig-2.0.4-support-python32.patch [email protected] -- Support Python 3.2 Patch1: swig-2.0.4-support-python32.patch # swig-2.0.4-ptrdiff_t.patch [email protected] -- import_stl fails under Python Patch2: swig-2.0.4-ptrdiff_t.patch # PATCH-FIX-UPSTREAM swig-2.0.4-disable-broken-tests.patch [email protected] -- Disable broken tests Patch3: swig-2.0.4-disable-broken-tests.patch # swig-2.0.4-disable-broken-tests_rhel4.patch [email protected] -- disable tests failing on RHEL4 Patch4: swig-2.0.4-disable-broken-tests_rhel4.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description SWIG is a compiler that attempts to make it easy to integrate C, C++, or Objective-C code with scripting languages including Perl, Tcl, and Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations and it generates an interface between C and your favorite scripting language. However, this is only scratching the surface of what SWIG can do--some of its more advanced features include automatic documentation generation, module and library management, extensive customization options, and more. %package doc License: BSD3c Summary: SWIG Manual Group: Development/Languages/C and C++ Requires: swig %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif %description doc SWIG is a compiler that attempts to make it easy to integrate C, C++, or Objective-C code with scripting languages including Perl, Tcl, and Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations and it generates an interface between C and your favorite scripting language. However, this is only scratching the surface of what SWIG can do--some of its more advanced features include automatic documentation generation, module and library management, extensive customization options, and more. This package contains the SWIG manual. %package examples License: BSD3c Summary: SWIG example files Group: Development/Languages/C and C++ Requires: swig %description examples SWIG is a compiler that attempts to make it easy to integrate C, C++, or Objective-C code with scripting languages including Perl, Tcl, and Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations and it generates an interface between C and your favorite scripting language. However, this is only scratching the surface of what SWIG can do--some of its more advanced features include automatic documentation generation, module and library management, extensive customization options, and more. This package contains SWIG examples, useful both for testing and understandig SWIG usage. %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 %if 0%{?rhel_version} >= 400 && 0%{?rhel_version} < 500 %patch4 -p1 %endif %build %configure --disable-ccache make %{?_smp_mflags} %check # check fails on SLES9 %if 0%{?sles_version} != 9 # This test is buggy on x86-64 rm -f Examples/test-suite/python/li_boost_shared_ptr_runme.py make check %endif %install make install DESTDIR=%{buildroot} install -d %{buildroot}%{docpath} cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \ %{buildroot}%{docpath} install -d %{buildroot}%{_libdir}/swig cp -a Examples %{buildroot}%{_libdir}/swig/examples # rm files that are not needed for runnig or rebuilding the examples find %{buildroot}%{_libdir}/swig \ -name '*.dsp' -o -name '*.vcproj' -o -name '*.sln' -o \ -name '*.o' -o -name '*_wrap.c' | xargs rm # fix perms chmod -x %{buildroot}%{docpath}/Manual/* find %{buildroot}%{_libdir}/swig -name '*.h' -perm +111 | \ xargs --no-run-if-empty chmod -x ln -s %{_libdir}/swig/examples %{buildroot}%{docpath}/Examples %if 0%{?suse_version} > 1010 %fdupes $RPM_BUILD_ROOT %endif %clean rm -rf %{buildroot} %files %defattr(644,root,root,755) %dir %{docpath} %{docpath}/[A-Z][A-Z]* %{_datadir}/swig %attr(755,root,root) %{_bindir}/swig %files doc %defattr(-,root,root) %{docpath}/Devel %{docpath}/Manual %files examples %defattr(-,root,root) %{docpath}/Examples %{_libdir}/swig %changelog ++++++ _link ++++++ <link project="openSUSE:12.1" package="swig" baserev="f5e09011158fd9990f7210c615040d36"> <patches> <branch/> </patches> </link> ++++++ swig-2.0.4-disable-broken-tests.patch ++++++ diff -wruN -x '*~' ../orig-swig-2.0.4/Examples/test-suite/common.mk ./Examples/test-suite/common.mk --- ../orig-swig-2.0.4/Examples/test-suite/common.mk 2011-05-02 23:11:15.000000000 +0200 +++ ./Examples/test-suite/common.mk 2011-09-20 15:35:39.000000000 +0200 @@ -394,7 +394,6 @@ template_virtual \ template_whitespace \ threads \ - threads_exception \ throw_exception \ typedef_array_member \ typedef_class \ ++++++ swig-2.0.4-disable-broken-tests_rhel4.patch ++++++ diff -wruN -x '*~' ../orig-swig-2.0.4/Examples/test-suite/common.mk ./Examples/test-suite/common.mk --- ../orig-swig-2.0.4/Examples/test-suite/common.mk 2011-05-02 23:11:15.000000000 +0200 +++ ./Examples/test-suite/common.mk 2011-09-20 21:20:03.000000000 +0200 @@ -113,7 +113,6 @@ argout \ array_member \ array_typedef_memberin \ - arrayref \ arrays_dimensionless \ arrays_global \ arrays_global_twodim \ @@ -240,7 +239,6 @@ member_template \ minherit \ minherit2 \ - mixed_types \ multiple_inheritance \ name_cxx \ name_warnings \ ++++++ swig-2.0.4-ptrdiff_t.patch ++++++ diff -wruN -x '*~' ../orig-swig-2.0.4/Lib/python/pycontainer.swg ./Lib/python/pycontainer.swg --- ../orig-swig-2.0.4/Lib/python/pycontainer.swg 2011-09-20 12:14:29.000000000 +0200 +++ ./Lib/python/pycontainer.swg 2011-09-20 12:13:22.000000000 +0200 @@ -189,7 +189,7 @@ namespace swig { inline size_t - check_index(ptrdiff_t i, size_t size, bool insert = false) { + check_index(std::ptrdiff_t i, size_t size, bool insert = false) { if ( i < 0 ) { if ((size_t) (-i) <= size) return (size_t) (i + size); @@ -203,7 +203,7 @@ } inline size_t - slice_index(ptrdiff_t i, size_t size) { + slice_index(std::ptrdiff_t i, size_t size) { if ( i < 0 ) { if ((size_t) (-i) <= size) { return (size_t) (i + size); diff -wruN -x '*~' ../orig-swig-2.0.4/Lib/python/pyiterators.swg ./Lib/python/pyiterators.swg --- ../orig-swig-2.0.4/Lib/python/pyiterators.swg 2011-04-29 20:25:16.000000000 +0200 +++ ./Lib/python/pyiterators.swg 2011-09-20 12:14:10.000000000 +0200 @@ -41,7 +41,7 @@ } // Random access iterator methods, but not required in Python - virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const + virtual std::ptrdiff_t distance(const SwigPyIterator &/*x*/) const { throw std::invalid_argument("operation not supported"); } @@ -78,7 +78,7 @@ return obj; } - SwigPyIterator *advance(ptrdiff_t n) + SwigPyIterator *advance(std::ptrdiff_t n) { return (n > 0) ? incr(n) : decr(-n); } @@ -93,27 +93,27 @@ return ! operator==(x); } - SwigPyIterator& operator += (ptrdiff_t n) + SwigPyIterator& operator += (std::ptrdiff_t n) { return *advance(n); } - SwigPyIterator& operator -= (ptrdiff_t n) + SwigPyIterator& operator -= (std::ptrdiff_t n) { return *advance(-n); } - SwigPyIterator* operator + (ptrdiff_t n) const + SwigPyIterator* operator + (std::ptrdiff_t n) const { return copy()->advance(n); } - SwigPyIterator* operator - (ptrdiff_t n) const + SwigPyIterator* operator - (std::ptrdiff_t n) const { return copy()->advance(-n); } - ptrdiff_t operator - (const SwigPyIterator& x) const + std::ptrdiff_t operator - (const SwigPyIterator& x) const { return x.distance(*this); } @@ -170,7 +170,7 @@ } } - ptrdiff_t distance(const SwigPyIterator &iter) const + std::ptrdiff_t distance(const SwigPyIterator &iter) const { const self_type *iters = dynamic_cast<const self_type *>(&iter); if (iters) { @@ -334,8 +334,8 @@ Mark methods that return new objects */ %newobject SwigPyIterator::copy; - %newobject SwigPyIterator::operator + (ptrdiff_t n) const; - %newobject SwigPyIterator::operator - (ptrdiff_t n) const; + %newobject SwigPyIterator::operator + (std::ptrdiff_t n) const; + %newobject SwigPyIterator::operator - (std::ptrdiff_t n) const; %nodirector SwigPyIterator; @@ -356,11 +356,11 @@ %catches(swig::stop_iteration) SwigPyIterator::__next__(); %catches(swig::stop_iteration) SwigPyIterator::next(); %catches(swig::stop_iteration) SwigPyIterator::previous(); - %catches(swig::stop_iteration) SwigPyIterator::advance(ptrdiff_t n); - %catches(swig::stop_iteration) SwigPyIterator::operator += (ptrdiff_t n); - %catches(swig::stop_iteration) SwigPyIterator::operator -= (ptrdiff_t n); - %catches(swig::stop_iteration) SwigPyIterator::operator + (ptrdiff_t n) const; - %catches(swig::stop_iteration) SwigPyIterator::operator - (ptrdiff_t n) const; + %catches(swig::stop_iteration) SwigPyIterator::advance(std::ptrdiff_t n); + %catches(swig::stop_iteration) SwigPyIterator::operator += (std::ptrdiff_t n); + %catches(swig::stop_iteration) SwigPyIterator::operator -= (std::ptrdiff_t n); + %catches(swig::stop_iteration) SwigPyIterator::operator + (std::ptrdiff_t n) const; + %catches(swig::stop_iteration) SwigPyIterator::operator - (std::ptrdiff_t n) const; struct SwigPyIterator { @@ -380,7 +380,7 @@ virtual SwigPyIterator *decr(size_t n = 1); // Random access iterator methods, but not required in Python - virtual ptrdiff_t distance(const SwigPyIterator &x) const; + virtual std::ptrdiff_t distance(const SwigPyIterator &x) const; virtual bool equal (const SwigPyIterator &x) const; @@ -390,15 +390,15 @@ PyObject *next(); PyObject *__next__(); PyObject *previous(); - SwigPyIterator *advance(ptrdiff_t n); + SwigPyIterator *advance(std::ptrdiff_t n); bool operator == (const SwigPyIterator& x) const; bool operator != (const SwigPyIterator& x) const; - SwigPyIterator& operator += (ptrdiff_t n); - SwigPyIterator& operator -= (ptrdiff_t n); - SwigPyIterator* operator + (ptrdiff_t n) const; - SwigPyIterator* operator - (ptrdiff_t n) const; - ptrdiff_t operator - (const SwigPyIterator& x) const; + SwigPyIterator& operator += (std::ptrdiff_t n); + SwigPyIterator& operator -= (std::ptrdiff_t n); + SwigPyIterator* operator + (std::ptrdiff_t n) const; + SwigPyIterator* operator - (std::ptrdiff_t n) const; + std::ptrdiff_t operator - (const SwigPyIterator& x) const; }; } ++++++ swig-2.0.4-support-python32.patch ++++++ diff -wruN -x '*~' ../orig-swig-2.0.4/Lib/python/pycontainer.swg ./Lib/python/pycontainer.swg --- ../orig-swig-2.0.4/Lib/python/pycontainer.swg 2011-04-10 00:07:22.000000000 +0200 +++ ./Lib/python/pycontainer.swg 2011-09-20 11:27:19.000000000 +0200 @@ -657,6 +657,7 @@ return x; } +#if !NO_PYSLICE /* typemap for slice object support */ %typemap(in) PySliceObject* { if (!PySlice_Check($input)) { @@ -667,6 +668,7 @@ %typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER) PySliceObject* { $1 = PySlice_Check($input); } +#endif Sequence* __getslice__(difference_type i, difference_type j) throw (std::out_of_range) { return swig::getslice(self, i, j); @@ -689,7 +691,11 @@ /* Overloaded methods for Python 3 compatibility * (Also useful in Python 2.x) */ +#if NO_PYSLICE + Sequence* __getitem__(PyObject *slice) throw (std::out_of_range) { +#else Sequence* __getitem__(PySliceObject *slice) throw (std::out_of_range) { +#endif Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); @@ -698,8 +704,11 @@ PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), self->size(), &i, &j, &step); return swig::getslice(self, i, j); } - +#if NO_PYSLICE + void __setitem__(PyObject *slice, const Sequence& v) +#else void __setitem__(PySliceObject *slice, const Sequence& v) +#endif throw (std::out_of_range, std::invalid_argument) { Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { @@ -721,7 +730,11 @@ swig::delslice(self, i,j); } +#if NO_PYSLICE + void __delitem__(PyObject *slice) +#else void __delitem__(PySliceObject *slice) +#endif throw (std::out_of_range) { Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { diff -wruN -x '*~' ../orig-swig-2.0.4/Source/Modules/python.cxx ./Source/Modules/python.cxx --- ../orig-swig-2.0.4/Source/Modules/python.cxx 2011-05-20 07:58:05.000000000 +0200 +++ ./Source/Modules/python.cxx 2011-09-20 11:27:19.000000000 +0200 @@ -527,6 +527,7 @@ if (py3) { /* force disable features that not compatible with Python 3.x */ classic = 0; + Preprocessor_define((DOH *) "NO_PYSLICE 1", 0); } if (cppcast) { ++++++ swig.rpmlintrc ++++++ addFilter("devel-file-in-non-devel-package .*/usr/share/swig/.*/.*/.*") -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
