Hi,

while it builds (and cargo test works) LibreOffice 26.2 new Rust->UNO bridge 
apparently does not work on ppc64el:

https://ci.debian.net/packages/libr/libreoffice/unstable/ppc64el/66501939/#S56

(verified on the porterboxes, also for ppc64el. All other archs I tried so far 
worked - even loong64...)

This is how it should look like (s390x here, the rest also works where it is 
present but either is not tested by ci
or has a too big log (amd64) to hace a link to link too in the fancy pages):

https://ci.debian.net/packages/libr/libreoffice/unstable/s390x/66598193/#S56

This test does

echo "====== Call Rust UNO -> Example menu entry provided by the extension 
======"
timeout -f -p 10 libreoffice --invisible --nologo --norestore \
        debian/tests/Test.fodt macro://./Standard.Test.TestRustUNOExample | tee 
$TMP

if grep -q "example completed successfully" $TMP; then
        exit 0
else
        exit 1
fi
rm $TMP

together with the macro

sub TestRustUNOExample
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
doc = ThisComponent
rem Open Rust UNO -> Example as defined by the extension
dispatcher.executeDispatch(document, "vnd.org.libreoffice.rust_uno.example:", 
"", 0, Array())
doc.close(true)
rem FIXME. How to close the soffice, ignoring all open documents? Even if we 
close the initial (writer) document
rem then the document created by the extension remains open, is handled as 
"changed", and gives the question whether to save...
rem For now worked around by calling libreoffice with the "timeout" 
command and getting it killed after the timeout

end sub

in that Test.fodt

so it just opens the Rust UNO -> Example menu entry provided by the example 
extension (https://packages.debian.org/experimental/libreoffice-rust-uno-example).

Unfortunately there is no output, so can any ppc64(el) person have a look?

- what does it do if you run that menu entry from an actual LO on ppc64el? Does 
it output anything?
- why it doesn't work?

Given the "recent" Java desaster noone cared until it has to be disabled to get 
any change to get a non-ancient LO in Debian releases I do really not have any hope, but 
you can impress me :-)

See https://git.libreoffice.org/core/+/refs/heads/master/rust_uno/ (or your 
local 26.2.0 alpha1 package from experimental) for the code (the example 
extension is under example/). The rest is the crate packaged in 
librust-rust-uno-dev (where cargo test works, but that might or might not say 
anything).

Regards,

Rene

Reply via email to