OBS User unknown 2008-10-22 16:51:14 +00:00 committed by Git OBS Bridge
parent 2279774155
commit 65136e88e3
3 changed files with 36 additions and 9 deletions

View File

@ -0,0 +1,24 @@
---
Lib/perl5/perlprimtypes.swg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- Lib/perl5/perlprimtypes.swg.orig
+++ Lib/perl5/perlprimtypes.swg
@@ -111,7 +111,7 @@ SWIG_AsVal_dec(unsigned long)(SV *obj, u
if (val) *val = SvUV(obj);
return SWIG_OK;
} else if (SvIOK(obj)) {
- long v = SvIV(obj);
+ long long v = SvIV(obj);
if (v >= 0) {
if (val) *val = v;
return SWIG_OK;
@@ -246,7 +246,7 @@ SWIG_AsVal_dec(unsigned long long)(SV *o
if (val) *val = SvUV(obj);
return SWIG_OK;
} else if (SvIOK(obj)) {
- long v = SvIV(obj);
+ long long v = SvIV(obj);
if (v >= 0) {
if (val) *val = v;
return SWIG_OK;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 21 10:01:26 CEST 2008 - mmarek@suse.cz
- 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 - mmarek@suse.cz

View File

@ -26,8 +26,9 @@ Group: Development/Languages/C and C++
AutoReqProv: on
Summary: Simplified Wrapper and Interface Generator
Version: 1.3.36
Release: 1
Release: 2
Source: swig-%{version}.tar.bz2
Patch1: swig-1.3.36-perl-long-long.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -98,6 +99,7 @@ Authors:
%prep
%setup -q
%patch1
%build
v1=$(awk '/^# Generated by GNU Autoconf / { print $6; exit; }' configure)
@ -113,14 +115,6 @@ export CXXFLAGS="$RPM_OPT_FLAGS"
--prefix=/usr \
--libdir=%{_libdir}
make %{?jobs:-j%jobs}
# vvv begin 1.3.36 workaround vvv
%ifarch ppc
# these test-cases fail on ppc on some corner-cases
mv Examples/test-suite/perl5/li_typemaps_runme.pl{,.DISABLED}
mv Examples/test-suite/perl5/reference_global_vars_runme.pl{,.DISABLED}
%endif
test %version = 1.3.36
# ^^^ end 1.3.36 workaround ^^^
make check
%install
@ -161,6 +155,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/swig
%changelog
* Tue Oct 21 2008 mmarek@suse.cz
- fixed two integer overflows in perlprimtypes.swg. These were
actually why the two tests on ppc failed. *sigh* (bnc#431945)
* Fri Sep 26 2008 mmarek@suse.cz
- disable two perl tests on ppc
* Wed Sep 24 2008 mmarek@suse.cz