Description of problem:
is reproducible in fedora 14
Version-Release number of selected component (if applicable):
Apache Ant version 1.7.1 compiled on April 16 2010
See original bug report
Steps to Reproduce:
Ant fails to build, complaining about missing /usr/share/ant/bin/antRun
Ant finds the file and completes the build successfully
# create the directory /usr/share/ant/bin
# symlink the file /usr/bin/antRun to /usr/share/ant/bin/antRun
Do you have ant-scripts installed? This is where antRun is shipped. It is in /usr/bin. Let us know if installing ant-scripts helps.
Not the original poster. I'm on Fedora 15 and experiencing the same problem, hopefully the information I can give will be of use.
My build bombs out with:
Execute failed: java.io.IOException: Cannot run program "/usr/share/ant/bin/antRun": java.io.IOException: error=2, No such file or directory
I don't have the ant-scripts package installed, however:
[paul.milliken@besaid pide]$ which antRun
[paul.milliken@besaid pide]$ rpm -qf `which antRun`
it seems that antRun comes with the main ant package. However, I install ant-scripts using yum, then checked it:
[paul.milliken@besaid pide]$ rpm -ql ant-scripts
and tried my build again. Which failed in the same manner.
It looks (to me) like antRun is installed, but isn't where the rest of ant expects it to be.
Apologies for the delayed response.
I'm on Fedora 15 now, ant-scripts is installed and the problem still exists.
Ant does not find the installed antRun in /usr/bin, but reports it missing from /usr/share/ant/bin.
$ locate antRun reports
(and some other entries too, but it exists where it should be.)
In /usr/share/ant/ there is no bin/ directory, but creating it and symlinking /usr/bin/antRun into it is a workaround to the problem.
I can probably confirm this on F14 as well later, but since it's not solved on F15 it is probably the same as before.
Should this bug report be changed to applying to F15?
I'm on Fedora 14 now and the problem still exists.
ant-scripts is installed and antRun is in /usr/bin.
Workaround still works.
This message is a notice that Fedora 14 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 14. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.
(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 14 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
Problem still exists under Fedora 19. How hard is it to fix this seemingly trivial bug?
(In reply to Dhiru Kholia from comment #6)
> Problem still exists under Fedora 19. How hard is it to fix this seemingly
> trivial bug?
We are always happy to apply patches for the trivial bugs. It's the perfect way to get engaged with the community.
git formatted patch is preferred.
Created attachment 792257 [details]
Fixed in ant-1.9.2-6
I believe that this bug is fixed in ant-1.9.2-6,
which is available in Fedora 20, so I am closing this bug now.
The build containing the fix can be found at Koji:
This bug was fixed in the next release of Fedora, and is not planned
to be fixed in the release it was filed against. If you want this bug
to be fixed in updates for Fedora 19, please say so in a comment.
Otherwise you can update to the newer release of Fedora to get the fix.