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 1284579

Summary: Need to modify to not bring in ant as a dependency
Product: Red Hat Enterprise Linux 7 Reporter: Ade Lee <alee>
Component: msvAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED ERRATA QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: dyordano, jgalipea, jhutar, jpazdziora, jvanek, kbanerje, lmiksik, mizdebsk, mkosek, msrb, nsoman, ohudlick, ovasik, rpattath, satqe-list, sochotni
Target Milestone: rc   
Target Release: 7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: msv-2013.5.1-7.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:03:37 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:50:12 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 -> velocity -> jaxen -> dom4j -> msv-msv -> 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 10:38:40 UTC
ant is used only by test harness, so it should be OK to remove requires on it.

Comment 3 Martin Kosek 2015-12-02 11:58:23 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 19 Asha Akkiangady 2016-03-10 12:45:44 UTC
Providing the qa_ack+.
RHCS QE will verify this bug sanity only when pki tests pass.

Comment 21 Jan Pazdziora (Red Hat) 2016-03-21 12:09:57 UTC
It looks like the dependency on non-headless-java is still there:

# rpm -q --requires msv-msv-2013.5.1-7.el7
/bin/sh
java >= 1.5
jpackage-utils
mvn(isorelax:isorelax)
mvn(net.java.dev.msv:xsdlib) = 2013.5.1
mvn(relaxngDatatype:relaxngDatatype)
mvn(xerces:xercesImpl)
mvn(xml-resolver:xml-resolver)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

Comment 22 Mikolaj Izdebski 2016-03-21 12:23:18 UTC
This bug is about removing dependency on ant, which brings java-devel. Dependency on java won't be removed as java is required for msv to be usable.

Comment 23 jiri vanek 2016-03-21 12:26:30 UTC
Are yusure java and not java-headless?
Also, are you sure with >=1.5 ?

I might be out of loop - but I recently crossed over package which was requesting 1.7 in build, and in runtime had still >= 1.5 - so it was not able to run when jdk6 was installed.

So just to recall it ...

Comment 24 Jan Pazdziora (Red Hat) 2016-03-21 12:39:37 UTC
(In reply to Mikolaj Izdebski from comment #22)
> This bug is about removing dependency on ant, which brings java-devel.
> Dependency on java won't be removed as java is required for msv to be usable.

Fair enough. Should we file another bugzilla for moving into java-headless dependency?

Comment 26 Jan Pazdziora (Red Hat) 2016-03-21 12:45:00 UTC
For the record, dependencies on Fedora 23 are:

# rpm -q --requires msv-msv-2013.6.1-6.fc23
/bin/bash
java-headless >= 1:1.6
jpackage-utils
mvn(isorelax:isorelax)
mvn(net.java.dev.msv:xsdlib) = 2013.6.1
mvn(xml-resolver:xml-resolver)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

Comment 30 Mikolaj Izdebski 2016-03-21 13:32:27 UTC
RHEL 7 packaging guidelines is the same as Fedora 19 packaging guidelines, according to which all packages that require Java runtime (JRE) to work should require "java". These requires are generated automatically for all Java packages. I wouldn't mind changing most of "java" requires to "java-headless", but that would mean updating hundreds of packages and is not likely to be approved. On the other hand, changing only a few packages introduces inconsistency and means adding hacks to work around automatic dependency generators and established policy.

Comment 31 Roshni 2016-08-05 13:30:15 UTC
[root@ipaqavmf ~]# rpm -q --requires msv-msv
/bin/sh
java >= 1.5
jpackage-utils
mvn(isorelax:isorelax)
mvn(net.java.dev.msv:xsdlib) = 2013.5.1
mvn(relaxngDatatype:relaxngDatatype)
mvn(xerces:xercesImpl)
mvn(xml-resolver:xml-resolver)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

[root@ipaqavmf ~]# rpm -q msv-msv
msv-msv-2013.5.1-7.el7.noarch

[root@ipaqavmf ~]# rpm -q ant
package ant is not installed

Comment 33 errata-xmlrpc 2016-11-04 01:03:37 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-2224.html