Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: LibreOffice bridges/smoketest on mips(64)el (was: Re: unbreaking LibreOffices tests on at least release architectures)

1 view
Skip to first unread message

René Engelhard

unread,
Jul 4, 2023, 8:40:03 AM7/4/23
to
Hi,

Am 4. Juli 2023 13:29:48 MESZ schrieb Adrian Bunk <bu...@debian.org>:
>On Mon, Jul 03, 2023 at 09:31:29PM +0200, Rene Engelhard wrote:
>> Hi,
>>
>> Am 25.06.23 um 13:37 schrieb Rene Engelhard:
>> > > what about the
>> > > following:
>> > > - make all test failures fatal on a*64 (since upstream tests these), and
>> > > - make smoketest failures fatal on all architectures (including ports)
>>
>> That was implemented (+ two more important tests) in experimental. See
>> https://buildd.debian.org/status/package.php?p=libreoffice
>>
>> It does
>> - bridgetest
>> - smoketest
>> - pyuno
>>
>> What fails for release archs astonishingly is only mips(64)el.
>
>It also failed on riscv64

riscv64 as of now tests everything, see the comment in rules. It doesn't get the "already exists as release arch and keep it" bonus (yet).

testtools and pyuno work but indeed, smoketest fails as it does for mips64el.

> (and powerpc), so that seems to be
>a criteria that catches the known-broken builds.

Yup

>>...
>> 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.

>AFAIK OpenJDK on MIPS does not have any known major issues.

Mmh

>The Zero build of OpenJDK on MIPS is of course slow,
>but that's also true on armel where the build succeeded.

Indeed.

>BTW: The MIPS-specific discussion should continue on debian-mips instead
>     of debian-ports.

What I also said already :)

Regards

René

Rene Engelhard

unread,
Jul 4, 2023, 6:20:03 PM7/4/23
to
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é

Rene Engelhard

unread,
Jul 10, 2023, 12:10:03 PM7/10/23
to
Hi,

Am 04.07.23 um 23:56 schrieb Rene Engelhard:
> 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:

[...]

Did some more tests (including builds, but they don't get anywhere to
report yet...)

