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,

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

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

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$

Thus, we need to figure out why the build doesn't actually generated the 
wrapper script
for hppa, powerpc (and probably m68k) in order to fix the smokeest on these 
targets.

Adrian

> [1] 
> https://buildd.debian.org/status/fetch.php?pkg=libreoffice&arch=powerpc&ver=4%3A26.2.0%7Ebeta1-1&stamp=1765108295&raw=0
> [2] 
> https://lists.freedesktop.org/archives/libreoffice/2025-December/094089.html
> [3] 
> https://lists.freedesktop.org/archives/libreoffice/2025-December/094090.html

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to