Your message dated Tue, 13 Dec 2011 07:03:55 +0000
with message-id <e1ramp5-0004aw...@franck.debian.org>
and subject line Bug#650656: fixed in tomcat6 6.0.35-1
has caused the Debian Bug report #650656,
regarding tomcat6: 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.)


-- 
650656: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650656
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: tomcat6
Source-Version: 6.0.35-1

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

libservlet2.5-java-doc_6.0.35-1_all.deb
  to main/t/tomcat6/libservlet2.5-java-doc_6.0.35-1_all.deb
libservlet2.5-java_6.0.35-1_all.deb
  to main/t/tomcat6/libservlet2.5-java_6.0.35-1_all.deb
libtomcat6-java_6.0.35-1_all.deb
  to main/t/tomcat6/libtomcat6-java_6.0.35-1_all.deb
tomcat6-admin_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6-admin_6.0.35-1_all.deb
tomcat6-common_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6-common_6.0.35-1_all.deb
tomcat6-docs_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6-docs_6.0.35-1_all.deb
tomcat6-examples_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6-examples_6.0.35-1_all.deb
tomcat6-extras_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6-extras_6.0.35-1_all.deb
tomcat6-user_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6-user_6.0.35-1_all.deb
tomcat6_6.0.35-1.debian.tar.gz
  to main/t/tomcat6/tomcat6_6.0.35-1.debian.tar.gz
tomcat6_6.0.35-1.dsc
  to main/t/tomcat6/tomcat6_6.0.35-1.dsc
tomcat6_6.0.35-1_all.deb
  to main/t/tomcat6/tomcat6_6.0.35-1_all.deb
tomcat6_6.0.35.orig.tar.gz
  to main/t/tomcat6/tomcat6_6.0.35.orig.tar.gz



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 650...@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 tomcat6 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: Mon, 12 Dec 2011 22:46:36 -0800
Source: tomcat6
Binary: tomcat6-common tomcat6 tomcat6-user libtomcat6-java libservlet2.5-java 
libservlet2.5-java-doc tomcat6-admin tomcat6-examples tomcat6-docs 
tomcat6-extras
Architecture: source all
Version: 6.0.35-1
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers 
<pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: tony mancill <tmanc...@debian.org>
Description: 
 libservlet2.5-java - Servlet 2.5 and JSP 2.1 Java API classes
 libservlet2.5-java-doc - Servlet 2.5 and JSP 2.1 Java API documentation
 libtomcat6-java - Servlet and JSP engine -- core libraries
 tomcat6    - Servlet and JSP engine
 tomcat6-admin - Servlet and JSP engine -- admin web applications
 tomcat6-common - Servlet and JSP engine -- common files
 tomcat6-docs - Servlet and JSP engine -- documentation
 tomcat6-examples - Servlet and JSP engine -- example web applications
 tomcat6-extras - Servlet and JSP engine -- additional components
 tomcat6-user - Servlet and JSP engine -- tools to create user instances
