LibreOffice has a KF6 user interface plugin available but it is not packaged in Fedora at all. Switching to KF6 will make LibreOffice use Qt 6, bringing with it all the Wayland improvements that come with Qt 6 - e.g. no more menus appearing as windows and other problems Qt 5 had.
Metadata Update from @ngompa: - Issue tagged with: experience, packaging
@limb Could you please look to see if this could be added to LibreOffice in F40 / EL10+?
Metadata Update from @ngompa: - Issue untagged with: packaging
I'll check it out.
Looks like we're missing a header file in kf6:
https://kojipkgs.fedoraproject.org//work/tasks/2149/114192149/build.log
For posterity:
In file included from /usr/include/KF6/KConfigCore/kconfigbase.h:14, from /usr/include/KF6/KConfigCore/kconfiggroup.h:14, from /usr/include/KF6/KConfigCore/KConfigGroup:1, from /builddir/build/BUILD/libreoffice-24.2.1.2/vcl/unx/kf6/../kf5/KFSalInstance.cxx:24, from /builddir/build/BUILD/libreoffice-24.2.1.2/vcl/unx/kf6/KFSalInstance.cxx:10: /usr/include/KF6/KConfigCore/kconfigcore_export.h:41:10: fatal error: kconfig_version.h: No such file or directory 41 | #include <kconfig_version.h> | ^~~~~~~~~~~~~~~~~~~
Could you file a bug with KDE about this?
libreoffice doesn't seem to use cmake for discovering flags and header locations etc... if you're familiar with the libreoffice build system, you can try adding /usr/include/KF6/KConfig to the list of include directories.
/usr/include/KF6/KConfig
I issue seems to be that /usr/include/KF6/KConfigCore/kconfigcore_export.h #includes kconfig_version.h, which no KF6 package seems to provide.
It's in /usr/include/KF6/KConfig/ as i suggested. libreoffice only includes -isystem /usr/include/KF6/KConfigCore
/usr/include/KF6/KConfig/
-isystem /usr/include/KF6/KConfigCore
Ah, I see, thanks. I'll give that a go.
That helped. Still fine tuning, I'll keep you updated.
Awesome, thank you for doing this!
A build is headed to f40 updates-testing (and f41 when koji aarch64 cooperates) with a working kf6 as well as kf6.
Not sure how to set is as the default, an issue I'm having with gtk4 as well.
I've asked on the ML.
This thread's responses suggest that if the user is using Plasma 6, kf6 will be the default.
https://lists.freedesktop.org/archives/libreoffice/2024-March/091653.html
btw should we drop Supplements: (%{name}-core%{?_isa} and plasma-workspace) from the kf5 package?
Supplements: (%{name}-core%{?_isa} and plasma-workspace)
We're not there yet, but the goal is to not have anything qt5/kf5 pre-installed in the kde image
This thread's responses suggest that if the user is using Plasma 6, kf6 will be the default. https://lists.freedesktop.org/archives/libreoffice/2024-March/091653.html
Awesome, do you know when the libreoffice-kf6 package will be available? I searched on Koji and it doesn't appear to be there yet. Thank you so much for working on this!
btw should we drop Supplements: (%{name}-core%{?_isa} and plasma-workspace) from the kf5 package? We're not there yet, but the goal is to not have anything qt5/kf5 pre-installed in the kde image
This will need to be conditionalized. I'll send a PR to the LibreOffice package.
This is now done for @limb to review: https://src.fedoraproject.org/rpms/libreoffice/pull-request/26
Merged. I'll build with this for f40, and 24.2.2.1 for rawhide....
Just got it on my system, tested it and it works great. Thank you so much for doing this! :)
Closing this one as it appears to be fixed.
Metadata Update from @siosm: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)