Your message dated Tue, 13 Mar 2012 19:50:01 +0000
with message-id <e1s7xjn-0004ro...@franck.debian.org>
and subject line Bug#661632: fixed in javatools 0.41
has caused the Debian Bug report #661632,
regarding javahelper: jh_depends determines incorrect class version on sparc
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.)


-- 
661632: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661632
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: javahelper
Version: 0.32
Severity: normal
Tags: patch

Hi,

when packaging Java programs on sparc (using the sources fetched by apt-get
source), on some programs (e.g. sat4j) this warning is printed:

$ debuild
[...]
jh_depends -i
Warning: Class version too new to recognise (88), might not run with any JVMs
[...]

This is caused by hd in the function getclassversion() in jh_depends.

The output of hd seems to depend on the endianness of the architecture.
Therefore probably not only sparc, but all big-endian architectures are
affected.

Changing line 37 from
new=`hd -s 7 -n 1 -d "$i" | sed -n '2s/.*\([^ ][^ ]\) *$/\1/p'`
to
new=`hexdump -s 6 -n 2 -e '/1 "%u "' -e '/2 " r 256 * + p"' "$i" | dc`
should fix this.

Some examples:

$ cat Test.java
public class Test {
    public static void main(String[] args) {
    }
}
$ javac -source 1.3 -target 1.3 Test.java
$ hd -s 7 -n 1 -d "Test.class" | sed -n '2s/.*\([^ ][^ ]\) *$/\1/p'
32
$ hexdump -s 6 -n 2 -e '/1 "%u "' -e '/2 " r 256 * + p"' "Test.class" | dc
47
$ javac -source 1.4 -target 1.4 Test.java
$ hd -s 7 -n 1 -d "Test.class" | sed -n '2s/.*\([^ ][^ ]\) *$/\1/p'
88
$ hexdump -s 6 -n 2 -e '/1 "%u "' -e '/2 " r 256 * + p"' "Test.class" | dc
48
$ javac -source 1.5 -target 1.5 Test.java
$ hd -s 7 -n 1 -d "Test.class" | sed -n '2s/.*\([^ ][^ ]\) *$/\1/p'
44
$ hexdump -s 6 -n 2 -e '/1 "%u "' -e '/2 " r 256 * + p"' "Test.class" | dc
49
$ javac -source 1.6 -target 1.6 Test.java
$ hd -s 7 -n 1 -d "Test.class" | sed -n '2s/.*\([^ ][^ ]\) *$/\1/p'
00
$ hexdump -s 6 -n 2 -e '/1 "%u "' -e '/2 " r 256 * + p"' "Test.class" | dc
50

Best regards

Kai


-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: sparc (sparc64)