Closes: 650656 651448
Changes: 
 tomcat6 (6.0.35-1) unstable; urgency=low
 .
   [ Miguel Landaeta ]
   * New upstream release.
   * Add myself to Uploaders.
   * Remove 0013-CVE-2011-3190.patch since it was included upstream.
   * Add mh_clean call in clean target.
   * Fix error in debian/rules that caused tomcat to report no version.
     Thanks to Jorge Barreiro for the patch. (Closes: #650656).
 .
   [ tony mancill ]
   * Update Vcs-* fields in debian/control for switch to git.
   * Update to run with openjdk-7 and openjdk-6 when not default-jdk is
     not present. (Closes: #651448)
   * Allow java?-runtime-headless to satisfy Depends.
   * Add myself to Uploaders.
Checksums-Sha1: 
 c8082efa1199bbe0e345a1872cc88804eeed93e8 2667 tomcat6_6.0.35-1.dsc
 4267c8c1c56135551bc9637447f79ec2a3d40669 3204400 tomcat6_6.0.35.orig.tar.gz
 4fa1b7354e81282667ccd121ebec87acb56b1324 42207 tomcat6_6.0.35-1.debian.tar.gz
 69ff39e3b15cea9838868a3f4e7d2a3f942bc070 49972 tomcat6-common_6.0.35-1_all.deb
 f4cc4932c3340a3563913b33277a3525cbe4bc22 39342 tomcat6_6.0.35-1_all.deb
 29c68f214f225c7d5b81dd24267ec851c9860d7f 30438 tomcat6-user_6.0.35-1_all.deb
 337d13349653f6098abe7797fcdb1fe40d00f9c2 3095464 
libtomcat6-java_6.0.35-1_all.deb
 8d257769a6e5cbdddc928b7f96d6d932ae783f74 194790 
libservlet2.5-java_6.0.35-1_all.deb
 4293afa80f823eb695cbc5ee6eb64f5c35cb6fdf 257786 
libservlet2.5-java-doc_6.0.35-1_all.deb
 91bccea035a647539b2dab8e4d7f53263dc5d97b 48930 tomcat6-admin_6.0.35-1_all.deb
 7a883d5112d06e0bb4f3dacc3a678ec77f6c8466 163850 
tomcat6-examples_6.0.35-1_all.deb
 0e36d98775c780299ecc31e7d50936c82f9d10b0 566164 tomcat6-docs_6.0.35-1_all.deb
 a2e38d7019b82b69969ba0e14b8538b264fb3cd0 12826 tomcat6-extras_6.0.35-1_all.deb
Checksums-Sha256: 
 c373726885b8dd9ee8b216e27f4287bfb570b38418a9685063be3259bcef51fb 2667 
tomcat6_6.0.35-1.dsc
 d348778396d7dde5c290c87d18464f9abc3b6d4d5e9a8e6ba13c4eddfebe6ab8 3204400 
tomcat6_6.0.35.orig.tar.gz
 05e5cd3467d3ca338416dd6bed90d1dbf9b2a49258157b7095790cc74c6cb57f 42207 
tomcat6_6.0.35-1.debian.tar.gz
 2f50133a42cd354712ed72e0b096eb251a6e6d8c2777bc76d8a142ff33670120 49972 
tomcat6-common_6.0.35-1_all.deb
 594571b46b6719f9da207a109eee5d6d904e55015ed354053848e5104fd5250e 39342 
tomcat6_6.0.35-1_all.deb
 3bb35073e25ed64c3e07a128363cfd4c4bfa64eeca2a4a7c078c9b0c65297558 30438 
tomcat6-user_6.0.35-1_all.deb
 d3c1f413fca0ae0d8eecfba28a5b08a8625844af162fde9b4febc57bc9109b86 3095464 
libtomcat6-java_6.0.35-1_all.deb
 359cee68b6a902b1a0611ecf315838d6c748f63addc7652f7f408244ebb5870a 194790 
libservlet2.5-java_6.0.35-1_all.deb
 972cdad099b6683eac6ba11e6364d910a1f70ef5f1dee5bada37eed3125595d0 257786 
libservlet2.5-java-doc_6.0.35-1_all.deb
 5a7409aecdf35452b0307dc879aa75722251fa54e9d9937d05d9f2ef893ed098 48930 
tomcat6-admin_6.0.35-1_all.deb
 c6e7c4cb92a1f6a3da719142034000afbe1dfe0c4607b1d8f14bbd89e01d0785 163850 
tomcat6-examples_6.0.35-1_all.deb
 96c3aad9707ce5a6e8e5ad8acf71c3098a352f3b428ceb4c62fde568732403c9 566164 
tomcat6-docs_6.0.35-1_all.deb
 201c89f1e81cf035cfa49d7dce05160f99759b86e4951e1446715e53061cdf1b 12826 
tomcat6-extras_6.0.35-1_all.deb
Files: 
 c38fd0db92f373b204c0336bfe3e8b75 2667 java optional tomcat6_6.0.35-1.dsc
 0a33e27264154dcb85ad5050907bdce1 3204400 java optional 
tomcat6_6.0.35.orig.tar.gz
 975fb5a52978bb4e6a87f4db14b134a2 42207 java optional 
tomcat6_6.0.35-1.debian.tar.gz
 720b70a59407c37ede01826f6574e24b 49972 java optional 
tomcat6-common_6.0.35-1_all.deb
 7439abf8575ea4c6457613b809d2189d 39342 java optional tomcat6_6.0.35-1_all.deb
 f917e95926ebd06a44e6ee7be3922db8 30438 java optional 
tomcat6-user_6.0.35-1_all.deb
 1d7a7099b913bdc3b689a27adcaed15e 3095464 java optional 
libtomcat6-java_6.0.35-1_all.deb
 54d0c5d413828487430a96c11a216241 194790 java optional 
libservlet2.5-java_6.0.35-1_all.deb
 1127b90c816323bddf1c8be81ca78011 257786 doc optional 
libservlet2.5-java-doc_6.0.35-1_all.deb
 fc5bb12116d0b047bc60115e734a0ec3 48930 java optional 
tomcat6-admin_6.0.35-1_all.deb
 216c7d05db05a0967e63cf848db82929 163850 java optional 
tomcat6-examples_6.0.35-1_all.deb
 d9652aef85dbd23475f5abda2a94c4af 566164 doc optional 
tomcat6-docs_6.0.35-1_all.deb
 a911181e0cad87cc8ca0ebeb2d027866 12826 java optional 
tomcat6-extras_6.0.35-1_all.deb

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

iQIcBAEBAgAGBQJO5vYSAAoJECHSBYmXSz6Wf5IQAMru3PZYp4pdBvQh+/7AjAP/
5LDo64HJOYYtIpdBIcYnX8YLXDROjIHveygRitOxu3u3Os7x1ubeRXfcHwofRfJe
s7gjmjJ50dXke6soZz9TfRV7VAtYIkKPYjDW+leypvEieUtsZjPMSu50a8Cf9AQv
v9ozyIJbnoAtsNPsXoCF2HsdYSKkgaorD6YfDsyJpQlJb4t4kWzoJIgIAZOn/ICs
cgK0UJUHJTo6Vyc62R0xVlP0WS5WPxpBqjCVzxkfwesL/+7N7ikgOA6Bk+GcZ9Mm
yFsUsVk8KD3JqIk+MnlCPb/R/Avm774pYHxuN7MUTGCMfq4ZRx3Q8eDADTizEVRS
8lZuoAy9VQdVYG8JiIY9XXXCiBBW3AqLVpuGrSG2QWm6ejB3fKM4z+oAE3jwbyML
zORMJVZhlW6/ttZqImFyS5YycePJaraGyEezOPi4B7rpuFMlkD+2cIV1NWozlRMR
MY/UOlEYS+iW2PKaeb1KtHxpvsQVPzu5Bi9EJ050IMvlAfIC3+EH4lJ4A16hwzmT
PDq8EO8ezxOVbDuxV8L1GRfn8RK+1+UqKCQd6rm4aAeAVrZqFQEwJ3gAJ1HSo98o
X/g4IyRKdP3Ld2U1HUUqLQ/rJIXkUSEl1CjQEAY/SaRsveAOhb7vUXQU+qJk1UoX
wwv2VhNzpRf4Baf6anZ6
=TYln
-----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