rene@eller ~ % dd-schroot-cmd -c
sid_mips64el-dchroot-abefe46d-3e8a-402b-bd94-6fe01d92cdda apt-get
install libreoffice-nlpsolver libreoffice-lightproof-hu
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
fonts-opensymbol libreoffice-base-core libreoffice-calc libreoffice-core
python3-uno
Suggested packages:
libreoffice-base ocl-icd-libopencl1 | mesa-opencl-icd |
beignet-opencl-icd
Recommended packages:
libpaper-utils gstreamer1.0-plugins-base gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
The following NEW packages will be installed:
fonts-opensymbol libreoffice-base-core libreoffice-calc libreoffice-core
libreoffice-lightproof-hu libreoffice-nlpsolver python3-uno
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Inst fonts-opensymbol (4:102.12+LibO7.4.5-3 Debian:unstable [all])
Inst libreoffice-core (4:7.4.5-3 Debian:unstable [mips64el])
Inst libreoffice-base-core (4:7.4.5-3 Debian:unstable [mips64el])
Inst libreoffice-calc (4:7.4.5-3 Debian:unstable [mips64el])
Inst python3-uno (4:7.4.5-3 Debian:unstable [mips64el])
Inst libreoffice-lightproof-hu (1.6.2+1.6-3 Debian:unstable [all])
Inst libreoffice-nlpsolver (4:0.9+LibO7.4.5-3 Debian:unstable [all])
Conf fonts-opensymbol (4:102.12+LibO7.4.5-3 Debian:unstable [all])
Conf libreoffice-core (4:7.4.5-3 Debian:unstable [mips64el])
Conf libreoffice-base-core (4:7.4.5-3 Debian:unstable [mips64el])
Conf libreoffice-calc (4:7.4.5-3 Debian:unstable [mips64el])
Conf python3-uno (4:7.4.5-3 Debian:unstable [mips64el])
Conf libreoffice-lightproof-hu (1.6.2+1.6-3 Debian:unstable [all])
Conf libreoffice-nlpsolver (4:0.9+LibO7.4.5-3 Debian:unstable [all])
Do it for real [Y/n]: y
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
fonts-opensymbol libreoffice-base-core libreoffice-calc libreoffice-core
python3-uno
Suggested packages:
libreoffice-base ocl-icd-libopencl1 | mesa-opencl-icd |
beignet-opencl-icd
Recommended packages:
libpaper-utils gstreamer1.0-plugins-base gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
The following NEW packages will be installed:
fonts-opensymbol libreoffice-base-core libreoffice-calc libreoffice-core
libreoffice-lightproof-hu libreoffice-nlpsolver python3-uno
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.2 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Get:1 https://deb.debian.org/debian sid/main mips64el fonts-opensymbol
all 4:102.12+LibO7.4.5-3 [113 kB]
Get:2 https://deb.debian.org/debian sid/main mips64el libreoffice-core
mips64el 4:7.4.5-3 [28.0 MB]
Get:3 https://deb.debian.org/debian sid/main mips64el
libreoffice-base-core mips64el 4:7.4.5-3 [673 kB]
Get:4 https://deb.debian.org/debian sid/main mips64el libreoffice-calc
mips64el 4:7.4.5-3 [6458 kB]
Get:5 https://deb.debian.org/debian sid/main mips64el python3-uno
mips64el 4:7.4.5-3 [139 kB]
Get:6 https://deb.debian.org/debian sid/main mips64el
libreoffice-lightproof-hu all 1.6.2+1.6-3 [31.0 kB]
Get:7 https://deb.debian.org/debian sid/main mips64el
libreoffice-nlpsolver all 4:0.9+LibO7.4.5-3 [712 kB]
Fetched 36.2 MB in 5s (7975 kB/s)
Download complete and in download only mode
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
fonts-opensymbol libreoffice-base-core libreoffice-calc libreoffice-core
python3-uno
Suggested packages:
libreoffice-base ocl-icd-libopencl1 | mesa-opencl-icd |
beignet-opencl-icd
Recommended packages:
libpaper-utils gstreamer1.0-plugins-base gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
The following NEW packages will be installed:
fonts-opensymbol libreoffice-base-core libreoffice-calc libreoffice-core
libreoffice-lightproof-hu libreoffice-nlpsolver python3-uno
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/36.2 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Selecting previously unselected package fonts-opensymbol.
(Reading database ... 90795 files and directories currently installed.)
Preparing to unpack
.../0-fonts-opensymbol_4%3a102.12+LibO7.4.5-3_all.deb ...
Unpacking fonts-opensymbol (4:102.12+LibO7.4.5-3) ...
Selecting previously unselected package libreoffice-core.
Preparing to unpack .../1-libreoffice-core_4%3a7.4.5-3_mips64el.deb ...
Unpacking libreoffice-core (4:7.4.5-3) ...
Selecting previously unselected package libreoffice-base-core.
Preparing to unpack .../2-libreoffice-base-core_4%3a7.4.5-3_mips64el.deb ...
Unpacking libreoffice-base-core (4:7.4.5-3) ...
Selecting previously unselected package libreoffice-calc.
Preparing to unpack .../3-libreoffice-calc_4%3a7.4.5-3_mips64el.deb ...
Unpacking libreoffice-calc (4:7.4.5-3) ...
Selecting previously unselected package python3-uno.
Preparing to unpack .../4-python3-uno_4%3a7.4.5-3_mips64el.deb ...
Unpacking python3-uno (4:7.4.5-3) ...
Selecting previously unselected package libreoffice-lightproof-hu.
Preparing to unpack .../5-libreoffice-lightproof-hu_1.6.2+1.6-3_all.deb ...
Unpacking libreoffice-lightproof-hu (1.6.2+1.6-3) ...
Selecting previously unselected package libreoffice-nlpsolver.
Preparing to unpack
.../6-libreoffice-nlpsolver_4%3a0.9+LibO7.4.5-3_all.deb ...
Unpacking libreoffice-nlpsolver (4:0.9+LibO7.4.5-3) ...
Setting up fonts-opensymbol (4:102.12+LibO7.4.5-3) ...
Setting up libreoffice-core (4:7.4.5-3) ...
Setting up libreoffice-base-core (4:7.4.5-3) ...
Setting up python3-uno (4:7.4.5-3) ...
Setting up libreoffice-calc (4:7.4.5-3) ...
Setting up libreoffice-nlpsolver (4:0.9+LibO7.4.5-3) ...
Setting up libreoffice-lightproof-hu (1.6.2+1.6-3) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libreoffice-common (4:7.4.5-3) ...
Processing triggers for fontconfig (2.14.1-4) ...

