diff --git a/CryptX-0.059-remove-buggy-Math-BigInt-related-tests.patch b/CryptX-0.059-remove-buggy-Math-BigInt-related-tests.patch new file mode 100644 index 0000000..2cac0a2 --- /dev/null +++ b/CryptX-0.059-remove-buggy-Math-BigInt-related-tests.patch @@ -0,0 +1,104 @@ +From 9b655434721db4608c403f3ec1bf3ed90d45fb42 Mon Sep 17 00:00:00 2001 +From: Karel Miko +Date: Fri, 27 Apr 2018 19:01:54 +0200 +Subject: [PATCH] remove buggy Math::BigInt related tests +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + t/mbi_ltm/bigfltpm.inc | 3 --- + t/mbi_ltm/bigintpm.inc | 5 ----- + t/mbi_ltm_bigfltpm.t | 2 +- + t/mbi_ltm_bigintpm.t | 2 +- + t/mbi_ltm_bugs.t | 2 +- + 5 files changed, 3 insertions(+), 11 deletions(-) + +diff --git a/t/mbi_ltm/bigfltpm.inc b/t/mbi_ltm/bigfltpm.inc +index 10d05137..97e7cdca 100644 +--- a/t/mbi_ltm/bigfltpm.inc ++++ b/t/mbi_ltm/bigfltpm.inc +@@ -950,9 +950,6 @@ NaN:21:NaN + abc:123.456:NaN + 123.456:abc:NaN + +inf:123.45:inf +--inf:123.45:-inf +-+inf:-123.45:inf +--inf:-123.45:-inf + -2:2:4 + -2:3:-8 + -2:4:16 +diff --git a/t/mbi_ltm/bigintpm.inc b/t/mbi_ltm/bigintpm.inc +index 0798e544..35efeca4 100644 +--- a/t/mbi_ltm/bigintpm.inc ++++ b/t/mbi_ltm/bigintpm.inc +@@ -2651,26 +2651,21 @@ abc:12:NaN + +inf:1234500012:inf + -inf:1234500012:inf + -inf:1234500013:-inf +-+inf:-12345000123:inf +--inf:-12345000123:-inf + # -inf * -inf = inf + -inf:2:inf + -inf:0:NaN + -inf:-1:0 +--inf:inf:NaN + 2:inf:inf + 2:-inf:0 + 0:inf:0 + 0:-inf:inf + -1:-inf:NaN + -1:inf:NaN +--2:inf:NaN + -2:-inf:0 + NaN:inf:NaN + NaN:-inf:NaN + -inf:NaN:NaN + inf:NaN:NaN +-inf:-inf:NaN + 1:inf:1 + 1:-inf:1 + # 1 ** -x => 1 / (1 ** x) +diff --git a/t/mbi_ltm_bigfltpm.t b/t/mbi_ltm_bigfltpm.t +index 3540868a..8173e27b 100644 +--- a/t/mbi_ltm_bigfltpm.t ++++ b/t/mbi_ltm_bigfltpm.t +@@ -7,7 +7,7 @@ use Test::More; + + BEGIN { + plan skip_all => "requires Math::BigFloat 1.999715+" unless eval { require Math::BigFloat && eval($Math::BigFloat::VERSION) >= 1.999715 }; +- plan tests => 2409 # tests in require'd file ++ plan tests => 2403 # tests in require'd file + + 5; # tests in this file + } + +diff --git a/t/mbi_ltm_bigintpm.t b/t/mbi_ltm_bigintpm.t +index ebb7582e..976e7b1e 100644 +--- a/t/mbi_ltm_bigintpm.t ++++ b/t/mbi_ltm_bigintpm.t +@@ -7,7 +7,7 @@ use Test::More; + + BEGIN { + plan skip_all => "requires Math::BigInt 1.999712+" unless eval { require Math::BigInt && eval($Math::BigInt::VERSION) >= 1.999712 }; +- plan tests => 3722 # tests in require'd file ++ plan tests => 3712 # tests in require'd file + + 6; # tests in this file + } + +diff --git a/t/mbi_ltm_bugs.t b/t/mbi_ltm_bugs.t +index ebb7582e..976e7b1e 100644 +--- a/t/mbi_ltm_bugs.t ++++ b/t/mbi_ltm_bugs.t +@@ -7,7 +7,7 @@ use Test::More; + + BEGIN { + plan skip_all => "requires Math::BigInt 1.999712+" unless eval { require Math::BigInt && eval($Math::BigInt::VERSION) >= 1.999712 }; +- plan tests => 3722 # tests in require'd file ++ plan tests => 3712 # tests in require'd file + + 6; # tests in this file + } + +-- +2.14.3 + diff --git a/perl-CryptX.spec b/perl-CryptX.spec index a43dff9..86ba2dd 100644 --- a/perl-CryptX.spec +++ b/perl-CryptX.spec @@ -5,7 +5,7 @@ Name: perl-CryptX Version: 0.053 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Cryptographic toolkit # Other file: GPL+ or Artistic ## Unbundled @@ -23,6 +23,8 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIK/CryptX-%{version Patch0: CryptX-0.053-Disable-ECC-and-unbundle-libtomcrypt.patch # Validate decode_b58b input properly, in upstream 0.058 Patch1: CryptX-0.053-bug-decode_b58b-invalid-input.patch +# Adapt tests to changes in Math::BigInt 1.999813, in upstream 0.060 +Patch2: CryptX-0.059-remove-buggy-Math-BigInt-related-tests.patch BuildRequires: findutils BuildRequires: gcc BuildRequires: libtomcrypt-devel @@ -76,6 +78,7 @@ ECC support is disabled because it's not yet fully supported by LibTomCrypt. %patch0 -p1 rm -rf ./src %patch1 -p1 +%patch2 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" @@ -99,6 +102,9 @@ make test %{_mandir}/man3/* %changelog +* Thu May 03 2018 Petr Pisar - 0.053-4 +- Adapt tests to changes in Math::BigInt 1.999813 + * Thu Mar 1 2018 Florian Weimer - 0.053-3 - Rebuild with new redhat-rpm-config/perl build flags