#979624 ant doesn't work when called as /bin/ant

#979624#5
Date:
2021-01-09 09:06:31 UTC
From:
To:
Dear Maintainer,

When calling "ant" through "/bin/ant" instead of "/usr/bin/ant" it fails
with "/bin/ant: 1: cd: can't cd to /bin/../share/ant/bin/..". This also
happens when "/bin" is in $PATH before "/usr/bin".

#979624#10
Date:
2021-01-10 22:28:43 UTC
From:
To:
Hi Jochen,

This looks like a duplicate of bug #914748 [1] and is addressed by the
patch [2].  (I tested on a system with usrmerge installed to be sure.)
However, the patch hasn't been backported to stable.

Cheers,
tony

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914748
[2] https://salsa.debian.org/java-team/ant/-/blob/master/debian/patches/0017-usrmerge-proof.patch