From 864f2cf7c17335f44cba40aa706016148c50cdfd Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Wed, 3 Aug 2016 17:34:33 +0100
Subject: Allocate more stack for t/genprime.t to avoid intermittent build
 failures

Also, simplify find command using -delete
---
 Crypt-Primes-0.50-more-stack.patch | 12 ++++++++++++
 perl-Crypt-Primes.spec             | 17 ++++++++++++++---
 2 files changed, 26 insertions(+), 3 deletions(-)
 create mode 100644 Crypt-Primes-0.50-more-stack.patch

diff --git a/Crypt-Primes-0.50-more-stack.patch 
b/Crypt-Primes-0.50-more-stack.patch
new file mode 100644
index 0000000..5c7da31
--- /dev/null
+++ b/Crypt-Primes-0.50-more-stack.patch
@@ -0,0 +1,12 @@
+--- t/genprime.t
++++ t/genprime.t
+@@ -10,8 +10,8 @@
+ 
+ use lib '../lib';
+ use lib 'lib';
++use Math::PariInit qw( floor stack=8000000 );
+ use Crypt::Primes qw(maurer); 
+-use Math::Pari qw(floor);
+ 
+ print "1..10\n";
+ 
diff --git a/perl-Crypt-Primes.spec b/perl-Crypt-Primes.spec
index 4549d76..101797b 100644
--- a/perl-Crypt-Primes.spec
+++ b/perl-Crypt-Primes.spec
@@ -1,11 +1,12 @@
 Summary:       Provable prime number generator for cryptographic applications
 Name:          perl-Crypt-Primes
 Version:       0.50
-Release:       27%{?dist}
+Release:       28%{?dist}
 License:       GPL+ or Artistic
 Group:         Development/Libraries
-Url:           http://search.cpan.org/dist/Crypt-Primes/
+URL:           http://search.cpan.org/dist/Crypt-Primes/
 Source0:       
http://search.cpan.org/CPAN/authors/id/V/VI/VIPUL/Crypt-Primes-%{version}.tar.gz
+Patch0:                Crypt-Primes-0.50-more-stack.patch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:     noarch
 # Module Build
@@ -15,6 +16,7 @@ BuildRequires:        make
 BuildRequires: perl
 BuildRequires: perl-generators
 BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: sed
 # Module Runtime
 BuildRequires: perl(Crypt::Random)     >= 0.33
 BuildRequires: perl(Exporter)
@@ -40,6 +42,11 @@ Parameters" (1994).
 
 %prep
 %setup -q -n Crypt-Primes-%{version}
+
+# Allocate more stack for t/genprime.t to avoid intermittent build failures
+%patch0
+
+# Remo
 sed -i -e '/^#! *\/usr\/bin\/perl /d' lib/Crypt/Primes.pm
 
 %build
@@ -52,7 +59,7 @@ make test
 %install
 rm -rf %{buildroot}
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name .packlist -delete
 %{_fixperms} %{buildroot}
 
 %clean
@@ -66,6 +73,10 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Crypt::Primes.3*
 
 %changelog
+* Wed Aug  3 2016 Paul Howarth <p...@city-fan.org> - 0.50-28
+- Allocate more stack for t/genprime.t to avoid intermittent build failures
+- Simplify find command using -delete
+
 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.50-27
 - Perl 5.24 rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Crypt-Primes.git/commit/?h=perl-Crypt-Primes-0.50-28.fc26&id=864f2cf7c17335f44cba40aa706016148c50cdfd
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to