[packages/perl-Crypt-Primes] Up to 0.52
arekm
arekm at pld-linux.org
Sat Nov 21 00:36:05 CET 2026
commit eff29b24adc210897bb26b6c9c87cbfe02ab1084
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Nov 21 00:03:45 2026 +0100
Up to 0.52
perl-Crypt-Primes-pari-stack.patch | 26 ++++++++++++++++++++++++++
perl-Crypt-Primes.spec | 10 ++++++----
2 files changed, 32 insertions(+), 4 deletions(-)
---
diff --git a/perl-Crypt-Primes.spec b/perl-Crypt-Primes.spec
index 7cae5d9..3129373 100644
--- a/perl-Crypt-Primes.spec
+++ b/perl-Crypt-Primes.spec
@@ -7,13 +7,14 @@
Summary: Crypt::Primes - provable prime number generator suitable for cryptographic applications
Summary(pl.UTF-8): Crypt::Primes - wiarygodny generator liczb pierwszych, nadający się do aplikacji kryptograficznych
Name: perl-Crypt-Primes
-Version: 0.50
-Release: 6
+Version: 0.52
+Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 041947b9645142615d687b89cf2e1a7b
+Source0: https://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 0cdd30e9342b61d122f7f19663a54871
+Patch0: %{name}-pari-stack.patch
URL: http://search.cpan.org/dist/Crypt-Primes/
BuildRequires: perl-Crypt-Random >= 0.33
BuildRequires: perl-Math-Pari >= 2.001804
@@ -50,6 +51,7 @@ Secure Public-Key Cryptographic Parameters, Ueli Maurer (1994))
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/perl-Crypt-Primes-pari-stack.patch b/perl-Crypt-Primes-pari-stack.patch
new file mode 100644
index 0000000..81a6b7c
--- /dev/null
+++ b/perl-Crypt-Primes-pari-stack.patch
@@ -0,0 +1,26 @@
+Test-only: isprime() proof of 1024-bit primes overflows the default 4 MB PARI stack.
+
+diff -urN a/t/genprime_elgamal.t b/t/genprime_elgamal.t
+--- a/t/genprime_elgamal.t 2025-01-25 14:13:42.000000000 +0100
++++ b/t/genprime_elgamal.t 2026-11-21 00:03:04.873109484 +0100
+@@ -10,6 +10,8 @@
+
+ use Crypt::Primes;
+ use Math::Pari qw(floor);
++# isprime() proof of a 1024-bit prime needs more than the default 4 MB PARI stack
++Math::Pari::allocatemem(64_000_000);
+
+ print "1..10\n";
+
+diff -urN a/t/genprime.t b/t/genprime.t
+--- a/t/genprime.t 2025-01-25 14:13:42.000000000 +0100
++++ b/t/genprime.t 2026-11-21 00:03:04.872662834 +0100
+@@ -10,6 +10,8 @@
+
+ use Crypt::Primes qw(maurer);
+ use Math::Pari qw(floor);
++# isprime() proof of a 1024-bit prime needs more than the default 4 MB PARI stack
++Math::Pari::allocatemem(64_000_000);
+
+ print "1..10\n";
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Crypt-Primes.git/commitdiff/eff29b24adc210897bb26b6c9c87cbfe02ab1084
More information about the pld-cvs-commit
mailing list