Your message dated Fri, 27 May 2011 23:33:50 +0000
with message-id <[email protected]>
and subject line Bug#620122: fixed in libjna-java 3.2.7-3
has caused the Debian Bug report #620122,
regarding libjna-java: JNA does not support multi-arch system library paths
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.)
--
620122: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620122
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libjna-java
Version: 3.2.4-2
Severity: normal
Tags: patch
Ubuntu has moved over to multi-arch based system libraries; the code in
libjna-java
that generates the library search path does not support this directory
structure.
The attached patched fixes this for archs supported on Ubuntu.
I would like to expand this to support all archs for Debian as well.
I have also reported this upstream - http://java.net/jira/browse/JNA-184.
Index: libjna-java-multiarch-fix/src/com/sun/jna/Platform.java
===================================================================
--- libjna-java-multiarch-fix.orig/src/com/sun/jna/Platform.java 2011-03-22 13:28:10.273832461 +0000
+++ libjna-java-multiarch-fix/src/com/sun/jna/Platform.java 2011-03-24 19:07:21.747320193 +0000
@@ -99,4 +99,37 @@
}
return Native.POINTER_SIZE == 8;
}
+
+ public static final boolean isIntel() {
+ String arch =
+ System.getProperty("os.arch").toLowerCase().trim();
+ if (arch.equals("i386") ||
+ arch.equals("x86_64") ||
+ arch.equals("amd64")) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public static final boolean isPPC() {
+ String arch =
+ System.getProperty("os.arch").toLowerCase().trim();
+ if (arch.equals("ppc") ||
+ arch.equals("ppc64")) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public static final boolean isARM() {
+ String arch =
+ System.getProperty("os.arch").toLowerCase().trim();
+ if (arch.equals("arm")) {
+ return true;
+ } else {
+ return false;
+ }
+ }
}
Index: libjna-java-multiarch-fix/src/com/sun/jna/NativeLibrary.java
===================================================================
--- libjna-java-multiarch-fix.orig/src/com/sun/jna/NativeLibrary.java 2011-03-22 13:28:10.253832255 +0000
+++ libjna-java-multiarch-fix/src/com/sun/jna/NativeLibrary.java 2011-03-24 19:08:51.348175680 +0000
@@ -625,11 +625,37 @@
"/usr/lib",
"/lib",
};
- // Linux 64-bit does not use /lib or /usr/lib
- if (Platform.isLinux() && Pointer.SIZE == 8) {
+ // Fix for multi-arch support on Ubuntu (and other
+ // multi-arch distributions)
+ // paths is scanned against real directory
+ // so for platforms which are not multi-arch
+ // this should continue to work.
+ if (Platform.isLinux()) {
+ // Defaults - overridden below
+ String cpu = "";
+ String kernel = "linux";
+ String libc = "gnu";
+
+ if (Platform.isIntel()) {
+ cpu = (Platform.is64Bit() ? "x86_64" : "i386");
+ } else if (Platform.isPPC()) {
+ cpu = (Platform.is64Bit() ? "powerpc64" : "powerpc");
+ } else if (Platform.isARM()) {
+ cpu = "arm";
+ libc = "gnueabi";
+ }
+
+ String multiArchPath =
+ cpu + "-" + kernel + "-" + libc;
+
+ // Assemble path with all possible options
paths = new String[] {
+ "/usr/lib/" + multiArchPath,
+ "/lib/" + multiArchPath,
"/usr/lib" + archPath,
"/lib" + archPath,
+ "/usr/lib",
+ "/lib",
};
}
for (int i=0;i < paths.length;i++) {
--- End Message ---
--- Begin Message ---
Source: libjna-java
Source-Version: 3.2.7-3
We believe that the bug you reported is fixed in the latest version of
libjna-java, which is due to be installed in the Debian FTP archive:
libjna-java-doc_3.2.7-3_all.deb
to main/libj/libjna-java/libjna-java-doc_3.2.7-3_all.deb
libjna-java_3.2.7-3.debian.tar.gz
to main/libj/libjna-java/libjna-java_3.2.7-3.debian.tar.gz
libjna-java_3.2.7-3.dsc
to main/libj/libjna-java/libjna-java_3.2.7-3.dsc
libjna-java_3.2.7-3_amd64.deb
to main/libj/libjna-java/libjna-java_3.2.7-3_amd64.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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andrew Ross <[email protected]> (supplier of updated libjna-java 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: SHA1
Format: 1.8
Date: Wed, 25 May 2011 21:19:02 +0100
Source: libjna-java
Binary: libjna-java libjna-java-doc
Architecture: source amd64 all
Version: 3.2.7-3
Distribution: experimental
Urgency: low
Maintainer: Debian Java maintainers
<[email protected]>
Changed-By: Andrew Ross <[email protected]>
Description:
libjna-java - Dynamic access of native libraries from Java without JNI
libjna-java-doc - Dynamic access of native libraries from Java without JNI
(documen
Closes: 620122
Changes:
libjna-java (3.2.7-3) experimental; urgency=low
.
* Seach multiarch paths for libraries (Closes: #620122)
Checksums-Sha1:
d563194f72c73d563c5594583fed5e0056703dec 2150 libjna-java_3.2.7-3.dsc
d593131ecdc957da9e25a86b9522a1cbc3173264 12594
libjna-java_3.2.7-3.debian.tar.gz
f24987592e77a5502905405389dce26499bc06f6 416126 libjna-java_3.2.7-3_amd64.deb
3ecf630a61c9de3a8883681d91d043ebb317c102 140774 libjna-java-doc_3.2.7-3_all.deb
Checksums-Sha256:
d005df1f0bb03b8f991e51cc84bc0185df48042a69f598d20325be4cdc3ff226 2150
libjna-java_3.2.7-3.dsc
6a9c709572ffcf22fe96c9c1de823cc3650691161b087db3520702bb1037f4e1 12594
libjna-java_3.2.7-3.debian.tar.gz
7d76772fc82ea7cf33a8addb1cd69acb4411319d340e7e26d9f7656d89327def 416126
libjna-java_3.2.7-3_amd64.deb
7909c820f8dc7ae38b5a6717ba95e3484703e5c9aef8627e67ed823da372aacf 140774
libjna-java-doc_3.2.7-3_all.deb
Files:
0694ca8fa744ea65000f7eedbae4c23e 2150 java optional libjna-java_3.2.7-3.dsc
86f94631fadc5540945db77a1dd3d603 12594 java optional
libjna-java_3.2.7-3.debian.tar.gz
8a415786b855bdc86653b274545d16f2 416126 java optional
libjna-java_3.2.7-3_amd64.deb
67f6edb1e606a57c5cdebcb157561a96 140774 doc optional
libjna-java-doc_3.2.7-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBAgAGBQJN4DAqAAoJECHSBYmXSz6Wh70QAMOHEjC7LsoeAtjZ1axHNY8m
4EiFeb/AF2NzzsvZueacmolJmmQryYHDHKw7wnTdSDf4YsiNZSL4AxIGLSqFKW7P
ghFlm6avzo939gayTvuV8E7BAiK56upU3p+/BJIfj0hwOpOiT8ItN7nRCIUkzEQs
w4Cr4KX4sMd3vnd536WUa38VuTDA2OBlliKjU8GujJqH6pHAlpD5u6tQldLJNmk9
cI33LS7pl8U93d3LN0ie9PsJTDRrxxstlrfh5elNGn4O7QJj0H6b2cOamZYOoFCg
0kawjZy6tmq2mRb+y00tT9QmaK5fwOQ78vcMxiw+smUhgP5ZCP/dbU67EOq8NFw7
7FjVIGYIXco9Y90VMs2zB0PJjThw1OENtgpwRrkSY0iYTyW7taLbPo8AMCS35cYQ
pc34aZwJNp78+DfmLsIrwX4gqKOKuK51ZpAQAN6CEszQO8E0uiY9tQrPlPpy1sH4
NU/QEYWmQfwrBNZa7gdzH9OxFNa3oJs8GHv1ttd4fGISjlv1a49uKtwtPWwD1OfI
nrtLhyjQbGPqqH9dwgDFBjOeFSgPLsCwqMGc/fjM3M/NuPnEF2IM3YFJdn3tsWV0
YIJ4uVziKPzL0955f64DaNlzzaxtmeXc32gsPNxToFqaaigXHS9AKbkGeZHNUD26
hwcg/v6kqVnpvGEBDL7T
=Y9ig
-----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
[email protected] for discussions and questions.