[SCM] UNNAMED PROJECT branch, master, updated. 0.40-12-g2b136e7

Niels Thykier niels at thykier.net
Tue Mar 13 18:25:35 UTC 2012


The following commit has been merged in the master branch:
commit 2b136e7653de688edb7d0cda49a97022191e0d16
Author: Kai Ruschenburg <kairu at web.de>
Date:   Tue Mar 13 19:24:25 2012 +0100

    jh_depends: Corrected class version calculation
    
    Signed-off-by: Niels Thykier <niels at thykier.net>

diff --git a/debian/changelog b/debian/changelog
index 1c657c1..5e3bcae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,9 @@ javatools (0.41) UNRELEASED; urgency=low
   * 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)
 
  -- Sylvestre Ledru <sylvestre at debian.org>  Fri, 24 Feb 2012 16:22:58 +0100
 
diff --git a/jh_depends b/jh_depends
index ed8ff36..e50f2ab 100755
--- a/jh_depends
+++ b/jh_depends
@@ -35,7 +35,7 @@ getclassversion()
 	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 -n 1 -s 7 -e '/1 "%u"' "$i")
 		if (( $current < $new )); then
 			current=$new
 		fi

-- 
UNNAMED PROJECT



More information about the pkg-java-commits mailing list