Broken test could be worked around with a symlink,
but feel it is not really worth extra ebuild churn.
wrt test files, if someone knows a sane way to stop Qt6 from
installing these (this happens with almost every components,
but eclass deletes tests/ by default at least), please tell me.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Misc minor adjustments / sorting, but more commonly:
* use same RDEPEND + DEPEND ordering everywhere, bit of both
order is used all across and sometime inverted in Qt5's so
let's match skel.ebuild to avoid confusion
* use explicit :6 slots, not necessary with =PV but this is more
about normalizing usage when multiple slots exist (plus *cough*
qa-vdb won't complaint anymore)
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
As-is, no changes in this commit which is mostly the same
as the current in-tree ebuilds.
Maintaining these in two different repos feels like just a hassle
(to me), and would rather have everything in one place so I can
change live and release ebuilds simultaneously as needed, plus not
have to sync metadata or eclass changes either (plus chiitoo has
::gentoo commit access now).
May move packages if I happen to work on them, albeit I have no
intention to really touch Qt5 or LXQt (anyone working on these
are free to the same if they want, or keep current workflow).
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Skip on qttranslation given it is the only that compiles
nothing, and so gives a unused option warning.
Closes: https://bugs.gentoo.org/911822
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Been using LTO by default when testing packages and, while
working on Qt6 test support, just kept running into more and
more components hitting test failures only with LTO.
Formerly added this directly in ebuilds, but at this point
feel this warrent a global filter until can figure out what's
wrong.
Technically needs revbumps but Qt 6.5.3 is not that far away
and that will take care of rebuilds.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
qtbase ebuild currently sets /mkspecs itself instead, chances are may
never need the variable but there's no need to have an odd one out
TESTSDIR was unused, and currently installs to /usr/tests which
we are deleting anyway -- and would give QA if that failed (note
changing the path can be messy given qtbase will keep telling
other packages to use old paths until it is itself updated).
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Qt5's may be a lost cause at this point wrt bug #457182, but can
do this fairly easily for Qt6 going forward (or at least for most
components, qtbase, qttools, and qtdeclarative are messier).
About src_install, it was defined but not exported. Not an issue
before but now we need it for cleanups.
Bug: https://bugs.gentoo.org/457182
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Essentially a wrapper to cmake.eclass and may as well advertise
the various things from it as usable (currently already using e.g.
"mycmakeargs" rather than some private "myconf" like qt5-build).
Should be no reasons to call phases directly, but CMAKE_SKIP_TESTS
and BUILD_DIR (rather than the removed QT6_BUILD_DIR) can be useful.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Currently unused given ebuilds were not wired for tests,
and hardly needed either way with QT_QPA_PLATFORM=offscreen.
If need arise, ebuild should inherit virtualx directly.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
All these are currently unused by both the eclass and consumers.
* IUSE=debug:
This was used by qt5-build but is no-op here. There's a commented
out debug feature in qtwebengine:6, but if that is ever used it
should just add its own IUSE.
* QT6_VERSION_MINOR:
Undocumented and assume may be a unused left-over from writing
the case ${PV}. Dropping saves a $(ver_cut) fork in global scope.
Could add properly if ever felt needed, but for now...
* QT6_BUILD_DIR:
cmake.eclass' BUILD_DIR should be used instead, this variable is
essentially just guessing what cmake will use and could be wrong
if an ebuild changes anything from cmake defaults.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
No functional changes here unless (at most) consumers were misusing
internals, so kept as a single commit for convenience.
Rough overview:
* streamline use of quotes
* minor descriptions adjustments
* replace MY_P with QT6_P (MY_* tend to be reserved for ebuilds),
and then unset it to avoid pkgcheck undocumented variables warnings
* use readonly keyword with assignments to avoid maintaining two
lists of variables
* re-order qt6_prepare_env, and keep separate blocks for QT6_*
variables referenced by other variables to avoid mis-ordering
* avoid calling $(get_libdir) twice for nothing by re-using LIBDIR
* rename internal qt6_prepare_env to _qt6-build_prepare_env
* swap SLOT from ver_cut to ${PV%.*}, both to be consistent with usage
in SRC_URI but also to optimize (less subshells in global scope)
Note have no intention to keep in-sync with qt5-build, considering
it legacy and Qt5 just needs to keep working until it can go
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This is an upstream snapshot that does compile against openssl-3 but
also has known defects. Currently masked for testing.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>