Bug 2314078 - libreoffice-core pulling in qt6
Summary: libreoffice-core pulling in qt6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 41
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: libreoffice-sig
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-22 10:36 UTC by Peter Robinson
Modified: 2024-09-28 00:16 UTC (History)
7 users (show)

Fixed In Version: libreoffice-24.8.1.2-2.fc42 libreoffice-24.8.1.2-2.fc41
Clone Of:
Environment:
Last Closed: 2024-09-28 00:16:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Robinson 2024-09-22 10:36:36 UTC
At some point after 24.2.5.2-3.fc41 libreoffice has started pulling in QT6 even on workstation which increasing install by well over 100Mb, it would be great if the QT6 support can be put in sub packages like the gtk3/gtk4 support.

Comment 1 Gwyn Ciesla 2024-09-23 21:46:26 UTC
What package is bringing it in? The QT5 and QT6 pieces are in libreoffice-kf5 and libreoffice-kf6 respectively.

Comment 2 Peter Robinson 2024-09-23 22:08:12 UTC
This is what I see on a system without qt installed:

# dnf upgrade
Updating and loading repositories:
Repositories loaded.
Package                                           Arch          Version                                            Repository                       Size
Upgrading:
 libreoffice-calc                                 aarch64       1:24.8.1.2-1.fc41                                  updates-testing              26.2 MiB
   replacing libreoffice-calc                     aarch64       1:24.2.5.2-3.fc41                                  fedora                       25.8 MiB
 libreoffice-core                                 aarch64       1:24.8.1.2-1.fc41                                  updates-testing             297.2 MiB
   replacing libreoffice-core                     aarch64       1:24.2.5.2-3.fc41                                  fedora                      305.1 MiB
 libreoffice-data                                 aarch64       1:24.8.1.2-1.fc41                                  updates-testing               3.3 MiB
   replacing libreoffice-data                     aarch64       1:24.2.5.2-3.fc41                                  fedora                        3.3 MiB
 libreoffice-emailmerge                           aarch64       1:24.8.1.2-1.fc41                                  updates-testing              26.4 KiB
   replacing libreoffice-emailmerge               aarch64       1:24.2.5.2-3.fc41                                  fedora                       26.7 KiB
 libreoffice-filters                              aarch64       1:24.8.1.2-1.fc41                                  updates-testing               0.0   B
   replacing libreoffice-filters                  aarch64       1:24.2.5.2-3.fc41                                  fedora                        0.0   B
 libreoffice-graphicfilter                        aarch64       1:24.8.1.2-1.fc41                                  updates-testing               1.3 MiB
   replacing libreoffice-graphicfilter            aarch64       1:24.2.5.2-3.fc41                                  fedora                        1.3 MiB
 libreoffice-gtk3                                 aarch64       1:24.8.1.2-1.fc41                                  updates-testing               1.9 MiB
   replacing libreoffice-gtk3                     aarch64       1:24.2.5.2-3.fc41                                  fedora                        1.9 MiB
 libreoffice-gtk4                                 aarch64       1:24.8.1.2-1.fc41                                  updates-testing               1.8 MiB
   replacing libreoffice-gtk4                     aarch64       1:24.2.5.2-3.fc41                                  fedora                        1.8 MiB
 libreoffice-help-en                              aarch64       1:24.8.1.2-1.fc41                                  updates-testing              28.5 MiB
   replacing libreoffice-help-en                  aarch64       1:24.2.5.2-3.fc41                                  fedora                       28.1 MiB
 libreoffice-impress                              aarch64       1:24.8.1.2-1.fc41                                  updates-testing               1.0 MiB
   replacing libreoffice-impress                  aarch64       1:24.2.5.2-3.fc41                                  fedora                        1.0 MiB
 libreoffice-langpack-en                          aarch64       1:24.8.1.2-1.fc41                                  updates-testing             171.9 KiB
   replacing libreoffice-langpack-en              aarch64       1:24.2.5.2-3.fc41                                  fedora                      171.9 KiB
 libreoffice-ogltrans                             aarch64       1:24.8.1.2-1.fc41                                  updates-testing             371.8 KiB
   replacing libreoffice-ogltrans                 aarch64       1:24.2.5.2-3.fc41                                  fedora                      372.0 KiB
 libreoffice-opensymbol-fonts                     noarch        1:24.8.1.2-1.fc41                                  updates-testing             440.0 KiB
   replacing libreoffice-opensymbol-fonts         noarch        1:24.2.5.2-3.fc41                                  fedora                      440.0 KiB
 libreoffice-pdfimport                            aarch64       1:24.8.1.2-1.fc41                                  updates-testing             736.3 KiB
   replacing libreoffice-pdfimport                aarch64       1:24.2.5.2-3.fc41                                  fedora                      756.9 KiB
 libreoffice-pyuno                                aarch64       1:24.8.1.2-1.fc41                                  updates-testing               2.5 MiB
   replacing libreoffice-pyuno                    aarch64       1:24.2.5.2-3.fc41                                  fedora                        2.1 MiB
 libreoffice-ure                                  aarch64       1:24.8.1.2-1.fc41                                  updates-testing              11.2 MiB
   replacing libreoffice-ure                      aarch64       1:24.2.5.2-3.fc41                                  fedora                       11.2 MiB
 libreoffice-ure-common                           aarch64       1:24.8.1.2-1.fc41                                  updates-testing               2.3 MiB
   replacing libreoffice-ure-common               aarch64       1:24.2.5.2-3.fc41                                  fedora                        2.3 MiB
 libreoffice-writer                               aarch64       1:24.8.1.2-1.fc41                                  updates-testing              12.4 MiB
   replacing libreoffice-writer                   aarch64       1:24.2.5.2-3.fc41                                  fedora                       12.5 MiB
 libreoffice-x11                                  aarch64       1:24.8.1.2-1.fc41                                  updates-testing             610.7 KiB
   replacing libreoffice-x11                      aarch64       1:24.2.5.2-3.fc41                                  fedora                      546.6 KiB
 libreoffice-xsltfilter                           aarch64       1:24.8.1.2-1.fc41                                  updates-testing               4.3 MiB
   replacing libreoffice-xsltfilter               aarch64       1:24.2.5.2-3.fc41                                  fedora                        4.3 MiB
