Hi - is there a group of people working on OpenJDK 8 for OpenBSD?

Bryan C. Everly bryan at bceassociates.com
Wed Apr 29 00:47:56 UTC 2015


Kurt,

I'm wrapping my head around gnu autoconfigure tonight.

It looks like we need to modify the .m4 files in the common/autoconf
directory and then it generates the generated-configure.sh script from
there, right?  If that's the case, I can start working on patches to the
*.m4 files to seed the diffs you sent from generated-configure.sh if you
are OK with that (I know we need to wait until my userid shows up on the
contributor list before we can do any of this officially).

Next question - how much can we mess with the default "bsd" stuff?  Should
we be doing specific things in an "openbsd" block so as not to mess up the
FreeBSD port (my assumption is that this mercurial tree builds successfully
under FreeBSD - right)?  I'm thinking that's how we should be operating.
If you are ok with that, i'll start making the necessary changes to get the
common things in "bsd" and the things that are unique to OpenBSD in their
own sections.

I think I can get the freetype stuff fixed (if I'm following the *.m4 files
correctly) as well as the location for giflib straightened out.

Finally, the myriad of --with* settings on the command line I'm guessing
need to be baked into the *.m4 scripts if we are running on in OpenBSD?  If
so, then I can tackle getting that to work right.

What do you think?  Am I on the right track?


Thanks,
Bryan

On Mon, Apr 27, 2015 at 10:41 PM, Kurt Miller <kurt at intricatesoftware.com>
wrote:

> On Mon, 2015-04-27 at 21:43 -0400, Kurt Miller wrote:
> > On Mon, 2015-04-27 at 20:39 -0400, Bryan C. Everly wrote:
> > > Kurt,
> > >
> > >
> > > Looks like you can't run 'bash ./configure' without ALSA (which
> > > doesn't exist on OpenBSD) and you can't turn it off with
> > > --without-alsa (there is an explicit check for this that tells you it
> > > is required).
> > >
> > >
> > > Am I missing something obvious?
> >
> > Hi Bryan,
> >
> > Nope. I just hit the same thing trying to catch up to you. OpenBSD
> > doesn't have alsa, instead it has its own sound subsystem called
> > sndio. An OpenBSD developer wrote sndio support for the jdk, but
> > he never signed the OCA so I wasn't able to commit his work here.
> > Instead I have it as a patch in the ports tree in OpenBSD:
> >
> >
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/jdk/1.7/files/PLATFORM_API_BSDOS_PCM.c?rev=1.1&content-type=text/x-cvsweb-markup&hideattic=1
> >
> > This doesn't help us with the configure issue though since it wasn't
> > required for OpenJDK 7.
> >
> > We're going to need to disable the hard requirement for alsa in a way
> > that is OpenBSD only. We're likely to hit someplace in the
> > bsd-port/jdk8/jdk/ portion of the build where it fails to build sound
> > support due to alsa missing. Then we'll need to figure out how to
> > disable it for OpenBSD only again there.
> >
> > Regards,
> > -Kurt
>
> Here's where I am at. I can finish configure but I still have an hack
> in generated-configure.sh for freetype. This is my configure script:
>
> cd ~/jdk/jdk8
> env -i
> PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
> \
>   CPPFLAGS=-I/usr/local/include \
>   LDFLAGS=-L/usr/local/lib \
>   sh configure \
>   --with-boot-jdk=/home/truk/jdk/j2sdk-image \
>   --disable-ccache \
>   --disable-freetype-bundling \
>   --disable-zip-debug-info \
>   --with-cups=/usr/local \
>   --with-freetype=/usr/X11R6 \
>   --with-freetype-include=/usr/X11R6/include/freetype2 \
>   --with-giflib=system \
>   --with-jobs=16 \
>   --with-zlib=system \
>   2>&1 | tee -a ~/jdk/build-jdk8.log
>
> Attached is the diff I'm running with that has a hack for freetype
> in it. It needs more work to match correctly with versioned shared
> libs that OpenBSD has.
>
> -Kurt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20150428/699691e0/attachment-0001.html>


More information about the bsd-port-dev mailing list