Your message dated Mon, 27 Feb 2012 07:17:55 +0000
with message-id <e1s1uqj-0003oe...@franck.debian.org>
and subject line Bug#651492: fixed in tomcat7 7.0.23-2
has caused the Debian Bug report #651492,
regarding tomcat7: Error in debian/rules causes tomcat to report no version
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 ow...@bugs.debian.org
immediately.)


-- 
651492: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651492
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tomcat6
Version: 6.0.28-9+squeeze1
Severity: normal
Tags: patch

Hello,

The tomcat6 packaged in debian reports no version. This can be seen executing:
$ /usr/share/tomcat6/bin/version.sh

Which results in:

Using CATALINA_BASE:   /usr/share/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/share/tomcat6/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.28
Server built:   February 12 2011 1443
Server number:  ...0
OS Name:        Linux
OS Version:     2.6.32-5-amd64
Architecture:   amd64
JVM Version:    1.6.0_18-b18
JVM Vendor:     Sun Microsystems Inc.

The server number should contain "6.0.28.0".

This doesn't seem to affect functionality, but it does affect the integration 
of 
tomcat with other development tools. For example, netbeans 7.0.1 refuses to 
use this tomcat installation to deploy webapps as it can't determine the 
version.

I've dug into it and found that the version number is fed to the build system 
in the ant command line in the debian/rules script. The version is read from 
the changelog, but then it's wrongly parsed into major/minor/build versions.

I've attached the patch I used to solve it.

I can confirm this happens in the tomcat6 packages in both squeeze and wheezy, 
as well as in the tomcat7 packages from unstable and testing. I'll file another 
bug report against it if needed.

-- 
Jorge Barreiro González
aCore
jbarre...@acore.es
http://www.acore.es
Tel. 881 927 189
--- debian/rules	2011-12-01 17:11:19.000000000 +0100
+++ debian/rules	2011-12-01 13:52:41.000000000 +0100
@@ -21,9 +21,9 @@
 	| cut -f 2 -d ' ' | cut -f 2 -d ' '|sed 's/-[^-]*$$//')
 T_JARS := tomcat-i18n-fr tomcat-i18n-es tomcat-i18n-ja catalina-ant
 T_MAVENIZED_JARS := jasper-el annotations-api jasper catalina-ha catalina
-T_VER_MAJOR := $(echo $(T_VER) | cut -d'.' -f1)
-T_VER_MINOR := $(echo $(T_VER) | cut -d'.' -f2)
-T_VER_BUILD := $(echo $(T_VER) | cut -d'.' -f3)
+T_VER_MAJOR := $(shell echo $(T_VER) | cut -d'.' -f1)
+T_VER_MINOR := $(shell echo $(T_VER) | cut -d'.' -f2)
+T_VER_BUILD := $(shell echo $(T_VER) | cut -d'.' -f3)
 
 ANT_ARGS := -Dcompile.debug=true \
 	-Dant.build.javac.source=1.5 \

--- End Message ---
--- Begin Message ---
Source: tomcat7
Source-Version: 7.0.23-2

We believe that the bug you reported is fixed in the latest version of
tomcat7, which is due to be installed in the Debian FTP archive:

libservlet3.0-java-doc_7.0.23-2_all.deb
  to main/t/tomcat7/libservlet3.0-java-doc_7.0.23-2_all.deb
libservlet3.0-java_7.0.23-2_all.deb
  to main/t/tomcat7/libservlet3.0-java_7.0.23-2_all.deb
libtomcat7-java_7.0.23-2_all.deb
  to main/t/tomcat7/libtomcat7-java_7.0.23-2_all.deb
tomcat7-admin_7.0.23-2_all.deb
  to main/t/tomcat7/tomcat7-admin_7.0.23-2_all.deb
tomcat7-common_7.0.23-2_all.deb
  to main/t/tomcat7/tomcat7-common_7.0.23-2_all.deb
tomcat7-docs_7.0.23-2_all.deb
  to main/t/tomcat7/tomcat7-docs_7.0.23-2_all.deb
tomcat7-examples_7.0.23-2_all.deb
  to main/t/tomcat7/tomcat7-examples_7.0.23-2_all.deb
tomcat7-user_7.0.23-2_all.deb
  to main/t/tomcat7/tomcat7-user_7.0.23-2_all.deb
tomcat7_7.0.23-2.debian.tar.gz
  to main/t/tomcat7/tomcat7_7.0.23-2.debian.tar.gz