Kernel: Linux 2.6.32-5-sparc64-smp (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages javahelper depends on:
ii  bsdmainutils            8.0.13           collection of more utilities from 
ii  dctrl-tools             2.14.5           Command-line tools to process Debi
ii  debhelper               8.0.0            helper programs for debian/rules
ii  devscripts              2.10.69+squeeze2 scripts to make the life of a Debi
ii  dpkg-dev                1.15.8.12        Debian package development tools
ii  fastjar                 2:0.98-3         Jar creation utility
ii  libarchive-zip-perl     1.30-3           Perl module for manipulation of ZI

javahelper recommends no packages.

Versions of packages javahelper suggests:
pn  cvs                       <none>         (no description available)
ii  gawk                      1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
pn  tofrodos                  <none>         (no description available)

-- no debconf information
--- jh_depends.orig     2010-07-04 10:35:16.000000000 +0200
+++ jh_depends  2012-02-25 15:28:43.344986707 +0100
@@ -34,7 +34,7 @@
        current=$1
        classes="$2"
        for i in `find "$classes" -name "*.class"`; do
-               new=`hd -s 7 -n 1 -d "$i" | sed -n '2s/.*\([^ ][^ ]\) *$/\1/p'`
+               new=`hexdump -s 6 -n 2 -e '/1 "%u "' -e '/2 " r 256 * + p"' 
"$i" | dc`
                if (( $current < $new )); then
                        current=$new
                fi

--- End Message ---
--- Begin Message ---
Source: javatools
Source-Version: 0.41

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

jarwrapper_0.41_all.deb
  to main/j/javatools/jarwrapper_0.41_all.deb
java-propose-classpath_0.41_all.deb
  to main/j/javatools/java-propose-classpath_0.41_all.deb
javahelper_0.41_all.deb
  to main/j/javatools/javahelper_0.41_all.deb
javatools_0.41.dsc
  to main/j/javatools/javatools_0.41.dsc
javatools_0.41.tar.gz
  to main/j/javatools/javatools_0.41.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 661...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niels Thykier <ni...@thykier.net> (supplier of updated javatools 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: SHA256

Format: 1.8
Date: Tue, 13 Mar 2012 20:12:40 +0100
Source: javatools
Binary: jarwrapper javahelper java-propose-classpath
Architecture: source all
Version: 0.41
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers 
<pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Niels Thykier <ni...@thykier.net>
Description: 
 jarwrapper - Run executable Java .jar files
 java-propose-classpath - Helper script to suggest a classpath for jar files
 javahelper - Helper scripts for packaging Java programs
Closes: 661632
Changes: 
 javatools (0.41) unstable; urgency=low
 .
   [ Sylvestre Ledru ]
   * jh_makepkg:
     - Switch the OpenJDK6 path to the multiarch one.
     - Remove the sun-java6 support since it has been
       removed from the archive
     - Provide the support for OpenJDK 7
     - Create the new package under the source format 3.0
     - -doc packages are now in the doc section.
 .
   [ Niels Thykier ]
   * Produce a better error message when a non-existent Jar file is
     passed to jh_manifest.
   * Try to parse arguments passed via -O for jh_lib.sh as regular
     options, but ignore them if they are unknown.  Previously, -O
     options was silently ignored.
   * Remove support for using the "sun" (and "sun6") JVM with
     jh_depends, as Debian is no longer ships the Sun/Oracle Java.
   * Bump libarchive-zip-perl depends as 1.30.5 was still affected
     by #654899.
   * jh_depends no longer emits dependencies with java-runtime or
     java2-runtime.  The minimum generated dependency is now
     java5-runtime.
   * Corrected class version calculation on big-endian architectures.
     Thanks to Kai Ruschenburg for the report and the correction.
     (Closes: #661632)
   * Use Standards-Versions 3.9.3 and the new DEP-5 URI in jh_makepkg
     for newly generated packages.
   * Bumped Standards-Versions 3.9.3 - no changes required.
   * Ensure the test suite fails if the java-arch.sh test fails.
Checksums-Sha1: 
 8742e103bc098e4109e9fd9f9a38e89513ed6517 1827 javatools_0.41.dsc
 82d9150d2e32f1b3b020ddccfa36cf33eef49700 55576 javatools_0.41.tar.gz
 30c8a26b5545cb2f96e9ce19a7c573fedd4c2652 15880 jarwrapper_0.41_all.deb
 bca297164c0e9e48040c59852c9af8b43a73671a 87552 javahelper_0.41_all.deb
 f6011573984dd9bce12be929863a4eb9779cdd17 13060 
java-propose-classpath_0.41_all.deb
Checksums-Sha256: 
 6cc9ccacaff7fbd824032b0fe4e0ee4701b8d70a4a85037ab292a7bbd41a7113 1827 
javatools_0.41.dsc
 4de2f013296db577f5f6f4d5aadfb0d0e6f254993b07942b912a17567f9d9c01 55576 
javatools_0.41.tar.gz
 765112c7a3307b03a1b3a80636fcebe27b4658bbac751f68747ee63881fe86b0 15880 
jarwrapper_0.41_all.deb
 8201ddc75094a5acc37bf3206c6d9af957edb8e0e1a019f120ed8c10e9b41cc4 87552 
javahelper_0.41_all.deb
 e69f9976a4948cd410aa1a05679aed0443bea87b16258e0dc1fea7137f80bb3b 13060 
java-propose-classpath_0.41_all.deb
Files: 
 1634951da7e70ab9fa2c6d2c1700f9ee 1827 java optional javatools_0.41.dsc
 bad8ff20e6aea2c4478457479d3aaac5 55576 java optional javatools_0.41.tar.gz
 fad768f35f96122428d792fa50506929 15880 java optional jarwrapper_0.41_all.deb
 fcc72fc81b93317196797c9786d3e605 87552 java optional javahelper_0.41_all.deb
 cf96b94357b23f628094a08b7624998d 13060 java optional 
java-propose-classpath_0.41_all.deb

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

iQIcBAEBCAAGBQJPX575AAoJEAVLu599gGRCWyMQAJM8WnYY8TfR8er0M4ulZPnE
ttqQQThJercuQOApOrw8ngZWQpJfvvNaeP0mWOcy+YwIPdlmURxE0FJLztUVQ3e2
3IyfzbUiAgYg+uNAA4zbgyPagTJRdvqAE5NzLIRmK6AARS3qxJPva8DhfCHwp64J
FD41kT1oKdSQQU0fBKJsfZ0FMXAdyeqHu3ZzU9D/wg6ZGfddpKW3KIYPHs2U26m+
jkRKZLGvbDQbWd28z1zQ+617y/PqMxCr2l5zUeJeKtztth9qOF9UZUDTjCQuKOye
Zi/uuJQujT7PoBsJjhpUnFyVHPtLfDYNZjC5DrzK+c14bA/klv4tBWsXHlH5z5RC
uwF6yiesoRg9voNw579ohzJ10701JQQBpuYeEu1KeyLWAXR3KpxNGN/+IyRO5nRX
CMD75DRTHRbKszyP8QqIUgAYyy8ld19M+U9+DuJqcIB9lJKWq3QZzOUa3oUZwZrB
Rv/YLjrRyiq0XYpCjqqpcCpbX723XO2FJmARHOYTbAdEWhI6KkWl9dryRX/ri9k2
rK/rRrNfndvD/MBpC+phhyWGksNI0pGfsGblu5XUZmvg+NzffC04eQSYt7rq0Yki
VdDJTIebB2c7D8Hsi9wSyPefYXR20Rzrt3uMQFESSZN2Vc0n6a/IT8GColqCDAtp
kcXVaP72xLKMcbmGys9u
=7tfs
-----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