Bug#1122336: libreoffice: Smoketest fails on hppa and powerpc due to missing soffice.sh

Rene Engelhard <[email protected]>
Newsgroups gmane.linux.debian.devel.openoffice
Organization Debian Project
Message-ID <7b0291c3-c9ee-4d00-8567-53eb44ee0e9c__30490.7842351653$1765418129$gmane$org@debian.org>
Hi,

Am 10.12.25 um 08:40 schrieb John Paul Adrian Glaubitz:
> on hppa and powerpc, the libreoffice package fails due to a failing smoketest [1]:
>
> [_RUN_____] (anonymous namespace)::Test::test
> ./unotest/source/cpp/officeconnection.cxx:77:(anonymous namespace)::Test::test
> setUp() failed
> - equality assertion failed
> - Expected: 0
> - Actual  : 4
>
> (anonymous namespace)::Test::test finished in: 6ms
> officeconnection.cxx:77:Assertion
> Test name: (anonymous namespace)::Test::test
> setUp() failed
> - equality assertion failed
> - Expected: 0
> - Actual  : 4
>
> Failures !!!
> Run: 1   Failure total: 1   Failures: 1   Errors: 0
That's powerpc, yes.
> After some investigation and discussions with upstream [2], I figured out that the problem
> is the missing wrapper script instdir/program/soffice for the soffice.bin binary. This script
> is normally generated from "desktop/scripts/soffice.sh via makefile targets in desktop/
> CustomTarget_sofice.mk and desktop/Package_soffice_sh.mk" (quoting Stephan Bergmann from [3]).
(experimental_powerpc-dchroot)rene@perotto:~/libreoffice-26.2.0~beta1$ find instdir/ -name "soffice*"
instdir/sdk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/soffice.gif
instdir/program/soffice
instdir/program/sofficerc
instdir/program/soffice.bin
instdir/share/config/soffice.cfg
(experimental_powerpc-dchroot)rene@perotto:~/libreoffi

Source: libreoffice
Version: 4:26.2.0~beta1-1
Severity: normal
User: [email protected]
Usertags: m68k,hppa,powerpc
X-Debbugs-Cc: [email protected],[email protected],[email protected]

Hello,

ce-26.2.0~beta1$ head -n 1 instdir/program/soffice
#!/bin/sh
(experimental_powerpc-dchroot)rene@perotto:~/libreoffice-26.2.0~beta1$

> I therefore copied the script manually and rerun the smoketest which immediately succeeded:
>
> glaubitz@perotto:~/loffice/libreoffice-26.2.0~beta1$ cp -av desktop/scripts/soffice.sh instdir/program/soffice
> 'desktop/scripts/soffice.sh' -> 'instdir/program/soffice'
> glaubitz@perotto:~/loffice/libreoffice-26.2.0~beta1$
>
> (sid_powerpc-dchroot)glaubitz@perotto:~/loffice/libreoffice-26.2.0~beta1/smoketest$ make subsequentcheck V=1
> rm -rf /home/glaubitz/loffice/libreoffice-26.2.0~beta1/workdir/CustomTarget/smoketest
> mkdir -p /home/glaubitz/loffice/libreoffice-26.2.0~beta1/workdir/CustomTarget/smoketest/user
> cp /home/glaubitz/loffice/libreoffice-26.2.0~beta1/qadevOOo/qa/registrymodifications.xcu /home/glaubitz/loffice/libreoffice-26.2.0~beta1/workdir/CustomTarget/smoketest/user
> [CUT] smoketest
> S=/home/glaubitz/loffice/libreoffice-26.2.0~beta1 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CppunitTest/ && rm -fr $W/CppunitTest/smoketest.test.user && cp -r $W/unittest $W/CppunitTest/smoketest.test.user &&    rm -fr $W/CppunitTest/smoketest.test.core && mkdir $W/CppunitTest/smoketest.test.core && cd $W/CppunitTest/smoketest.test.core &&   (   MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=dbm: SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C      LO_RUNNING_UNIT_TEST=1     env LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs    $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_smoketest.so --headless "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file://$W/CppunitTest/smoketest.test.user"    "-env:UNO_TYPES=file://$I/program/types.rdb file://$I/program/types/offapi.rdb"  "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb" -env:URE_BIN_DIR=file://$I/program -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector   -env:arg-soffice=path:$I/program/soffice -env:arg-user=$W/CustomTarget/smoketest -env:arg-env=LD_LIBRARY_PATH"${LD_LIBRARY_PATH+=$LD_LIBRARY_PATH}" -env:arg-testarg.smoketest.doc=$W/Zip/smoketestdoc.sxw  "-env:CPPUNITTESTTARGET=$W/CppunitTest/smoketest.test" )  2>&1
> [_RUN_____] (anonymous namespace)::Test::test
> (anonymous namespace)::Test::test finished in: 13398ms
> OK (1)
> [SCK] smoketest
> S=/home/glaubitz/loffice/libreoffice-26.2.0~beta1 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/Module/subsequentcheck/ && touch $W/Module/subsequentcheck/smoketest
> (sid_powerpc-dchroot)glaubitz@perotto:~/loffice/libreoffice-26.2.0~beta1/smoketest$

But indeed, that works, interesting.


Regards,


Rene
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.