Installing dependencies:
 qt6-filesystem                                   aarch64       6.7.2-3.fc41                                       fedora                        0.0   B
 qt6-qtbase                                       aarch64       6.7.2-6.fc41                                       updates-testing              13.0 MiB
 qt6-qtbase-common                                noarch        6.7.2-6.fc41                                       updates-testing              74.0   B
 qt6-qtbase-gui                                   aarch64       6.7.2-6.fc41                                       updates-testing              26.9 MiB
 qt6-qtdeclarative                                aarch64       6.7.2-3.fc41                                       fedora                       51.1 MiB
 qt6-qtmultimedia                                 aarch64       6.7.2-2.fc41                                       fedora                        4.2 MiB
 qt6-qtquick3d                                    aarch64       6.7.2-3.fc41                                       fedora                       14.9 MiB
 qt6-qtquicktimeline                              aarch64       6.7.2-2.fc41                                       fedora                      835.3 KiB
 qt6-qtshadertools                                aarch64       6.7.2-2.fc41                                       fedora                        4.4 MiB

Transaction Summary:
 Installing:         9 packages
 Upgrading:         20 packages
 Replacing:         20 package

Total size of inbound packages is 163 MiB. Need to download 163 MiB.
After this operation, 109 MiB extra will be used (install 512 MiB, remove 403 MiB).
Is this ok [y/N]:

Comment 3 Peter Robinson 2024-09-23 22:17:34 UTC
It's libreoffice-core

# rpm -qR libreoffice-core | grep libQt6
libQt6Core.so.6()(64bit)
libQt6Core.so.6(Qt_6)(64bit)
libQt6Gui.so.6()(64bit)
libQt6Gui.so.6(Qt_6)(64bit)
libQt6Multimedia.so.6()(64bit)
libQt6Multimedia.so.6(Qt_6)(64bit)
libQt6MultimediaWidgets.so.6()(64bit)
libQt6MultimediaWidgets.so.6(Qt_6)(64bit)
libQt6Widgets.so.6()(64bit)
libQt6Widgets.so.6(Qt_6)(64bit)

Comment 4 Mattia Verga 2024-09-24 06:28:33 UTC
I think it's due to
https://git.libreoffice.org/core/+/refs/heads/master/configure.ac#1831

I suppose that's enabled regardless of qt6/kf6 VCL plugins being available and it doesn't fall under the -kf6 subpackage. Perhaps it's something that upstream needs to fix?

