RFR: 8376684: Compile OpenJDK in headless mode without required X11 libraries

Phil Race prr at openjdk.org
Mon Feb 2 21:32:30 UTC 2026


On Fri, 30 Jan 2026 12:53:34 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>>> @ThomasDevoogdt A PR isn't announced on the mailing list until it's _ready for review_ which includes a valid JBS bug.
>>> 
>>> I suggest you write an email to build-dev and client-libs-dev mailing lists to propose this change and discuss it. I haven't found an existing issue in JBS for not requiring X11 libraries in headless mode. I can submit one on your behalf.
>>> 
>>> If I have time, I'll test your patch locally and run it in the Oracle CI.
>> 
>> All our build systems have X11. So a test build there doesn't prove much, and also it can easily regress.
>
>> > If I have time, I'll test your patch locally and run it in the Oracle CI.
>> 
>> All our build systems have X11. So a test build there doesn't prove much, and also it can easily regress.
> 
> This is why I'm going to use a VM which doesn't have X11 headers installed.
> 
>> is that a reason to not merge this kind of code?
> 
> I think it's a good change. Looking at the history at which @dholmes-ora pointed, building headless JDK without X11 was supported, but it has become broken again.

I am fine with this (once @aivanov-jdk has done the test build). I am just pointing out that it has apparently regressed before so could regress again because this configuration is not part of our testing.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28310#issuecomment-3837497493


More information about the client-libs-dev mailing list