Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1269629

Summary: [epel7s390x] bouncycastle-pkix SRPM does not build correctly on s390x
Product: [Fedora] Fedora EPEL Reporter: IBM Bug Proxy <bugproxy>
Component: bouncycastle-pkixAssignee: Orphan Owner <extras-orphan>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: dan, dhorak, hannsj_uhl, java-sig-commits, jkachuck, jochen, langel, msrb
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 11:05:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1267648    

Description IBM Bug Proxy 2015-10-07 19:15:33 UTC

Comment 1 IBM Bug Proxy 2015-10-07 19:15:35 UTC
The EPEL 7 SRPM for bouncycastle-pkix 
https://dl.fedoraproject.org/pub/epel/7/SRPMS/b/bouncycastle-pkix-1.50-1.el7.src.rpm 
does not build correctly in Mock on s390x.

The compilation succeeded with no error. But the unit tests encountered issue with signing, therefore preventing RPM from being built. 

Here is the stack trace of erroneous unit test:
    [junit] Testcase: testEncryptedValue took 2.332 sec
    [junit]     Caused an ERROR
    [junit] cannot create key generator: JCE cannot authenticate the provider BC
    [junit] org.bouncycastle.cert.crmf.CRMFException: cannot create key generator: JCE cannot authenticate the provider BC
    [junit]     at org.bouncycastle.cert.crmf.jcajce.CRMFHelper.createKeyGenerator(CRMFHelper.java:158)
    [junit]     at org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.<init>(JceCRMFEncryptorBuilder.java:80)
    [junit]     at org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.build(JceCRMFEncryptorBuilder.java:67)
    [junit]     at org.bouncycastle.cert.crmf.test.AllTests.testEncryptedValue(AllTests.java:262)
    [junit] Caused by: java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
    [junit]     at javax.crypto.b.a(Unknown Source)
    [junit]     at javax.crypto.KeyGenerator.getInstance(Unknown Source)
    [junit]     at org.bouncycastle.jcajce.NamedJcaJceHelper.createKeyGenerator(NamedJcaJceHelper.java:65)
    [junit]     at org.bouncycastle.cert.crmf.jcajce.CRMFHelper.createKeyGenerator(CRMFHelper.java:147)
    [junit] Caused by: java.util.jar.JarException: file:/usr/share/java/bcprov.jar has unsigned entries - org/bouncycastle/LICENSE.class
    [junit]     at javax.crypto.a.a(Unknown Source)
    [junit]     at javax.crypto.a.a(Unknown Source)
    [junit]     at javax.crypto.a.a(Unknown Source)
    [junit]     at javax.crypto.b.b(Unknown Source)
    [junit]     at javax.crypto.b.a(Unknown Source)

Comment 2 Mat Booth 2015-10-08 08:30:03 UTC
Changing product to "EPEL"...

Comment 3 IBM Bug Proxy 2016-02-23 17:32:23 UTC
------- Comment From vsandhya.com 2016-02-23 12:11 EDT-------
Any updates?

Comment 4 IBM Bug Proxy 2020-04-14 08:02:24 UTC
------- Comment From tstaudt.com 2020-04-14 03:54 EDT-------
With no activity in this bug for years, I'm now closing this on the IBM side.
If the problem still needs to be addressed, please re-open or preferably open a new bug.

Thanks.