[oe] Building openjdk without X11 dependencies

Otavio Salvador otavio at ossystems.com.br
Thu Apr 23 22:27:18 UTC 2015


Hello Max,

On Thu, Apr 23, 2015 at 7:11 PM, Max Krummenacher <max.oss.09 at gmail.com> wrote:
>> <mario at ossystems.com.br> wrote:
>> > I'm under the impression building openjdk without X11 is not feasible.
>> > As far as I understand, the headless package is (or should be) generated
>> > by building openjdk with the X11 dependencies, then selecting the
>> > components which are not linked against X11 libraries and putthing them
>> > into a separate package.  Does that sound correct?
>> >
>> > Is it possible to build openjdk without X11 dependencies?
>
> My interests actually went into the other direction. Adding a
> packageconfig which re-enables xawt.

I see.

> While looking at it I tried to remove the DEPENDS on X11/GTK+ and came
> to the conclusion that you would need to heavily change the source
> tree / Makefiles to leave all the sources which include X11 (or GTK+)
> headers out of the way.

It seems like it will be necessary. More below...

> The sources react to the symbol BUILD_HEADLESS_ONLY which promised to
> keep the X11 dependencies out. However that is either broken in the
> current versions of OpenJDK or never worked at all.
> Some mailinglist post underlined that. e.g.
> http://mail.openjdk.java.net/pipermail/build-dev/2012-March/005700.html
>
> Maybe one could split openjdk-7-common and openjdk7-jre into packages
> without X11 dependencies and the rest as Mario proposes. However I don't
> know if that would lead to a working headless java installation.

The packaging splitting does not work for this case as we need to
build in a framebuffer only environment. So the build dependencies are
not available.

Regards,

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-devel mailing list