Skip to content

kde-frameworks/extra-cmake-modules: Allow ECMQueryQt lookups to be cached //and make use of it from ecm.eclass - #1101

Open
a17r wants to merge 18 commits into
gentoo:masterfrom
a17r:eapi9
Open

kde-frameworks/extra-cmake-modules: Allow ECMQueryQt lookups to be cached //and make use of it from ecm.eclass#1101
a17r wants to merge 18 commits into
gentoo:masterfrom
a17r:eapi9

Conversation

@a17r

@a17r a17r commented Aug 9, 2026

Copy link
Copy Markdown
Member

TODO: Decide what to do with BDEPEND on dev-qt/qtbase.

@a17r
a17r force-pushed the eapi9 branch 4 times, most recently from dcc60af to e61d40c Compare August 9, 2026 22:42
qtpaths unnecessary.

ECM may be used by small packages that otherwise do not (or just optionally)
need Qt for tooling nor build.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also specifically call out the fact that this makes cross compilation easier? At least for upstreaming the patch that may help make it an easier sell.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've mentioned it upstream, we'll see.

Comment thread eclass/ecm.eclass
@a17r
a17r force-pushed the eapi9 branch 7 times, most recently from 267f5ba to 8a5f1c6 Compare August 10, 2026 23:03
Comment thread eclass/ecm.eclass
set(BUILD_WITH_QT6 ON CACHE BOOL "") # QtVersionOption.cmake: Hard-require Qt6
# KDEInstallDirs6 section
set(KDE_INSTALL_USE_QT_SYS_PATHS ON CACHE BOOL "") # install mkspecs in same dir as Qt stuff
set(QT_HOST_LIBEXECS_CACHED ${BROOT}$(qt_get_libexecdir 6) CACHE PATH "") # FindQtWaylandScanner.cmake

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, LIBEXECS isn't a typo.

a17r added 14 commits August 27, 2026 21:15
This was switched to ON back in 2014 (commit
ce6dbc0) but has long been obsolete.

If QT_INSTALL_PREFIX is the same as CMAKE_INSTALL_PREFIX then the default
state assigned to KDE_INSTALL_USE_QT_SYS_PATHS by KDEInstallDirs6.cmake
is ON anyway.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
ECMQueryQt.cmake module from kde-frameworks/extra-cmake-modules will be
adapted to derive any respective QT_INSTALL_* from these vars.

Bug: https://bugs.gentoo.org/939465
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
…ched

Bug: https://bugs.gentoo.org/939465
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
ECM_AUTODEPS=gui is equivalent to ECM_NONGUI=false (default, ugly)
ECM_AUTODEPS=base equiv. to ECM_NONGUI=true + BDEPEND on dev-qt/qtbase:6
ECM_AUTODEPS=minimal furthermore allows to drop dev-qt/qtbase:6

kde-frameworks/kf-env will be obsolete in >EAPI-8.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency here.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Adjustments have been made to ecm.eclass which make this possible -
set ECM_AUTODEPS=minimal to avoid dev-qt/qtbase:6 dependency.

Bug: https://bugs.gentoo.org/923502
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No GUI application.
Drop obsolete KFMIN setting below baseline.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No GUI application.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No GUI application.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No GUI application.
Fix HOMEPAGE.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
a17r added 4 commits August 27, 2026 21:19
Set ECM_AUTODEPS=minimal - no Qt dependency.

See also cc82dc4

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Set ECM_AUTODEPS=base to avoid circular dependency on itself.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
No Qt dependency.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants