[packages/swig] - updated to 4.1.1 (support for PHP 8 and Octave 6)

qboosh qboosh at pld-linux.org
Wed Jan 18 20:10:34 CET 2023


commit 06dc97859c2c447e8d6b62d769fffb9a2635ab10
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 18 20:11:37 2023 +0100

    - updated to 4.1.1 (support for PHP 8 and Octave 6)

 swig-php-freearg.patch |  9 ++++-----
 swig.spec              | 16 ++++++++--------
 2 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/swig.spec b/swig.spec
index 37e351e..450b33c 100644
--- a/swig.spec
+++ b/swig.spec
@@ -16,14 +16,14 @@ Summary:	Interface generator for Perl, Tcl, Guile and Python
 Summary(pl.UTF-8):	Generator interfejsów do Perla, Tcl-a, Guile'a i Pythona
 Summary(pt_BR.UTF-8):	Gerador de Interfaces e "Wrappers" Simplificado (SWIG)
 Name:		swig
-Version:	4.0.2
-Release:	2
+Version:	4.1.1
+Release:	1
 License:	GPL v3+ (utility), free (library)
 Group:		Development/Languages
 Source0:	https://downloads.sourceforge.net/swig/%{name}-%{version}.tar.gz
-# Source0-md5:	7c3e46cb5af2b469722cafa0d91e127b
+# Source0-md5:	c7d55a1bca26752f3846c85b43c1a69c
 Patch0:		%{name}-php-freearg.patch
-URL:		http://www.swig.org/
+URL:		https://swig.org/
 BuildRequires:	autoconf >= 2.58
 BuildRequires:	automake >= 1:1.7.2
 %{?with_guile:BuildRequires:	guile-devel >= 5:1.8}
@@ -32,8 +32,8 @@ BuildRequires:	libstdc++-devel
 #BuildRequires:	ocaml
 # used only in examples, doesn't affect actual swig build
 #BuildRequires:	octave-devel
-BuildRequires:	pcre-devel
-%{?with_perl:BuildRequires:	perl-devel >= 1:5.6.1}
+BuildRequires:	pcre2-8-devel
+%{?with_perl:BuildRequires:	perl-devel >= 1:5.8.0}
 %{?with_php:BuildRequires:	%{php_name}-cli}
 %{?with_php:BuildRequires:	%{php_name}-devel >= 4.1.0}
 %if %{with python2}
@@ -137,11 +137,11 @@ Requires:	%{name} = %{version}-%{release}
 
 %description python
 SWIG module to generate Python bindings. It supports Python 2.7 and
-3.2+
+3.3+
 
 %description python -l pl.UTF-8
 Moduł SWIG do generowania wiązań Pythona. Obsługuje Pythona 2.7 i
-3.2+.
+3.3+.
 
 %package ruby
 Summary:	SWIG module to generate Ruby bindings
diff --git a/swig-php-freearg.patch b/swig-php-freearg.patch
index cdc8624..e1e290d 100644
--- a/swig-php-freearg.patch
+++ b/swig-php-freearg.patch
@@ -1,15 +1,14 @@
---- swig-1.3.30/Source/Modules/php.cxx.orig	2006-11-02 00:54:52.000000000 +0100
-+++ swig-1.3.30/Source/Modules/php.cxx	2006-11-18 20:49:44.639530500 +0100
-@@ -1172,6 +1172,8 @@
+--- swig-4.1.1/Source/Modules/php.cxx.orig	2022-11-30 08:35:05.000000000 +0100
++++ swig-4.1.1/Source/Modules/php.cxx	2023-01-18 20:06:15.851111372 +0100
+@@ -1532,12 +1532,16 @@ public:
  
      /* Insert cleanup code */
      for (i = 0, p = l; p; i++) {
 +      if((i >= num_required) && (i < num_required+numopt))
 +	Printf(cleanup,"\tif(arg_count > %d) {\n", i);
        if ((tm = Getattr(p, "tmap:freearg"))) {
- 	Replaceall(tm, "$source", Getattr(p, "lname"));
  	Printv(cleanup, tm, "\n", NIL);
-@@ -1179,6 +1181,8 @@
+ 	p = Getattr(p, "tmap:freearg:next");
        } else {
  	p = nextSibling(p);
        }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/swig.git/commitdiff/06dc97859c2c447e8d6b62d769fffb9a2635ab10



More information about the pld-cvs-commit mailing list