[fedora-java] /usr/share/java and JNI libraries

Nicolas Mailhot nicolas.mailhot at laposte.net
Mon Mar 26 19:18:55 UTC 2007


Le lundi 26 mars 2007 à 15:04 -0400, David Walluck a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Patrice Dumas wrote:
> > On Mon, Mar 26, 2007 at 10:33:26AM -0700, Anthony Green wrote:
> >> 
> >> I believe most end up in %{_libdir}.
> > 
> > Aren't jni files dlopened? If it is the case they should not be
> > in %{_libdir}, but in a subdirectory. 
> > 
> > Are there packaging guidelines for java where such issues are 
> > explained?
> 
> Actually, I think you are right, but traditionally they have been but in
> %{_libdir}, and *jars* which depend on libraries have gone in %{_jnidir}
> = %{_libdir}/jni, per the JPackage 1.5 spec.
> 
> Is it also a problem having jars (non-binaries) inside %{_libdir}? Then
> maybe %{_jnidir} should be %{_datadir}/jni then?

jni jars are not arch independant so they should be in
%{_libdir}/something

> I would tend to think that Debian is more correct here:
> 
> Libraries: %{_libdir}/jni
> Jars that dlopen() these libraries: {_libdir}/java

except we already have the jvms there

> So, JPackage is sort of backwards from Debian, but I am not sure if that
> jar directory makes sense.

You could mix library and jar files in {_jnidir}, but it's probably
saner to define two distinct roots under %{_libdir}

-- 
Nicolas Mailhot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20070326/c1820c84/attachment.sig>


More information about the fedora-devel-java-list mailing list