Comment 5 Gwyn Ciesla 2024-09-24 16:58:35 UTC
I agree. As is it would be hairy to split out.

Comment 6 Peter Robinson 2024-09-24 17:51:08 UTC
What changed to cause it to suddenly pull those deps in?

Comment 7 Gwyn Ciesla 2024-09-24 18:08:02 UTC
Hard to say. We enabled qt6 in f40 as well and it doesn't do this. But then that's 24.2.6.2 and f41 is 24.8.1.2.

Comment 8 Mattia Verga 2024-09-25 06:41:50 UTC
This is the relevant commit:
https://gerrit.libreoffice.org/c/core/+/167869

Comment 9 Mattia Verga 2024-09-25 06:54:08 UTC
@Gwyn have you already opened any ticket or wrote on upstream devel mailing list? Or should I?

We could build with `--disable-qt6-multimedia`, but it's not clear to me if that means we end up with having a broken video playback support at all or it will revert back to using gstreamer on QT backends.

Comment 10 David Tardon 2024-09-25 07:46:19 UTC
(In reply to Gwyn Ciesla from comment #5)
> I agree. As is it would be hairy to split out.

Would it? It seems to me that all that's needed is to move libavmediaqt.so to libreoffice-kf6. The AV impl. selection in avmedia::priv::MediaWindowImpl::createPlayer() depends on the VCL plugin used by the running application, i.e., libavmediaqt.so is needed only if either kf6 of qt6 VCL plugin is used. (Btw, in the same vein, libavmediagtk.so should be moved to libreoffice-gtk4; libreoffice-core should contain only the default libavmediagst.so.)

Comment 11 Mattia Verga 2024-09-25 08:13:31 UTC
(In reply to David Tardon from comment #10)
> (In reply to Gwyn Ciesla from comment #5)
> > I agree. As is it would be hairy to split out.
> 
> Would it? It seems to me that all that's needed is to move libavmediaqt.so
> to libreoffice-kf6. The AV impl. selection in
> avmedia::priv::MediaWindowImpl::createPlayer() depends on the VCL plugin
> used by the running application, i.e., libavmediaqt.so is needed only if
> either kf6 of qt6 VCL plugin is used. (Btw, in the same vein,
> libavmediagtk.so should be moved to libreoffice-gtk4; libreoffice-core
> should contain only the default libavmediagst.so.)

I'll try to make the suggested changes and trigger a new build, let's see.

Comment 12 Gwyn Ciesla 2024-09-25 14:53:47 UTC
(In reply to David Tardon from comment #10)
> (In reply to Gwyn Ciesla from comment #5)
> > I agree. As is it would be hairy to split out.
> 
> Would it? It seems to me that all that's needed is to move libavmediaqt.so
> to libreoffice-kf6. The AV impl. selection in
> avmedia::priv::MediaWindowImpl::createPlayer() depends on the VCL plugin
> used by the running application, i.e., libavmediaqt.so is needed only if
> either kf6 of qt6 VCL plugin is used. (Btw, in the same vein,
> libavmediagtk.so should be moved to libreoffice-gtk4; libreoffice-core
> should contain only the default libavmediagst.so.)

If this is truly not needed by anything else in -core, then this is a good solution.

Comment 13 Gwyn Ciesla 2024-09-25 15:07:14 UTC
If this build fixes the issue (still running) I'll push the change to f41.

Comment 14 Fedora Update System 2024-09-25 21:04:29 UTC
FEDORA-2024-1310d19e50 (libreoffice-24.8.1.2-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1310d19e50

Comment 15 Fedora Update System 2024-09-26 02:23:53 UTC
FEDORA-2024-1310d19e50 (libreoffice-24.8.1.2-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-09-26 13:25:54 UTC
FEDORA-2024-e75b0f4ff9 (libreoffice-24.8.1.2-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e75b0f4ff9

Comment 17 Gwyn Ciesla 2024-09-26 13:26:17 UTC
Looks good! Update coming. Thanks Mattia!

Comment 18 Fedora Update System 2024-09-27 01:42:50 UTC
FEDORA-2024-e75b0f4ff9 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e75b0f4ff9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e75b0f4ff9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Peter Robinson 2024-09-27 09:05:44 UTC
Thanks folks, fix works for me! Much appreciated :)

Comment 20 Fedora Update System 2024-09-28 00:16:32 UTC
FEDORA-2024-e75b0f4ff9 (libreoffice-24.8.1.2-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.