Bug 1948957 - perl-Crypt-CBC-3.02 requires perl-Math-Int128 which does not exist on 32-bit platforms
Summary: perl-Crypt-CBC-3.02 requires perl-Math-Int128 which does not exist on 32-bit ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Crypt-CBC
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-13 07:08 UTC by Petr Pisar
Modified: 2021-04-15 18:42 UTC (History)
3 users (show)

Fixed In Version: perl-Crypt-CBC-3.02-2.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-15 18:42:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2021-04-13 07:08:53 UTC
This commit added a hard-dependency on perl(Math::Int128):

commit 83ca22c6b56fadcbf8914ec52cdb381dc2efb88d (HEAD -> rawhide, origin/rawhide, origin/main, origin/HEAD)
Author: Paul Howarth <paul>
Date:   Mon Apr 12 09:39:41 2021 +0100

    Update to 3.02
    
    - New upstream release 3.02
      - CTR mode now requires the Math::Int128 module, which gives a ~5x
        performance boost over Math::BigInt

diff --git a/perl-Crypt-CBC.spec b/perl-Crypt-CBC.spec
index 436c3cf..caffc3c 100644
--- a/perl-Crypt-CBC.spec
+++ b/perl-Crypt-CBC.spec
@@ -1,6 +1,6 @@
 Summary:        Encrypt Data with Cipher Block Chaining Mode
 Name:           perl-Crypt-CBC
-Version:        3.01
+Version:        3.02
 Release:        1%{?dist}
 # Upstream confirms that they're under the same license as perl.
 # Wording in CBC.pm is less than clear, but still.
@@ -24,7 +24,7 @@ BuildRequires:  perl(Crypt::PBKDF2)
 BuildRequires:  perl(Digest::MD5) >= 2.00
 BuildRequires:  perl(Digest::SHA)
 BuildRequires:  perl(File::Basename)
-BuildRequires:  perl(Math::BigInt)
+BuildRequires:  perl(Math::Int128)

But perl(Math::Int128) is not available on 32-bit platforms <https://koji.fedoraproject.org/koji/buildinfo?buildID=1686388>. You should relax the dependency.

Comment 1 Paul Howarth 2021-04-15 15:57:20 UTC
I removed the BuildRequires: (CTR mode is not tested) and dropped the Requires: down to a Recommends:

Hope that helps.

I requested support for fallback to the old implementation using Math::BigInt if Math::Int128 is unavailable (https://github.com/lstein/Lib-Crypt-CBC/issues/3).

Comment 2 Paul Howarth 2021-04-15 18:42:55 UTC
Rawhide build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=66014072


Note You need to log in before you can comment on or make changes to this bug.