Your message dated Mon, 18 May 2020 00:18:38 +0000
with message-id <[email protected]>
and subject line Bug#914748: fixed in ant 1.10.8-1
has caused the Debian Bug report #914748,
regarding ant: Fail when installed along with usrmerge and invoked via /bin/ant
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
914748: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914748
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ant
Version: 1.9.10-1
Severity: serious
Tags: patch
Justification: Causes FTBFS
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
When installed along with usrmerge, ant can be invoked via /bin/ant. In this
case it fails with:
/bin/ant: 1: cd: can't cd to /bin/../share/ant/bin/..
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
The attached patch solves the problem for me.
Setting severity to serious because it causes FTBFS. See for example [1].
[1]
https://buildd.debian.org/status/fetch.php?pkg=opencv&arch=amd64&ver=3.2.0%2Bdfsg-4.1%2Bb2&stamp=1542819371&raw=0
Thanks,
_g.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAlv8aaYACgkQ7+hsbH/+
z4MTeAf/dTyabk7caN+jIGWSZfSxW3HTob2CoGUHbTDclbZvVfX91PvbszNJlADO
kXgPZI6ngOky3gx0MwH8H/SqQFt2PamHFdfguSpxWG7ARIERxII7D0ifhFd4eU4V
S1RA/ZH1qP98pTX1FFDTBC4l3a8qqDXgIIOmhWqkqiXcbnG9nJMmOdQJWRDjVHQk
9YI3Si/M9wTATCF6fyQhCUG4YqstY6+5ITvuHnQzFhGebC7TElZDuwqF46ZGNnNp
0LXUZjj1A2/UYGzdx0t2YepcHHXd9tFbrDLUZN2OdIaxNorZGoq1xHAEA7x5ussm
gRyZebWqgf3B2jGmXs194+27iAt1XQ==
=Zgso
-----END PGP SIGNATURE-----
diff -Nru ant-1.10.5/debian/changelog ant-1.10.5/debian/changelog
--- ant-1.10.5/debian/changelog 2018-08-27 14:57:47.000000000 +0200
+++ ant-1.10.5/debian/changelog 2018-11-26 22:00:46.000000000 +0100
@@ -1,3 +1,11 @@
+ant (1.10.5-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * New patch usrmerge-proof.patch to fix failure when installed along
+ with usrmerge and invoked via /bin/ant
+
+ -- Gilles Filippini <[email protected]> Mon, 26 Nov 2018 22:00:46 +0100
+
ant (1.10.5-2) unstable; urgency=medium
* Team upload.
diff -Nru ant-1.10.5/debian/patches/series ant-1.10.5/debian/patches/series
--- ant-1.10.5/debian/patches/series 2018-08-27 14:57:47.000000000 +0200
+++ ant-1.10.5/debian/patches/series 2018-11-26 21:55:03.000000000 +0100
@@ -4,3 +4,4 @@
0013-auto-adjust-target.patch
0015-javadoc-ignore-source-errors.patch
0014-remove-java-activation-module.patch
+usrmerge-proof.patch
diff -Nru ant-1.10.5/debian/patches/usrmerge-proof.patch
ant-1.10.5/debian/patches/usrmerge-proof.patch
--- ant-1.10.5/debian/patches/usrmerge-proof.patch 1970-01-01
01:00:00.000000000 +0100
+++ ant-1.10.5/debian/patches/usrmerge-proof.patch 2018-11-26
22:00:43.000000000 +0100
@@ -0,0 +1,26 @@
+Description: With usrmerge configured, ant may be called via /bin/ant.
+ In this case it fails with:
+ /bin/ant: 1: cd: can't cd to /bin/../share/ant/bin/..
+ Using 'readlink -f' instead of this cumbersome while loop solves the
+ problem.
+Index: ant-1.10.5/src/script/ant
+===================================================================
+--- ant-1.10.5.orig/src/script/ant
++++ ant-1.10.5/src/script/ant
+@@ -144,15 +144,7 @@ if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME"
+ progname=`basename "$0"`
+
+ # need this for relative symlinks
+- while [ -h "$PRG" ]; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
++ PRG=`readlink -f $PRG`
+
+ ANT_HOME=`dirname "$PRG"`/..
+
--- End Message ---
--- Begin Message ---
Source: ant
Source-Version: 1.10.8-1
Done: Emmanuel Bourg <[email protected]>
We believe that the bug you reported is fixed in the latest version of
ant, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Emmanuel Bourg <[email protected]> (supplier of updated ant package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 18 May 2020 01:34:52 +0200
Source: ant
Architecture: source
Version: 1.10.8-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers
<[email protected]>
Changed-By: Emmanuel Bourg <[email protected]>
Closes: 914748 960630
Changes:
ant (1.10.8-1) unstable; urgency=medium
.
* Team upload.
.
[ Emmanuel Bourg ]
* New upstream release
- Refreshed the patches
- Fixes CVE-2020-1945: Insecure temporary file (Closes: #960630)
* Standards-Version updated to 4.5.0
* Switch to debhelper level 12
.
[ Gilles Filippini ]
* Fix failure when installed along with usrmerge and invoked via /bin/ant
(Closes: #914748)
Checksums-Sha1:
e0df211daf2b1a82f7d141a79cbc4546861b0420 2417 ant_1.10.8-1.dsc
c38a22eb964b3c43541f2a255e4af8cc3f07a2d0 3335960 ant_1.10.8.orig.tar.xz
0c3e9e6db812c889a67afba9adf52c4ae861c7d9 19652 ant_1.10.8-1.debian.tar.xz
070e318bba9a60477a74b33b56f04b631df363b5 9370 ant_1.10.8-1_source.buildinfo
Checksums-Sha256:
13716bc1124d54adfa323330a352762a025b18b04bb1d9d267430e9bb44582ee 2417
ant_1.10.8-1.dsc
1efa9dee0c48deaf8362414d40018e59296d4be7a0243d8db25be02782adee98 3335960
ant_1.10.8.orig.tar.xz
fdbc846902424fe8c4a00a49b39c2fc04e4b03cbbe70ae49d23c5b9fa7c20dcc 19652
ant_1.10.8-1.debian.tar.xz
e2381e16c7414b966052ab64032ef89378457bbd58941e9e64cf487ffc63004c 9370
ant_1.10.8-1_source.buildinfo
Files:
9c165b217721c044058ace8e4af58db7 2417 java optional ant_1.10.8-1.dsc
887def809514c70bfe8ee9d875d8857d 3335960 java optional ant_1.10.8.orig.tar.xz
3ad5f53a09da386110563a366d756a1d 19652 java optional ant_1.10.8-1.debian.tar.xz
24bc8acf6cda9f95f614ec9a21c8f624 9370 java optional
ant_1.10.8-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAl7BzbwSHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCs3t4QAIIdHMEQMKkbsnwD1ZHEfgdIzzTJAb9p
VEx3SfQpTlhVSwB2oXZoZXHh2C4D26qhlwnKdZCOonTeDU6eaZBUoRrA4CifJWbS
Q8kqD1wa54klU+EN6y0VqRPVAPlJX842d5TErSzkX8jIh6/YxjCUddBVAXrSnLP4
p1J6fP1+ZxX0vqNZMRqPPZh1J/Eh4LqWOm4Ya7CSvwrM5Vv27bWnZgvF98Xu97UQ
0BR0i+cQRYHk8rbbossr7NIF3zouKF9hhek5NXjtGk2cwzz9XsALu7u6Kfph4PFv
DZo08mccZjg6p4dwv/NaA2uZjZnQReqV4bPM0SD5ex3DEYx0eoZyCJOLMCXZZk6M
9psH1drJftRBYijmOut1dgQJfORSlVR80jY0FBS8+K9PAEHAmbN70Jx8MiHK0bSX
mPfZumriw2LBF79bTB0z0a2Pqz/5BMpx55fUOdQ/1mjkFFR0xrtYk5Y19lTBh3LL
jMR26b2hs+QBHGI5TnczZpU3xR86YTNPClpwmbfu7iH3uFD+gYkchVmSECo1gdsS
VMQAogZUvmShHC4QDXEn1qc/9nfkpYXXKXk1yT9WBMWSaHJSrWHWUI+U9R8pqt0L
rg8tNiSMKG4P87TUI5m6Klbfg/rpBJrgJURGBVixlKjA5jtMTv0klhbGeDabfJSj
tfUQb3IhYvRt
=6wzu
-----END PGP SIGNATURE-----
--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
Please use
[email protected] for discussions and questions.