LibreOffice (code) extensions broken on mips64el/riscv64 (was: Re: unbreaking LibreOffices tests on at least release architectures)

Rene Engelhard <[email protected]> Tue, 4 Jul 2023 23:56:52 +0200
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

Am 04.07.23 um 14:23 schrieb René Engelhard:
>  >>...
>  >> This test extension to be installed is a Java extension.
>  >> So I am running a nojava build on eller now... I don't really like 
> disabling
>  >> Java since this opens Pandoras box but for mips64el we probably could do
>  >> that.
>  >
>  >It would also hint at a MIPS problem in LibreOffice,
> 
> Yeah, we at least know the 32bit (mipsel) is (and probably was for ages) 
> completely broken.
> 
>  >which might or might not be specific to Java.
> 
> Yeah, just that it exhibits with a java extension. Probably should try 
> with a dummy or a python one.

So

- Java extension (said TestExtension.oxt used in the smoketest): fails
- pure dictionary extension: works
- python extension (hungarian grammarcheck - Python): fails
- no C++ extension available to test on riscv64 ;-)

Tested on riscv64 on the porterbox (and later also on eller with acual 
sids libreoffice). That means it's not just Java:

rene@eller ~ % unopkg add -v dict-en-20230701_lo.oxt
Copying: dict-en-20230701_lo.oxt

unopkg done.
 
 
        rene@eller ~ % unopkg smoketest on mips(64)eladd -v 
lightproof-hu-1-6-4.oxt
Copying: lightproof-hu-1-6-4.oxt

ERROR: Exception occurred: An error occurred while enabling: 
Lightproof.py: 
com.sun.star.registry.CannotRegisterImplementationException 
"ImplementationRegistration::registerImplementation() 
InvalidRegistryException during registration (destination registry is 
read-only!  cannot merge! at 
./stoc/source/implementationregistration/mergekeys.cxx:160) at 
./stoc/source/implementationregistration/implreg.cxx:1307" at 
./desktop/source/deployment/registry/dp_backend.cxx:670

     Cause: 
(com.sun.star.registry.CannotRegisterImplementationException) { { 
Message = "ImplementationRegistration::registerImplementation() 
InvalidRegistryException during registration (destination registry is 
read-only!  cannot merge! at 
./stoc/source/implementationregistration/mergekeys.cxx:160) at 
./stoc/source/implementationregistration/implreg.cxx:1307", Context = 
(com.sun.star.uno.XInterface) @0 } }

ERROR: unopkg failed.

rene@eller ~ % unopkg add -v TestExtension.oxt
Copying: TestExtension.oxt

ERROR: Exception occurred: An error occurred while enabling: 
TestExtension.jar: 
com.sun.star.registry.CannotRegisterImplementationException 
"ImplementationRegistration::registerImplementation() 
InvalidRegistryException during registration (destination registry is 
read-only!  cannot merge! at 
./stoc/source/implementationregistration/mergekeys.cxx:160) at 
./stoc/source/implementationregistration/implreg.cxx:1307" at 
./desktop/source/deployment/registry/dp_backend.cxx:670

     Cause: 
(com.sun.star.registry.CannotRegisterImplementationException) { { 
Message = "ImplementationRegistration::registerImplementation() 
InvalidRegistryException during registration (destination registry is 
read-only!  cannot merge! at 
./stoc/source/implementationregistration/mergekeys.cxx:160) at 
./stoc/source/implementationregistration/implreg.cxx:1307", Context = 
(com.sun.star.uno.XInterface) @0 } }

ERROR: unopkg failed.

rene@eller ~ % unopkg list
All deployed user extensions:

Identifier: org.openoffice.comp.pyuno.lightproof.oxt.lightproof_hu
   Version: 1.6.4
   URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt
   is registered: unknown
   Media-Type: application/vnd.sun.star.package-bundle
   Description:
   bundled Packages: {
       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/dialog/OptionsDialog.xcs
       is registered: yes
       Media-Type: application/vnd.sun.star.configuration-schema
       Description:

       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/dialog/OptionsDialog.xcu
       is registered: yes
       Media-Type: application/vnd.sun.star.configuration-data
       Description:

       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/Lightproof.py
       is registered: no
       ^^^^^^^^^^^^^^^^^
       Media-Type: application/vnd.sun.star.uno-component;type=Python
       Description:

       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/Linguistic.xcu
       is registered: no
       Media-Type: application/vnd.sun.star.configuration-data
       Description:

   }

