From db19b3a24308e80bedb84e209e5429a0b838ddf6 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jun 22 2010 14:03:03 +0000 Subject: - Make stack size bigger for intnum test to avoid test failures on some arches (e.g. s390x, ppc64 - #551988) --- diff --git a/perl-Math-Pari-2.01080604-extra-stack-for-test.patch b/perl-Math-Pari-2.01080604-extra-stack-for-test.patch new file mode 100644 index 0000000..95931b1 --- /dev/null +++ b/perl-Math-Pari-2.01080604-extra-stack-for-test.patch @@ -0,0 +1,25 @@ +--- Math-Pari-2.01080604/pari-2.3.4/src/test/in/intnum 2008-01-16 15:45:16.000000000 +0000 ++++ Math-Pari-2.01080604/pari-2.3.4/src/test/in/intnum 2010-06-22 13:53:30.711784407 +0100 +@@ -1,5 +1,5 @@ + default(echo,1); +-allocatemem(20 * 10^6); ++allocatemem(40 * 10^6); + gettime; oo = [1]; + \p96 + intcirc(s=1, 0.5, zeta(s)) - 1 +--- Math-Pari-2.01080604/pari-2.3.4/src/test/32/intnum 2008-01-16 15:45:01.000000000 +0000 ++++ Math-Pari-2.01080604/pari-2.3.4/src/test/32/intnum 2010-06-22 14:11:00.678792014 +0100 +@@ -1,4 +1,4 @@ +-? allocatemem(20*10^6); ++? allocatemem(40*10^6); + ? gettime;oo=[1]; + ? \p96 + realprecision = 96 significant digits +--- Math-Pari-2.01080604/pari-2.3.4/src/test/64/intnum 2008-01-16 15:45:28.000000000 +0000 ++++ Math-Pari-2.01080604/pari-2.3.4/src/test/64/intnum 2010-06-22 14:11:10.119846014 +0100 +@@ -1,4 +1,4 @@ +-? allocatemem(20*10^6); ++? allocatemem(40*10^6); + ? gettime;oo=[1]; + ? \p96 + realprecision = 96 significant digits diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec index 295dd5d..d311da6 100644 --- a/perl-Math-Pari.spec +++ b/perl-Math-Pari.spec @@ -15,7 +15,7 @@ Summary: Perl interface to PARI Name: perl-Math-Pari Version: 2.010806 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Math-Pari/ @@ -23,6 +23,7 @@ Source0: http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-%{v Source1: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%{pari_version}.tar.gz Patch0: perl-Math-Pari-2.010802-no-fake-version.patch Patch1: perl-Math-Pari-2.010802-docs-and-testsuite.patch +Patch2: perl-Math-Pari-2.01080604-extra-stack-for-test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker) @@ -54,6 +55,9 @@ as Perl functions, and (almost) seamless merging of PARI and Perl data. # We want to build the docs and test suite from the local pari sources %patch1 -p1 +# Need extra stack for intnum test on some arches +%patch2 -p1 + %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor \ @@ -66,8 +70,8 @@ as Perl functions, and (almost) seamless merging of PARI and Perl data. %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';' -/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';' -%{__chmod} -R u+w %{buildroot}/* +/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null +%{__chmod} -R u+w %{buildroot} %check %{__make} test @@ -89,7 +93,11 @@ as Perl functions, and (almost) seamless merging of PARI and Perl data. %exclude %{_mandir}/man3/Math::libPARI.dumb.3pm* %changelog -* Mon May 03 2010 Marcela Maslanova - 2.010806-5 +* Tue Jun 22 2010 Paul Howarth - 2.010806-6 +- Make stack size bigger for intnum test to avoid test failures on some + arches (e.g. s390x, ppc64 - #551988) + +* Mon May 3 2010 Marcela Maslanova - 2.010806-5 - Mass rebuild with perl-5.12.0 * Thu Mar 4 2010 Paul Howarth - 2.010806-4