[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#926009: openjdk-11 breaks libreoffice autopkgtests



retitle 926009 new "Debian" as java.vendor breaks libreoffice
reassign 926009 src:openjdk-11
thanks

Hi,

> > so maybe some backports for libreoffice are needed? is that fixed in 6.2.x?
> 
> I don't even know yet what needs to be changed... That said, I actually
> first noticed this the day before Paul filed the bug - with 6.3.0 alpha
> git snapshot. So any LO is affected.

Got it.

> > pointy comments won't help, because you will see these changes at
> > least in the first buster security update

Even

openjdk-11 (11.0.3+4-2) unstable; urgency=medium

  [ Matthias Klose ]
  * Configure with vendor flags.
[...]

?

That one is the problem.

Let's compare:

buster has:

$ java -XshowSettings:properties -version 2>&1 | grep vendor
    java.specification.vendor = Oracle Corporation
    java.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    java.vendor.url.bug = http://bugreport.java.com/bugreport/
    java.vm.specification.vendor = Oracle Corporation
    java.vm.vendor = Oracle Corporation

sid has:

$ java -XshowSettings:properties -version 2>&1 | grep vendor
    java.specification.vendor = Oracle Corporation
    java.vendor = Debian
    java.vendor.url = https://tracker.debian.org/openjdk-11
    java.vendor.url.bug = https://bugs.debian.org/openjdk-11
    java.vm.specification.vendor = Oracle Corporation
    java.vm.vendor = Debian

Indeed, jvmfwk has a known list of JDKs, and "Debian" (or whatever else
distro) does not appear in it:
https://cgit.freedesktop.org/libreoffice/core/tree/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml?h=libreoffice-6-1-5
and it looks in java.vendor:

jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx:    //get java.vendor,
java.version, java.home,
jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx:        if(! bVendor &&
prop.first == "java.vendor")

Indeed, after adding "Debian" as a copy of "Oracle Corporation" javaldx
works again.

We as distros can patch it for LibreOffice, but this change breaks LibreOffice out there unless
patched, and I doubt they will (or will be happy) to add extra stanzas for "Debian", "Ubuntu" or
whatever else.

I really believe this should be reverted.

Regards,

Rene


Reply to: