Bug 1284585

Summary: need to modify to not require ant/java
Product: Red Hat Enterprise Linux 7 Reporter: Ade Lee <alee>
Component: qdoxAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.3CC: jpazdziora, mcermak, mizdebsk, mkosek, ovasik, robert
Target Milestone: rcKeywords: EasyFix
Target Release: 7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qdox-1.12.1-10.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 00:06:11 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:
Bug Depends On:    
Bug Blocks: 1283777, 1296125, 1313485    

Description Ade Lee 2015-11-23 15:53:56 UTC
Description of problem:

This is needed for the effort to containerize IPA.  We need to reduce the footprint of the image - and can do so by pulling in java-headless instead of
the full java stack.

pki-server -> ... -> qdox -> ant -> java-devel -> java

The changes to do this (and convert in general to use java-headless) are
already in Fedora.  We just need them backported to RHEL 7.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Mikolaj Izdebski 2015-11-25 11:00:02 UTC
Dependency on ant was originally optional, but it was changed to non-optional by pom macros. It should be safe to change it back to optional and filter generated requires to remove this dependency.

Comment 3 Martin Kosek 2015-12-02 11:57:54 UTC
Based on the initial measurement in Fedora, this could save about 300 MB of requirements for FreeIPA, which is pretty significant saving, for our users.

Comment 7 Robert Marcano 2016-03-01 15:45:11 UTC
Or remove ant-devel requirement from ant on RHEL. I don't think it is needed, current Fedora hasn't that dependency. I can install ant on Fedora without pulling any java*-devel package

Comment 9 Jan Pazdziora 2016-03-21 12:09:16 UTC
It looks like the dependency on non-headless-java is still there:

# rpm -q --requires qdox-1.12.1-10.el7
java >= 1.5
jpackage-utils
mvn(junit:junit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

Comment 10 Mikolaj Izdebski 2016-03-21 12:24:16 UTC
Dependency on ant was removed. Dependency on java won't be removed as java is required for qdox to be usable.

Comment 11 Jan Pazdziora 2016-03-21 12:52:50 UTC
(In reply to Mikolaj Izdebski from comment #10)
> Dependency on ant was removed. Dependency on java won't be removed as java
> is required for qdox to be usable.

Do you say java-headless is not enough? On Fedora 23, the dependencies are

# rpm -q --requires qdox-2.0-0.4.M3.fc23
java-headless >= 1:1.5
jpackage-utils
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

But as noted in 1284579, it looks like the dependency gets into the package via some rpm autodependency mechanism because the 'java >= 1.5' is not there in the .spec file.

Comment 12 Mikolaj Izdebski 2016-03-21 13:09:43 UTC
Fedora is not RHEL. Fedora has a feature that enabled headless Java (implemented in Fedora 21, see https://fedoraproject.org/wiki/Changes/HeadlessJava), RHEL 7 does not (it is based on Fedora 18/19).

Comment 15 errata-xmlrpc 2016-11-04 00:06:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2180.html