Bug#816556: jzmq: FTBFS[!linux]: missing JNI_INCLUDE_DIR for jni_md.h
Package: jzmq
Version: 3.1.0-9
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi,
jzmq no longer builds on kfreebsd because the configure scripts don't
know the include path to find jni_md.h, and openjdk-8 explicitly
requires it now.
For kfreebsd we've chosen to use the same JNI_INCLUDE_DIR as linux,
so please declare that in config/ax_jni_include_dir.m4 using the
attached diff. (Matching on *gnu should also work for future ports
of OpenJDK such as hurd, I think).
Thank you!
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Subject: define jni_include_dir of non-Linux GNU platforms
From: Steven Chamberlain <steven@pyro.eu.org>
Date: Wed, 02 Mar 2016 21:58:11 +0000
For non-Linux GNU platforms (currently only GNU/kFreeBSD) the
same JNI_INCLUDE_DIRS should be used as for linux.
--- a/config/ax_jni_include_dir.m4
+++ b/config/ax_jni_include_dir.m4
@@ -85,7 +85,7 @@
# get the likely subdirectories for system specific java includes
case "$host_os" in
bsdi*) _JNI_INC_SUBDIRS="bsdos";;
-linux*) _JNI_INC_SUBDIRS="linux genunix";;
+linux*|*gnu) _JNI_INC_SUBDIRS="linux genunix";;
darwin*) _JNI_INC_SUBDIRS="darwin";;
osf*) _JNI_INC_SUBDIRS="alpha";;
solaris*) _JNI_INC_SUBDIRS="solaris";;
Reply to: