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.
Description of problem:
When rpm_mode=true, Ant has problems locating and using a jarfile that exists in ~/.ant/lib
Steps to Reproduce:
1. Install subversion, ant, ant-junit, ant-nodeps, and an Oracle JDK.
2. > svn co http://svn.apache.org/repos/asf/lucene/dev/trunk
3. > cd trunk
4. > ant ivy-bootstrap
5. Observe that a jar for ivy has been downloaded to ~/.ant/lib.
6. > ant
7. Observe that it fails to find ivy.
8a. Comment out rpm_mode=true in ant.conf.
8b. OR: Add rpm_mode=false to ~/.ant/ant.conf
9. > ant
10. Observe that ivy is found and that ant proceeds to run Lucene tests.
11. Download Ant from apache's website.
12. Configure ANT_HOME.
13. > /path/to/downloaded/ant
14. Observe that once again ivy is found and works.
Additional info:
I'm not 100% sure that I've listed all the package requirements
The ivy jar is shown when echoing java.class.path and rpm_mode=true, so I don't know why it isn't found.
CentOS release 6.0 (Final)
Repos used: base, updates, extras, centosplus, contrib, cr, epel, rpmforge.
Also happens on a CentOS 6.2 system.
Lucene bug: https://issues.apache.org/jira/browse/LUCENE-3946
Others have reported having the same problem with some releases of Fedora. I have not tried this on 5.x.
Comment 3RHEL Program Management
2012-09-07 05:35:47 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Red Hat Enterprise Linux version 6 is entering the Production 2 phase of its lifetime and this bug doesn't meet the criteria for it, i.e. only high severity issues will be fixed. Please see https://access.redhat.com/support/policy/updates/errata/ for further information.
Comment 5RHEL Program Management
2016-07-22 06:15:50 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.
I'm reasonably certain that this probably still affects version 7. On the Lucene/Solr mailing lists, we have to frequently tell people that they cannot use the redhat-packaged version of ant to build our software. They must download ant themselves and set ANT_HOME.