Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11884

Potential issue with JNA native library search path on some architectures

From Reinhard Pointner <reinhard.pointner@gmail.com>
Newsgroups linux.debian.maint.java
Subject Potential issue with JNA native library search path on some architectures
Date 2020-10-19 21:30 +0200
Message-ID <B1J0Z-7Kg-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Dear libjna-java package maintainers,


The libjna-java package seems to apply a few patches that make things work
on some architectures but not others.


1.
This patch will make JNA search for jnidispatch in
/usr/lib/arm-linux-gnueabi/jni on all arm platforms, but this path is wrong
on some arm platforms:
*
https://sources.debian.org/patches/libjna-java/4.5.2-1/04-load-native-code-from-fs.patch/

armhf -> /usr/lib/arm-linux-gnueabihf/jni
arm64 -> /usr/lib/aarch64-linux-gnu/jni)

I would recommend adding all /usr/lib/*/jni folders to the search path if
we can't know the if we can't know in advance where the *.so file is going
to be.


2.
Another patch further complicates things by making JNA ignore the
jna.boot.library.path property so we can't even force the correct library
location manually:
*
https://sources.debian.org/patches/libjna-java/4.5.2-1/14-rename-native-library.patch/

I would recommend respecting the jna.boot.library.path and
jna.boot.library.name properties, and changing only the default value to
from jnidispatch to jnidispatch.system.


Kind Regards,
Reinhard Pointner

Back to linux.debian.maint.java | Previous | NextNext in thread | Find similar


Thread

Potential issue with JNA native library search path on some architectures Reinhard Pointner <reinhard.pointner@gmail.com> - 2020-10-19 21:30 +0200
  Re: Potential issue with JNA native library search path on some  architectures Matthias Klose <doko@debian.org> - 2020-10-20 11:10 +0200
  Re: Potential issue with JNA native library search path on some architectures Reinhard Pointner <reinhard.pointner@gmail.com> - 2020-10-21 04:30 +0200

csiph-web