poudriere and java/openjdk8

Mikaël Urankar mikael.urankar at gmail.com
Sat Nov 14 14:42:17 UTC 2015

2015-11-14 15:11 GMT+01:00 Eugene M. Zheganin <emz at norma.perm.ru>:
> Hi,
> I'm trying to build multimedia/kodi for raspberry pi using multimedia.
> However, java/openjdk8 fails to build:
> [...]
> checking headful support... include support for both headful and headless
> configure: Found potential Boot JDK using configure arguments
> configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk is
> incorrect JDK version (Error: could not find libj
> ava.so); ignoring
> configure: (Your Boot JDK must be version 7 or 8)
> configure: error: The path given by --with-boot-jdk does not contain a
> valid Boot JDK
> configure exiting with result code 1
> ===>  Script "../../configure" failed unexpectedly.
> Please report the problem to java at FreeBSD.org [maintainer] and attach the
> "/wrkdirs/usr/ports/java/openjdk8/work/openjdk/common/autoconf/config.log"
> including the output of the failure of your make command. Also, it might be
> a good idea to provide an overview of all packages installed on your system
> (e.g. a /usr/local/sbin/pkg-static info -g -Ea).
> *** Error code 1
> Stop.
> make: stopped in /usr/ports/java/openjdk8
> However, when building java/openjdk8 on an actual device (with all
> dependencies installed from private pkg repo, - i.e. even same
> java/bootstrap-openjdk port) it's able to pass that point (only this
> took way long). Who's bug is that, and is that a bug ? Ports, poudriere
> itself, or may be I am doing something wrong ?
> Right now I'm trying to build openjdk on raspberry pi using actual
> board, I hope I will be able to build the rest using a package created
> from it.

If you build java with poudriere/qemu you need to put USE_PROCFS=no in
You also need to lower down the memory requirement to build java with qemu [1]
If you use poudriere with native-xtools you'll need this upstream
patch [2] or the one that sbruno@ submitted [3]

I've started to work on kodi, you can find my work in progress (and
hackish) patch at [4]
You'll need to recompile multimedia/libass without harfbuzz option
(otherwise it will deinstall misc/raspberrypi-userland)

If you need a prebuilt package for openjdk8 -> [5]

[1] http://mikael.urankar.free.fr/FreeBSD/arm/patches/java_openjdk8_qemu.patch
[2] http://hg.openjdk.java.net/jdk9/jdk9/rev/56c1a2adf6c4
[3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203747
[4] http://mikael.urankar.free.fr/FreeBSD/arm/patches/kodi.patch
[5] http://mikael.urankar.free.fr/FreeBSD/arm/openjdk8-8.60.24.txz


More information about the freebsd-arm mailing list