Identifier: org.openoffice.en.hunspell.dictionaries
   Version: 2023.07.01
   URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18886himjds.tmp_/dict-en-20230701_lo.oxt
   is registered: yes
   Media-Type: application/vnd.sun.star.package-bundle
   Description: English dictionaries for LibreOffice 4.0+.

It includes:
- en_AU (Australian) (updated: 2020-12-07)
- en_CA (Canadian) (updated: 2020-12-07)
- en_GB (British) (updated: 2023-07-01)
- en_US (American) (updated: 2020-12-07)
- en_ZA (South African) (updated: 2023-02-01)

   bundled Packages: {
       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18886himjds.tmp_/dict-en-20230701_lo.oxt/dictionaries.xcu
       is registered: yes
       Media-Type: application/vnd.sun.star.configuration-data
       Description:

   }

Identifier: org.libreoffice.smoketest.TestExtension
   Version: 1
   URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu20167hipz3e.tmp_/TestExtension.oxt
   is registered: no
   ^^^^^^^^^^^^^^^^^
   Media-Type: application/vnd.sun.star.package-bundle
   Description:
   bundled Packages: {
       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu20167hipz3e.tmp_/TestExtension.oxt/TestExtension.jar
       is registered: no
       Media-Type: application/vnd.sun.star.uno-component;type=Java
       Description:

   }All deployed user extensions:

Identifier: org.openoffice.comp.pyuno.lightproof.oxt.lightproof_hu
   Version: 1.6.4
   URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt
   is registered: unknown
   Media-Type: application/vnd.sun.star.package-bundle
   Description:
   bundled Packages: {
       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/dialog/OptionsDialog.xcs
       is registered: yes
       Media-Type: application/vnd.sun.star.configuration-schema
       Description:

       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/dialog/OptionsDialog.xcu
       is registered: yes
       Media-Type: application/vnd.sun.star.configuration-data
       Description:

       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/Lightproof.py
       is registered: no
       Media-Type: application/vnd.sun.star.uno-component;type=Python
       Description:

       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18948himqz7.tmp_/lightproof-hu-1-6-4.oxt/Linguistic.xcu
       is registered: no
       Media-Type: application/vnd.sun.star.configuration-data
       Description:

   }

Identifier: org.openoffice.en.hunspell.dictionaries
   Version: 2023.07.01
   URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18886himjds.tmp_/dict-en-20230701_lo.oxt
   is registered: yes
   Media-Type: application/vnd.sun.star.package-bundle
   Description: English dictionaries for LibreOffice 4.0+.

It includes:
- en_AU (Australian) (updated: 2020-12-07)
- en_CA (Canadian) (updated: 2020-12-07)
- en_GB (British) (updated: 2023-07-01)
- en_US (American) (updated: 2020-12-07)
- en_ZA (South African) (updated: 2023-02-01)

   bundled Packages: {
       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu18886himjds.tmp_/dict-en-20230701_lo.oxt/dictionaries.xcu
       is registered: yes
       Media-Type: application/vnd.sun.star.configuration-data
       Description:

   }

Identifier: org.libreoffice.smoketest.TestExtension
   Version: 1
   URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu20167hipz3e.tmp_/TestExtension.oxt
   is registered: no
   Media-Type: application/vnd.sun.star.package-bundle
   Description:
   bundled Packages: {
       URL: 
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu20167hipz3e.tmp_/TestExtension.oxt/TestExtension.jar
       is registered: no
       Media-Type: application/vnd.sun.star.uno-component;type=Java
       Description:

   }


(I think this "destination registry is read-only" is just bogus.)

So ignoring this test failure is a no-go either since 
libreoffice-lightproof-hu et al. (which is that lightproof-hu-1-6-4.oxt) 
is a thing in Debian, too.

Regards

René