openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #11759
Bug#822459: openjdk-8-jdk-headless: ships linux/jni_md.h on kfreebsd
Package: openjdk-8-jdk-headless
Version: 8u91-b14-1
Severity: important
Hi,
brltty FTBFS on kfreebsd with openjdk-8. It successfully built with
openjdk-7.
Comparing the build logs for 5.3.1-1 and 5.3.1-1+b1:
2119c2084,2085
< checking for "/usr/lib/jvm/java-7-openjdk-kfreebsd-amd64/include/jni.h"... yes
---
> checking for "/usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/include/jni.h"... yes
> configure: WARNING: more than one machine-dependent Java header found: /usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/include/bsd/jni_md.h /usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/include/linux/jni_md.h
2120a2087
> configure: WARNING: Java BrlAPI bindings not included
2317d2283
< config.status: creating Bindings/Java/Makefile
2926c2892
< set -- Java Lisp; \
---
> set -- Lisp; \
(the actual failure happens in dh_install since the java bindings were not built)
Checking the build log of openjdk-8, I find these occurrences of jni_md.h:
5922:cp /«PKGBUILDDIR»/src/hotspot/src/cpu/x86/vm/jni_x86.h /«PKGBUILDDIR»/build/hotspot/dist/include/linux/jni_md.h
12817:/bin/cp -fP '/«PKGBUILDDIR»/src/jdk/src/solaris/javavm/export/jni_md.h' '/«PKGBUILDDIR»/build/jdk/include/bsd/jni_md.h'
25585:/bin/echo Copying images/j2sdk-image/include/bsd/jni_md.h
25587:Copying images/j2sdk-image/include/bsd/jni_md.h
25591:/bin/cp -fP '/«PKGBUILDDIR»/build/jdk/include/bsd/jni_md.h' '/«PKGBUILDDIR»/build/images/j2sdk-image/include/bsd/jni_md.h'
36056:/bin/cp -fP '/«PKGBUILDDIR»/src/jdk/src/solaris/javavm/export/jni_md.h' '/«PKGBUILDDIR»/build/bootcycle-build/jdk/include/bsd/jni_md.h'
48824:/bin/echo Copying bootcycle-build/images/j2sdk-image/include/bsd/jni_md.h
48826:Copying bootcycle-build/images/j2sdk-image/include/bsd/jni_md.h
48830:/bin/cp -fP '/«PKGBUILDDIR»/build/bootcycle-build/jdk/include/bsd/jni_md.h' '/«PKGBUILDDIR»/build/bootcycle-build/images/j2sdk-image/include/bsd/jni_md.h'
52216:cp /«PKGBUILDDIR»/src/hotspot/src/cpu/zero/vm/jni_zero.h /«PKGBUILDDIR»/build-zero/hotspot/dist/include/linux/jni_md.h
59101:/bin/cp -fP '/«PKGBUILDDIR»/src/jdk/src/solaris/javavm/export/jni_md.h' '/«PKGBUILDDIR»/build-zero/jdk/include/bsd/jni_md.h'
71845:/bin/echo Copying images/j2sdk-image/include/bsd/jni_md.h
71848:Copying images/j2sdk-image/include/bsd/jni_md.h
71851:/bin/cp -fP '/«PKGBUILDDIR»/build-zero/jdk/include/bsd/jni_md.h' '/«PKGBUILDDIR»/build-zero/images/j2sdk-image/include/bsd/jni_md.h'
73769: echo 'usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/include/*/jni_md.h'; \
75383:-rw-r--r-- root/root 1821 2016-04-23 04:18 ./usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/include/bsd/jni_md.h
75390:-rw-r--r-- root/root 1821 2016-04-23 04:18 ./usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/include/linux/jni_md.h
Looks like hotspot is at fault here ... which leads to
debian/patches/kfreebsd-support-hotspot.diff containing
+ifeq ($(OS), GNU/kFreeBSD)
+ OSNAME=linux
+endif
which looks very weird.
Andreas