Make guile generator compatible with guile2 (#706140)

Signed-off-by: Adam Tkac <atkac@redhat.com>
This commit is contained in:
Adam Tkac 2011-05-20 15:38:32 +02:00
parent e37152b0e8
commit 82d8991909
2 changed files with 36 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Summary: Connects C/C++/Objective C to some high-level programming languages Summary: Connects C/C++/Objective C to some high-level programming languages
Name: swig Name: swig
Version: 2.0.3 Version: 2.0.3
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv3+ and BSD License: GPLv3+ and BSD
Group: Development/Tools Group: Development/Tools
URL: http://swig.sourceforge.net/ URL: http://swig.sourceforge.net/
@ -12,6 +12,7 @@ Source: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-
Patch1: swig-1.3.23-pylib.patch Patch1: swig-1.3.23-pylib.patch
Patch2: swig200-rh623854.patch Patch2: swig200-rh623854.patch
Patch3: swig200-rh666429.patch Patch3: swig200-rh666429.patch
Patch4: swig203-rh706140.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl, python-devel, pcre-devel BuildRequires: perl, python-devel, pcre-devel
@ -46,6 +47,7 @@ This package contains documentation for SWIG and useful examples
%patch1 -p1 -b .pylib %patch1 -p1 -b .pylib
%patch2 -p1 -b .rh623854 %patch2 -p1 -b .rh623854
%patch3 -p1 -b .rh666429 %patch3 -p1 -b .rh666429
%patch4 -p1 -b .rh706140
# as written on https://fedoraproject.org/wiki/Packaging_talk:Perl, section 2 # as written on https://fedoraproject.org/wiki/Packaging_talk:Perl, section 2
# (specific req/prov filtering). Before you remove this hack make sure you don't # (specific req/prov filtering). Before you remove this hack make sure you don't
@ -117,6 +119,9 @@ rm -rf %{buildroot}
%doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT
%changelog %changelog
* Fri May 20 2011 Adam Tkac <atkac redhat com> 2.0.3-2
- make guile generator compatible with guile2 (#706140)
* Fri Apr 22 2011 Adam Tkac <atkac redhat com> 2.0.3-1 * Fri Apr 22 2011 Adam Tkac <atkac redhat com> 2.0.3-1
- update to 2.0.3 - update to 2.0.3
- swig202-rh691513.patch merged - swig202-rh691513.patch merged

30
swig203-rh706140.patch Normal file
View File

@ -0,0 +1,30 @@
diff -up swig-2.0.3/Lib/guile/guile_gh_run.swg.rh706140 swig-2.0.3/Lib/guile/guile_gh_run.swg
--- swig-2.0.3/Lib/guile/guile_gh_run.swg.rh706140 2011-05-20 15:16:42.300658987 +0200
+++ swig-2.0.3/Lib/guile/guile_gh_run.swg 2011-05-20 15:17:08.609658991 +0200
@@ -15,7 +15,11 @@
extern "C" {
#endif
+#if SCM_MAJOR_VERSION >= 2
+typedef scm_t_subr swig_guile_proc;
+#else
typedef SCM (*swig_guile_proc)();
+#endif
#define SWIG_malloc(size) \
SCM_MUST_MALLOC(size)
diff -up swig-2.0.3/Lib/guile/guile_scm_run.swg.rh706140 swig-2.0.3/Lib/guile/guile_scm_run.swg
--- swig-2.0.3/Lib/guile/guile_scm_run.swg.rh706140 2011-05-20 15:17:22.057658991 +0200
+++ swig-2.0.3/Lib/guile/guile_scm_run.swg 2011-05-20 15:17:46.183658997 +0200
@@ -12,7 +12,11 @@
extern "C" {
#endif
+#if SCM_MAJOR_VERSION >= 2
+typedef scm_t_subr swig_guile_proc;
+#else
typedef SCM (*swig_guile_proc)();
+#endif
typedef SCM (*guile_destructor)(SCM);
typedef struct swig_guile_clientdata {