Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934581 - app-office/texstudio-4.8.1 Qt6 enablement
Summary: app-office/texstudio-4.8.1 Qt6 enablement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: TeX project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-06-19 22:53 UTC by Freddie Witherden
Modified: 2024-10-04 09:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2024-06-19 22:53:41 UTC
TexStudio has support for Qt6.  It would be nice if this was exposed by the ebuild given that Qt6 is now pretty stable and starting to see wider deployment in Gentoo (KDE Plasma 6.x stabilisation).

Binary builds for Windows and macOS have been using Qt6 for a while, so it is likely better tested than Qt5.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2024-10-03 15:57:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=420cbd16a28b6ed5e3509ad4b0ac5e00cdd39ac4

commit 420cbd16a28b6ed5e3509ad4b0ac5e00cdd39ac4
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2024-09-20 09:48:09 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2024-10-03 15:56:54 +0000

    app-office/texstudio: add 4.8.4 using qt6, drop 4.8.1
    
    Switch from qmake to cmake. Drop the .pro related unbundling patches, as
    they are not relevant to the cmake build.
    
    This also drops the unbundling of qtsingeapplication, as texstudio's
    bundled version contains Qt6 specfic guards.
    
    Thanks to ionen for constructive suggestions.
    
    Closes: https://bugs.gentoo.org/934762
    Closes: https://bugs.gentoo.org/934581
    Closes: https://github.com/gentoo/gentoo/pull/38702
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 app-office/texstudio/Manifest               |  2 +-
 app-office/texstudio/texstudio-4.8.1.ebuild | 79 -----------------------------
 app-office/texstudio/texstudio-4.8.4.ebuild | 66 ++++++++++++++++++++++++
 3 files changed, 67 insertions(+), 80 deletions(-)
Comment 2 Igor Krivenko 2024-10-04 09:11:58 UTC
CMake seems to prefer Qt5 when building the new app-office/texstudio-4.8.4.

-- The C compiler identification is GNU 13.3.1
-- The CXX compiler identification is GNU 13.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.45.2")
-- No git present.
-- building for Qt 5

...

The 'About' window of TeXstudio then reads

TeXstudio 4.8.4 (git 0.0.0++)
Using Qt Version 5.15.14, compiled with Qt 5.15.14 R

Is there a way to force a Qt6 build when Qt5 libraries are present in the system?