Bug 1841262

Summary: please build for perl-Crypt-Random for epel8
Product: [Fedora] Fedora Reporter: Charles R. Anderson <cra>
Component: perl-Crypt-RandomAssignee: Paul Howarth <paul>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: paul, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-29 10:16:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles R. Anderson 2020-05-28 18:10:31 UTC
Please build perl-Crypt-Random for epel8, or if you wish I can do that if you add me as a maintainer.  My FAS username is cra.

Thanks.

Comment 1 Paul Howarth 2020-05-28 19:18:00 UTC
perl-Crypt-Random depends on perl-Math-Pari and I'd really rather not have to maintain that in EPEL-8 as it currently only builds against an old compat package for libpari.

The dependency seems to come from perl-Crypt-PWSafe3, which itself prefers to use perl-Bytes-Random-Secure over perl-Crypt-Random if it's available. Unfortunately the Crypt-PWSafe3 dist still has a hard dependency on Crypt::Random but I'd rather put my effort into fixing that than building Crypt-Random and Math-Pari in EPEL-8.

perl-Bytes-Random-Secure has further dependencies:
 * perl(Crypt::Random::Seed)
 * perl(Statistics::Basic)
They don't look too onerous though.

Would you be OK with this approach (I can help) or would you prefer to stick with Crypt::Random and you can be branch maintainer, along with perl-Math-Pari and libpari23?

Comment 2 Charles R. Anderson 2020-05-28 19:29:25 UTC
(In reply to Paul Howarth from comment #1)
> The dependency seems to come from perl-Crypt-PWSafe3, which itself prefers
> to use perl-Bytes-Random-Secure over perl-Crypt-Random if it's available.
> Unfortunately the Crypt-PWSafe3 dist still has a hard dependency on
> Crypt::Random but I'd rather put my effort into fixing that than building
> Crypt-Random and Math-Pari in EPEL-8.

Thanks for explaining the situation.  I'd be happy to fix perl-Crypt-PWSafe3.  Are you suggesting changing Crypt::PWSafe to prefer Bytes::Random::Secure instead of Crypt::Random?

Comment 3 Paul Howarth 2020-05-28 19:37:13 UTC
(In reply to Charles R. Anderson from comment #2)
> (In reply to Paul Howarth from comment #1)
> > The dependency seems to come from perl-Crypt-PWSafe3, which itself prefers
> > to use perl-Bytes-Random-Secure over perl-Crypt-Random if it's available.
> > Unfortunately the Crypt-PWSafe3 dist still has a hard dependency on
> > Crypt::Random but I'd rather put my effort into fixing that than building
> > Crypt-Random and Math-Pari in EPEL-8.
> 
> Thanks for explaining the situation.  I'd be happy to fix
> perl-Crypt-PWSafe3.  Are you suggesting changing Crypt::PWSafe to prefer
> Bytes::Random::Secure instead of Crypt::Random?

Yes, if you're happy with this approach I'll work on a PR to send upstream to perl-Crypt-PWSafe3 so it'll be happy with not having Crypt::Random available. I can then work on getting the dependencies of perl-Bytes-Random-Secure into EPEL-8.

Comment 4 Charles R. Anderson 2020-05-28 19:42:56 UTC
(In reply to Paul Howarth from comment #3)
> (In reply to Charles R. Anderson from comment #2)
> > (In reply to Paul Howarth from comment #1)
> > > The dependency seems to come from perl-Crypt-PWSafe3, which itself prefers
> > > to use perl-Bytes-Random-Secure over perl-Crypt-Random if it's available.
> > > Unfortunately the Crypt-PWSafe3 dist still has a hard dependency on
> > > Crypt::Random but I'd rather put my effort into fixing that than building
> > > Crypt-Random and Math-Pari in EPEL-8.
> > 
> > Thanks for explaining the situation.  I'd be happy to fix
> > perl-Crypt-PWSafe3.  Are you suggesting changing Crypt::PWSafe to prefer
> > Bytes::Random::Secure instead of Crypt::Random?
> 
> Yes, if you're happy with this approach I'll work on a PR to send upstream
> to perl-Crypt-PWSafe3 so it'll be happy with not having Crypt::Random
> available. I can then work on getting the dependencies of
> perl-Bytes-Random-Secure into EPEL-8.

That would be excellent.  Thank you.

Comment 5 Paul Howarth 2020-05-29 08:27:08 UTC
PR for Crypt-PWSafe3:
https://github.com/TLINDEN/Crypt--PWSafe3/pull/11

Comment 6 Paul Howarth 2020-05-29 10:16:43 UTC
Moving to Bug #1841308