tomcat7_7.0.23-2.dsc
  to main/t/tomcat7/tomcat7_7.0.23-2.dsc
tomcat7_7.0.23-2_all.deb
  to main/t/tomcat7/tomcat7_7.0.23-2_all.deb



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 651...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
tony mancill <tmanc...@debian.org> (supplier of updated tomcat7 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 ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 26 Feb 2012 22:55:33 -0800
Source: tomcat7
Binary: tomcat7-common tomcat7 tomcat7-user libtomcat7-java libservlet3.0-java 
libservlet3.0-java-doc tomcat7-admin tomcat7-examples tomcat7-docs
Architecture: source all
Version: 7.0.23-2
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers 
<pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: tony mancill <tmanc...@debian.org>
Description: 
 libservlet3.0-java - Servlet 3.0 and JSP 2.2 Java API classes
 libservlet3.0-java-doc - Servlet 3.0 and JSP 2.2 Java API documentation
 libtomcat7-java - Servlet and JSP engine -- core libraries
 tomcat7    - Servlet and JSP engine
 tomcat7-admin - Servlet and JSP engine -- admin web applications
 tomcat7-common - Servlet and JSP engine -- common files
 tomcat7-docs - Servlet and JSP engine -- documentation
 tomcat7-examples - Servlet and JSP engine -- example web applications
 tomcat7-user - Servlet and JSP engine -- tools to create user instances
Closes: 651162 651487 651492 660757
Changes: 
 tomcat7 (7.0.23-2) unstable; urgency=low
 .
   * Add nl.po debconf translation (Closes: #651162)
     - Thanks to Jeroen Schot
   * Add java6-runtime-headless | java6-runtime to tomcat7-common Depends
     (Closes: #660757)
   * Remove java-5-runtime from tomcat7-common Depends; tomcat7 requires
     Java 1.6 according to http://tomcat.apache.org/whichversion.html.
     Also remove Java 1.5 paths from JDK path search in init script.
   * Update init script to locate multiarch OpenJDKs (Closes: #651487)
   * Apply patch to report build versions as a.b.c.d (Closes: #651492)
     - Thanks to Jorge Barreiro González
   * Bump Standards-Version to 3.9.3.
Checksums-Sha1: 
 5f24664d7146746346644d66a31d0965249468d4 2485 tomcat7_7.0.23-2.dsc
 7aa306dba23d9d5ebfaa68e821934a822a27804c 39632 tomcat7_7.0.23-2.debian.tar.gz
 48a034f62cd0aa29ffc8e74c7cb26c7a41b099c6 56342 tomcat7-common_7.0.23-2_all.deb
 46a68b36e6a2e8865763794c9a338cfdf5c52936 46682 tomcat7_7.0.23-2_all.deb
 75da0e35f38d53b07b5130351c90ec4ad9448a76 35964 tomcat7-user_7.0.23-2_all.deb
 45cae66a3509131f391674131c729a076b6659a3 3399964 
libtomcat7-java_7.0.23-2_all.deb
 cf5e0c762ec269fba9095344b7fc933a85d46c6f 299830 
libservlet3.0-java_7.0.23-2_all.deb
 02a05933941aed0161fde02ad7d8f4d614149561 300118 
libservlet3.0-java-doc_7.0.23-2_all.deb
 1b2165725ddcb81690a4d1a61c701a0c10765451 48766 tomcat7-admin_7.0.23-2_all.deb
 14d4d78fadb56762683160299e99dc54ba737aba 178526 
tomcat7-examples_7.0.23-2_all.deb
 81ecae50cb5cdb9d70fc454ddbe6e7e975f0ef86 617042 tomcat7-docs_7.0.23-2_all.deb
Checksums-Sha256: 
 bc39e067fa521d96f04ee01e3da8a8b70e26cd57863950a089b9a6326a3074b4 2485 
tomcat7_7.0.23-2.dsc
 ec6cb145fb75de9c47d53bf66c3a2265278028306aa9be4a497a404fe56c4cad 39632 
tomcat7_7.0.23-2.debian.tar.gz
 e0b2a82fddf4e31b377a9c89d84650208c7be2909eb0448b7fb375976bafa9cf 56342 
tomcat7-common_7.0.23-2_all.deb
 5b56a3fe2fe6400fe63fcbf009a4f3025db61f301c831371967b38f9bb1b0504 46682 
tomcat7_7.0.23-2_all.deb
 87c0430b4e8de55dc22c67d8286f9bcd0d911362c2c7acc4f06e23b86a98cfa8 35964 
tomcat7-user_7.0.23-2_all.deb
 1821cd1a5e3f57d7b2b8ca80be381a5ab98fa051f9f84c5c78e5bbe62804ebad 3399964 
libtomcat7-java_7.0.23-2_all.deb
 0f67fea833ee1cacc8bb33457a2c88709cfdffe082020da1d02388a02568bf2b 299830 
libservlet3.0-java_7.0.23-2_all.deb
 b2ead7443f87d1828af966d193bdff9016b61b016d7af9a866ba2ea8507004b1 300118 
libservlet3.0-java-doc_7.0.23-2_all.deb
 6784412b1b516fe6d973170b9ebd030496d6ddc24b9817e12ea1965110706fc9 48766 
tomcat7-admin_7.0.23-2_all.deb
 7e5af7524f174d9705cbdc0e30723a16421435fac70b0964d3860866636b2958 178526 
tomcat7-examples_7.0.23-2_all.deb
 9530f3d7afb6ef4acbaba5e3f218834a633dc3c2bb567e375c593c51bf7a3c35 617042 
tomcat7-docs_7.0.23-2_all.deb
Files: 
 34fbd6f72ad2f88920d9e1fcaf77e2c3 2485 java optional tomcat7_7.0.23-2.dsc
 4ff8e2f24b5cf962f58e8f9f63616923 39632 java optional 
tomcat7_7.0.23-2.debian.tar.gz
 49ee81f82686fc15a9f9af2f41b5a19e 56342 java optional 
tomcat7-common_7.0.23-2_all.deb
 db372faef6759af4496d698472796e8e 46682 java optional tomcat7_7.0.23-2_all.deb
 ceae698645e6e9a09d166b15d9ee1087 35964 java optional 
tomcat7-user_7.0.23-2_all.deb
 13d0afa3f63e376a1da2c36a0a9fdf26 3399964 java optional 
libtomcat7-java_7.0.23-2_all.deb
 ffeeb6176994c8cb247e2d0709f1c647 299830 java optional 
libservlet3.0-java_7.0.23-2_all.deb
 07294ad62eae716a259a7fc6c9a0a824 300118 doc optional 
libservlet3.0-java-doc_7.0.23-2_all.deb
 dddaaee19702d4940a69cc3a2e974a75 48766 java optional 
tomcat7-admin_7.0.23-2_all.deb
 76d60603e96195830a25e0e3190dcaf7 178526 java optional 
tomcat7-examples_7.0.23-2_all.deb
 3fda7f8bdb1e5309efe70298ee4bb1df 617042 doc optional 
tomcat7-docs_7.0.23-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJPSyqsAAoJECHSBYmXSz6WopwP/AzB175blfxDWCfObOZt2mKG
jQxzKZCNIT1fzkjPqfJgzBHqKaZ/C0RaW4p3S2MfI96gmfWgIP2fKIvlCqRCIi/1
olaToThaMDXBJuwbIqn2hFFdkfDpiGdP3pjhegq8EWpTJgYIPPIfy1LiynrtPYvc
Bt1zg6uyVB60heOvVQq4FZzk8mgE9Gji72Fn0fP1Dhg64Bv0Dr+z7DGt92FTq8P9
2vpgno55KK1SpX3QgsMie/GlB5KD55rteTeebEQGzkA4g8aqz+ctPlgCKR40+P6l
NEM1FUwf/f6CPkf7L5e3wu8qB3xO0DiWj5focXmamAHV043+2LIOHR37A9XkXja2
K3dS8sdZHhIxYwj74Ghz1cTV8YgJCxeB4tbH1j7XL2meLcoAOyi426Xt6LGwYtef
BnBYVavBeG3FqrWhXPyfrZd1Aakm4nd/RtollZyXU2db4nQbV6EY6HfAAvcwEnZq
pbmQ9j6Nypf0Txzb5n9WFxuMBsvfN4/V83NauiLgja+uG4F5afopwOMtetigFQK1
pKyX3hvwKHgxdEpi++LFFNLr5yo9Cn70uV7XxiOFrcnHGrrd758LobiUlP81qT/V
6M2XF8YO3zW5x4OenIG+4N/W6IJItS6wDHAyGS9R9BvYlBI6J1bXMi/FgOpW+v8Q
RyOTKqTqCldBU3BR744Y
=fJv6
-----END PGP SIGNATURE-----



--- End Message ---
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to