rene@eller ~/libreoffice-7.5.5~rc1 % unopkg list --bundled
All deployed bundled extensions:

Identifier: org.openoffice.comp.pyuno.lightproof.oxt.lightproof_hu
Version: 1.6.2
URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/lightproof_hu
is registered: yes
Media-Type: application/vnd.sun.star.package-bundle
Description:
bundled Packages: {
URL:
vnd.sun.star.expand:$BUNDLED_EXTENSIONS/lightproof_hu/dialog/OptionsDialog.xcs
is registered: yes
Media-Type: application/vnd.sun.star.configuration-schema
Description:

URL:
vnd.sun.star.expand:$BUNDLED_EXTENSIONS/lightproof_hu/dialog/OptionsDialog.xcu
is registered: yes
Media-Type: application/vnd.sun.star.configuration-data
Description:
and mips64el
URL:
vnd.sun.star.expand:$BUNDLED_EXTENSIONS/lightproof_hu/Lightproof.py
is registered: yes
Media-Type: application/vnd.sun.star.uno-component;type=Python
Description:

URL:
vnd.sun.star.expand:$BUNDLED_EXTENSIONS/lightproof_hu/Linguistic.xcu
is registered: yes
Media-Type: application/vnd.sun.star.configuration-data
Description:

}

Identifier: com.sun.star.comp.Calc.NLPSolver
Version: 0.9
URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver
is registered: yes
Media-Type: application/vnd.sun.star.package-bundle
Description: This extension integrates into Calc and offers new
Solver engines to use for optimizing nonlinear programming models.

bundled Packages: {
URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver/help
is registered: yes
Media-Type: application/vnd.sun.star.help
Description:

URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver/components.rdb
is registered: yes
Media-Type: application/vnd.sun.star.uno-components
Description:

}


% rm -rf ~/.config/libreoffice

% debian/tests/test-extension

====== Add the extension ======
Synchronizing repository for shared extensions
Synchronizing repository for shared extensions








Synchronizing repository for bundled extensions
Synchronizing repository for bundled extensions








Enabling: Lightproof grammar checker (magyar)
Enabling: Lightproof grammar checker (magyar)

Enabling: OptionsDialog.xcs
Enabling: OptionsDialog.xcs

Enabling: OptionsDialog.xcu
Enabling: OptionsDialog.xcu

Enabling: Lightproof.py
Enabling: Lightproof.py

Enabling: Linguistic.xcu
Enabling: Linguistic.xcu

Enabling: Solver for Nonlinear Programming
Enabling: Solver for Nonlinear Programming

Enabling: help
Enabling: help

Enabling: components.rdb
Enabling: components.rdb

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.


For both the mips64el and mipsel(!) chroots.

This means "bundled" extensions *SEEMS TO* work, those to be installed
from .oxt apparently not... The question really is whether they actually
do work or whether it's just a wrong positive display.

> 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.

There is some mechanism in place in debian/rules to ignore this error
but I don't really like it.

Can someone with root on a mips(64)el/riscv64 (and LO installed) try whether

1.

$ apt install libreoffice-core
$ apt install libreoffice-java-common ure-java (just in case)
$ apt install libreoffice-smoketest-data
(or wget it and extract the .oxt from the .deb)
$ cd /usr/lib/libreoffice/share/extensions
$ mkdir -p TestExtension && cd TestExtension
$ unzip /usr/share/libreoffice/TestExtension.oxt
(or the extracted .oxt)
$ unopkg list --bundled

