Solved LibreOffice with GTK3

… LibreOffice 7 on FreeBSD 13.0-RELEASE/Xfce 4.16 …

LibreOffice built with default options uses Qt …

… package is built without Gtk3 support which was considered unstable and having visual glitches. …

June 2020: <https://github.com/freebsd/freebsd-...cf050df0a2c325fdbf1c02481dad16afd38f4bd6a1R15> the note about instability with GTK3.

February 2022: <https://github.com/freebsd/freebsd-...f70a4badb4a379a6b01f65ffdf0c6a4cd108R130-R133> with the introduction of LibreOffice 7.3, GTK+ 4 GUI toolkit support was marked as broken.

Now:

LibreOffice Writer 7.3.2.2 with GTK3=on​


A brief screen recording (looping GIF):

2022-04-22 05-26.gif

Which aspects of LibreOffice should be checked for stability with GTK3?

Code:
% pkg info --annotations editors/libreoffice
libreoffice-7.3.2.2_2:
        FreeBSD_version: 1400056
        build_timestamp: 2022-04-21T22:49:24+0000
        built_by       : poudriere-git-3.3.99.20211130
        cpe            : cpe:2.3:a:libreoffice:libreoffice:7.3.2.2:::::freebsd14:x64:2
        port_checkout_unclean: no
        port_git_hash  : d63665f7cd
        ports_top_checkout_unclean: yes
        ports_top_git_hash: 21c2f510ea
        repo_type      : binary
        repository     : poudriere
% pkg -vv | grep -e url -e enabled
    url             : "pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    url             : "https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest",
    enabled         : no,
    url             : "file:///usr/local/poudriere/data/packages/main-default",
    enabled         : yes,
% pkg lock -l
Currently locked packages:
drm-devel-kmod-5.7.19.g20220223
libreoffice-7.3.2.2_2
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #10 main-n254693-d7696096209-dirty: Wed Apr 13 06:03:02 BST 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400056 1400056
% poudriere options -ns editors/libreoffice
[00:00:00] Working on options directory /usr/local/etc/poudriere.d/options
===> The following configuration options are available for libreoffice-7.3.2.2_2:
     COINMP=off: Enable CoinMP (deprecated) math solver
     CUPS=on: CUPS printing system support
     DOCS=on: Build and/or install documentation
     GNOME=off: GNOME desktop environment support
     GTK3=on: GTK+ 3 GUI toolkit support
     GTK4=off: GTK+ 4 GUI toolkit support (broken)
     JAVA=on: Add Java support (XML filters, macros, DB connections)
     KF5=on: KF5/Qt5 GUI toolkit support (implies QT5)
     LTO=on: Use Link-Time Optimization
     MARIADB=off: Build with MariaDB/MySQL-SDBC driver
     MMEDIA=on: Enable multimedia backend for Impress
     PDFIUM=on: Enable PDFium secure engine
     PGSQL=off: Build with PostgreSQL-SDBC driver
     QT5=on: Qt5 GUI toolkit support (default visual style)
     SDK=off: Build with SDK
     TEST=off: Run all regression tests
     WEBDAV=on: Enable WebDAV protocol
 
There are "visual glitches" on the current version. They don't appear to corrupt the document in any way.
At first, I thought it was some issue with my Nvidia board - but I only see them on LO, and only under certain circumstances.
I will fill in details later about when they occur, maybe a screenshot and my Nvidia driver information etc.
 
Posted this in error in the linked discussion (apologies)
This is a screenshot from 7.3.2.2 30(Build:2). The "glitch" appears when trying to insert text to the left of a "Formula Object".
It is only one example, I'm sure I've seen it elsewhere (in tables, I think).
The corrupted / missing text usually re-appears if you move to the end of the line.
My Nvidia driver version is 510.60.2
Hope this helps
 

Attachments

  • LOtextproblem.png
    LOtextproblem.png
    26.7 KB · Views: 101
Glitches: I cannot supply a screenshot of the glitch this time, but when inserting a table a rectangular panel appears to make choices on row, columns etc. .
If I move around that panel quickly with the mouse, strange smeared text artefacts appear - then sometimes it vanishes.
Unfortunately, as another process is brought into play (Spectacle for example) the smeared text either vanishes or normalises (if you see what I mean).
It looks to me that as LO uses fonts pulled in from the system, it doesn't have as much control as it should. However, I could be totally wrong - I'm used to that.
 
June 2020: <https://github.com/freebsd/freebsd-...cf050df0a2c325fdbf1c02481dad16afd38f4bd6a1R15> the note about instability with GTK3.

February 2022: <https://github.com/freebsd/freebsd-...f70a4badb4a379a6b01f65ffdf0c6a4cd108R130-R133> with the introduction of LibreOffice 7.3, GTK+ 4 GUI toolkit support was marked as broken.

Now:

LibreOffice Writer 7.3.2.2 with GTK3=on​


A brief screen recording (looping GIF):

View attachment 13699

Which aspects of LibreOffice should be checked for stability with GTK3?

Code:
% pkg info --annotations editors/libreoffice
libreoffice-7.3.2.2_2:
        FreeBSD_version: 1400056
        build_timestamp: 2022-04-21T22:49:24+0000
        built_by       : poudriere-git-3.3.99.20211130
        cpe            : cpe:2.3:a:libreoffice:libreoffice:7.3.2.2:::::freebsd14:x64:2
        port_checkout_unclean: no
        port_git_hash  : d63665f7cd
        ports_top_checkout_unclean: yes
        ports_top_git_hash: 21c2f510ea
        repo_type      : binary
        repository     : poudriere
% pkg -vv | grep -e url -e enabled
    url             : "pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    url             : "https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest",
    enabled         : no,
    url             : "file:///usr/local/poudriere/data/packages/main-default",
    enabled         : yes,
% pkg lock -l
Currently locked packages:
drm-devel-kmod-5.7.19.g20220223
libreoffice-7.3.2.2_2
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #10 main-n254693-d7696096209-dirty: Wed Apr 13 06:03:02 BST 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400056 1400056
% poudriere options -ns editors/libreoffice
[00:00:00] Working on options directory /usr/local/etc/poudriere.d/options
===> The following configuration options are available for libreoffice-7.3.2.2_2:
     COINMP=off: Enable CoinMP (deprecated) math solver
     CUPS=on: CUPS printing system support
     DOCS=on: Build and/or install documentation
     GNOME=off: GNOME desktop environment support
     GTK3=on: GTK+ 3 GUI toolkit support
     GTK4=off: GTK+ 4 GUI toolkit support (broken)
     JAVA=on: Add Java support (XML filters, macros, DB connections)
     KF5=on: KF5/Qt5 GUI toolkit support (implies QT5)
     LTO=on: Use Link-Time Optimization
     MARIADB=off: Build with MariaDB/MySQL-SDBC driver
     MMEDIA=on: Enable multimedia backend for Impress
     PDFIUM=on: Enable PDFium secure engine
     PGSQL=off: Build with PostgreSQL-SDBC driver
     QT5=on: Qt5 GUI toolkit support (default visual style)
     SDK=off: Build with SDK
     TEST=off: Run all regression tests
     WEBDAV=on: Enable WebDAV protocol
Just downloaded 7.3.5.2 from pkg, and it's been fixed - displays really well.
In my opinion, having core applications working and working properly adds immensely to the appeal and value of FreeBSD.
Anyway, if some of this is due to your efforts - thanks very much.
 
Back
Top