Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1357282

Summary: Rebuilding of jss srpm fails when java-1.8.0-openjdk is used
Product: Red Hat Enterprise Linux 7 Reporter: Asha Akkiangady <aakkiang>
Component: jssAssignee: Matthew Harmsen <mharmsen>
Status: CLOSED DUPLICATE QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: mharmsen
Target Milestone: rc   
Target Release: 7.3   
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: 2016-08-09 04:12:39 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:
Attachments:
Description Flags
Rebuilding of jss srpm with java-1.8.0-openjdk
none
javadocs patch
none
javadocs patch (spec file changes) none

Description Asha Akkiangady 2016-07-17 17:03:21 UTC
Created attachment 1180810 [details]
Rebuilding of jss srpm with java-1.8.0-openjdk

Description of problem:
Rebuilding of jss srpm fails when java-1.8.0-openjdk is used.

Version-Release number of selected component (if applicable):
jss-4.2.6-41.el7

How reproducible:
Always

Steps to Reproduce:
1. Execute errata TPS tests for the srpm using java-1.8.0-openjdk.

Actual results:
Attached.

Expected results:
jss srpm should build successfully with java-1.8.0-openjdk.

Additional info:
With java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2 jss srpm rebuilds successfully.

Comment 1 Asha Akkiangady 2016-07-17 17:04:35 UTC
# alternatives --config javac

There are 3 programs which provide 'javac'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.0-1jpp.1.el7.x86_64/bin/javac
   2           /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/bin/javac
*+ 3           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-1.b14.el7_2.x86_64/bin/javac

Comment 3 Matthew Harmsen 2016-08-03 21:22:32 UTC
Created attachment 1187215 [details]
javadocs patch

Comment 4 Matthew Harmsen 2016-08-03 21:23:48 UTC
Created attachment 1187216 [details]
javadocs patch (spec file changes)

Comment 5 Matthew Harmsen 2016-08-09 04:12:39 UTC
I have discovered the problem --- my patch is NOT needed!

The problem was that my patch was quite similar to Endi's patch that was missing from RHEL 7, and as a consequence would not apply since Endi's patch already fixed all of these issues.

So, please do the following:

    RHEL:
        * Add 'jss-Fixed-build-failures.patch' patch
        * jss.spec file diffs:
          * # diff jss.spec.orig SPECS/jss.spec
            3c3
            < Release:        41%{?dist}
            ---
            > Release:        42%{?dist}
            53,56c53,57
            < Patch29:        jss-VerifyCertificate-enhancement.patch
            < Patch30:        jss-lunasaUnwrap.patch
            < Patch31:        jss-symkey-enhancements.patch
            < Patch32:        jss-crmf-envelopedData.patch
            ---
            > Patch29:        jss-Fixed-build-failures.patch
            > Patch30:        jss-VerifyCertificate-enhancement.patch
            > Patch31:        jss-lunasaUnwrap.patch
            > Patch32:        jss-symkey-enhancements.patch
            > Patch33:        jss-crmf-envelopedData.patch
            104a106
            > %patch33 -p1
            208a211,213
            > * Mon Aug  8 2016 Matthew Harmsen <mharmsen> - 4.2.6-42
            > - Sync all patches from both Fedora and RHEL (cfu, edewata)
            >
    FEDORA:
        * Add 'jss-WindowsCompileFix.patch' and 'jss-WindowsLoadLibrary.patch'
          patches
        * jss.spec file diffs:
          * # diff jss.spec.orig SPECS/jss.spec
            3c3
            < Release:        41%{?dist}
            ---
            > Release:        42%{?dist}
            51,55c51,57
            < Patch27:        jss-Fixed-build-failures.patch
            < Patch28:        jss-VerifyCertificate-enhancement.patch
            < Patch29:        jss-lunasaUnwrap.patch
            < Patch30:        jss-symkey-enhancements.patch
            < Patch31:        jss-crmf-envelopedData.patch
            ---
            > Patch27:        jss-WindowsCompileFix.patch
            > Patch28:        jss-WindowsLoadLibrary.patch
            > Patch29:        jss-Fixed-build-failures.patch
            > Patch30:        jss-VerifyCertificate-enhancement.patch
            > Patch31:        jss-lunasaUnwrap.patch
            > Patch32:        jss-symkey-enhancements.patch
            > Patch33:        jss-crmf-envelopedData.patch
            103a106,107
            > %patch32 -p1
            > %patch33 -p1
            207a212,214
            > * Mon Aug  8 2016 Matthew Harmsen <mharmsen> - 4.2.6-42
            > - Sync all patches from both Fedora and RHEL (cfu, edewata)
            >

Rebuild on Koji jss/fc24, jss/fc25, and jss/master; rebuild on Brew jss/rhel-7.3.

*** This bug has been marked as a duplicate of bug 1289799 ***