Hello, I have found the hard way that jni.h need not to be in the default include path (like it is for gcj) and that the right include directories are maintained by alternatives, ready to use, so the following ensures the spec using jni bindings compiles under any java:
BuildRequires: java-devel [...] for i in -I/usr/lib/jvm/java/include{,/linux}; do java_inc="$java_inc $i" done %configure CPPFLAGS="$java_inc"
(see also http://bugzilla.redhat.com/498964#c2)
Could this information be added to Packaging:Java? Is there anything I can do for it? (To save my successors a few days of investigation.)
Cheers, Stepan
* Stepan Kasal skasal@redhat.com [2009-05-11 09:31]:
Could this information be added to Packaging:Java? Is there anything I can do for it? (To save my successors a few days of investigation.)
Sure, it would be great if you could post a patch to the wiki page it would help.
Andrew
On Tue, 2009-05-12 at 17:06 +0200, Stepan Kasal wrote:
On Mon, May 11, 2009 at 09:43:07AM -0400, Andrew Overholt wrote:
Sure, it would be great if you could post a patch to the wiki page it would help.
attached please find a first approximation; patch to Packaging:Java wiki source.
Thanks, Stepan. I'll see about getting this into the guidelines.
Andrew
packaging@lists.fedoraproject.org