for the text extension

2.

$ apt install libreoffice-core libreoffice-writer libreoffice-calc
$ apt install libreoffice-java-common ure-java (just in case)
$ apt install libreoffice-nlpsolver libreoffice-lightproof-en
$ unopkg list --bundled
(start LO and see
- whether Tools->Extension Manager shows something sensbile (both
"English grammar checker" and "Solver for nonlinear programming" or
somsuch OKish - not greyed out for example)
- start a lowriter document, make sure document language is english
(you can do LANG=C....): Type "This is an test". "an test" should be
underlined (grammar checked)
- start a localc document. Tools->Solver->Options. Should have 5
options instead of 3.

for some real extensions in the archive.

riscv64 packages skipping the extensions part are at
http://people.debian.org/~rene/libreoffice/test/extensions
(apt-gettable). mips(64)el should be able to be tested in unstable with
7.4.x...

@zeha: See above.

Regards

René

Rene Engelhard

unread,
Jul 19, 2023, 2:10:04 PM7/19/23
to


Am 10.07.23 um 18:01 schrieb Rene Engelhard:
> For both the mips64el and mipsel(!) chroots.
>
> This means "bundled" extensions *SEEMS TO* work, those to be installed
> from .oxt apparently not... The question really is whether they actually
> do work or whether it's just a wrong positive display.
>
> > 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.
>
> There is some mechanism in place in debian/rules to ignore this error
> but I don't really like it.
>

Using that one to disable Java and python and using --disable-extensions
(and via debian/rules logic patching out the extension test[1] in
smoketest) "the rest" passes

[1]
diff --git a/rules b/rules
index 1835aafb..fa5e945a 100755
--- a/rules
+++ b/rules
@@ -116,6 +116,9 @@ ENABLE_GUI=y

ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),)
ENABLE_PYTHON=y
+ifeq "$(DEB_HOST_ARCH)" "mips64el"
+ ENABLE_PYTHON=n
+endif
ifeq "$(ENABLE_PYTHON)" "y"
CONFIGURE_FLAGS += --enable-python=system
ENABLE_SCRIPT_PROVIDER_PYTHON=y
@@ -142,6 +145,9 @@ endif
BUILD_ONLY_EN_US=n
ifeq ($(filter nojava,$(DEB_BUILD_PROFILES)),)
ENABLE_JAVA=y
+ ifeq "$(DEB_HOST_ARCH)" "mips64el"
+ ENABLE_JAVA=n
+ endif
ifeq "$(ENABLE_JAVA)" "y"
JDK=default
include /usr/share/java/java_defaults.mk
@@ -611,7 +617,7 @@ OOO_JAVA_ARCHS = $(OOO_ARCHS)
endif
$(eval $(call gen_no_archs,OOO_JAVA_ARCHS))

-OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(OOO_ARCHS)
+OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(filter-out mips64el,$(OOO_ARCHS))
OOO_EXTENSIONS_ARCHS := $(OOO_ARCH_DEP_EXTENSIONS_ARCHS)

OOO_BASE_ARCHS := $(OOO_JAVA_ARCHS)

together with

https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/master/rules#L641
ff.
https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/master/rules#L2272
/
https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/master/rules#L2384

but I don't really like that, since this opens pandoras box for
disabling stuff here and there for failing stuff (and my crystall ball
says it will never be fixed since "the pressure" to do so is gone since
"it works")...

> Can someone with root on a mips(64)el/riscv64 (and LO installed) try
> whether
>
> 1.
>
> $ apt install libreoffice-core
> $ apt install libreoffice-java-common ure-java (just in case)
> $ apt install libreoffice-smoketest-data
> (or wget it and extract the .oxt from  the .deb)
> $ cd /usr/lib/libreoffice/share/extensions
> $ mkdir -p TestExtension && cd TestExtension
> $ unzip /usr/share/libreoffice/TestExtension.oxt
> (or the extracted .oxt)
> $ unopkg list --bundled
>
> for the text extension

FTR, that actually deosn't show here either as a bundled extension even
on amd64.

I *assume* that it misses stuff needed for it...

Regards

René
0 new messages