Commit Graph
745244 Commits
Author SHA1 Message Date
Ionen Wolkens caabe7e6b9 dev-qt/qtbase: depend on timezone-data for tests
Only a problem on musl due to bug #623962

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:10 -04:00
Ionen Wolkens b678646b21 dev-qt/qtbase: skip known broken tests with musl
May potentially be indicating real issues, but revdeps still pass
tests (even qtwebengine, or well, when patched to build with musl)
and, similarly to x86, just going to skip to have a baseline.

Not personally going too deep into musl issues (not using it).

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:09 -04:00
Ionen Wolkens b77e9b2a74 dev-qt/qtbase: workaround for cmake zstd support for now
It'd probably make more sense for cmake to hard depend on this.

Bug: https://bugs.gentoo.org/910392
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:09 -04:00
Ionen Wolkens 4fb19729a7 dev-qt/qttools: tighten deps and stop automagic
ebuild is fairly simple, but requirements and options are
a bit convoluted.

Rough overview of requirements (may still not be fully correct):
* (general): network, widgets?, widgets? ( opengl= )
* assistant: sql, sqlite, widgets
* designer: qml, widgets, xml, (opengl=)
* distancefieldgenerator: qml, widgets
* linguist: clang?, qml?, (widgets?)
* pixeltool: widgets
* qdbus: dbus, xml, (widgets?)
* qdoc: clang, qml?
* qtattributionscanner: N/A
* qtdiag: vulkan=, (widgets?, opengl=)
* qtplugininfo: N/A
x kmap2qmap (upstream has this hard disabled)
x qev (likewise)

General libraries can be built with or without opengl/widgets support.
Without widgets some tools will skip subtools, like the GUI linguist6,
or qdbusviewer.

One goal is allowing linguist *without* clang, qtbase[gui,widgets],
or qtdeclarative. This is useful to get lrelease and friends for
revdeps in BDEPEND (notably useful when doing cross-compiling).
There is no feature to skip widgets/declarative support but
disable_find_package does the job just fine.

lupdate can optionally use clang which require a general purpose
USE=clang rather than just qdoc. Also switch to llvm.eclass for this.
Seems fine with both clang:16 and :17 at the moment.

qtdiag is the more annoying one given it uses QT_CONFIG(opengl/vulkan)
meaning will end up broken if disabled on qtbase ([opengl=,vulkan=]).
Fortunately it's disabled by default and won't require typical users
to actually match USE. Albeit does leave a mostly no-op USE=vulkan.
Meant to use opengl? on the others, but cmake_use_find_package may
cause widgets to be disabled because of qtbase's graph.

Also renamed few IUSE to match actual tools name, most of these have
likely few users so should hopefully not be disruptive at this point.

Could argue that qtplugininfo and qtattributionscanner do not need
their own USE (small, no extra deps), but left alone for now
(qtdiag wouldn't either if not for the matching ABI issues thing).

Network could in theory be optional for some tools but CMakeLists.txt
currently hard requires it.

clang dependency could be guarded behind linguist? and qdoc?, but only
feels like extra churn (needs to be checked in pkg_setup too) when it's
rare linguist will be disabled.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:09 -04:00
Ionen Wolkens 7a64a076d5 dev-qt/qttools: remove obsolete qt6_symlink_binary_to_path
Now handled by qt6-build_src_install itself, so can remove
the entire phase.

Symlinks seem identical, just without needing the USE checks.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:09 -04:00
Ionen Wolkens ddecf96fda dev-qt/qtbase: remove obsolete qt6_symlink_binary_to_path
Now handled by qt6-build_src_install itself.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:09 -04:00
Ionen Wolkens ea3d847a8b qt6-build.eclass: use upstream intended user_facing_tool_links.txt
Primary goal is to reduce the amount of things we need to track,
both what to install and when the symlink needs to be created
based on USE. Without this, a module could introduce a new tool
and may not even notice that it needs a symlink.

Essentially replaces qt6_symlink_binary_to_path which I do not
believe will have further uses (thus marking deprecated). That is,
unless we want to diverge from upstream intended links, but even
then may as well use a normal dosym in ebuilds.

Also re-arrange mycmakeargs a bit because yet again qttranslations
is the odd one out.

Bug: https://bugs.gentoo.org/863395
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:09 -04:00
Ionen Wolkens 027ad31d18 dev-qt/qtmultimedia: tighten deps, make X+qml optional (qt6)
Hopefully right, kind of confusing.

Notes:
* qtbase[X=]: checks qtbase for wether to use xlib or not,
  we "could" probably force xlib off safely in "this" case
  but that still tend to be messy with Qt's ABI
* gst[X=]: similarly checks if enabled through defines, may
  possibly break without this if build against gst[X] then
  disable it
* qtbase[opengl=,vulkan=]: untested but source is literred in
  QT_CONFIG(opengl) and some (vulkan) and would most likely
  break if not matching like others (e.g. qtdeclarative) are
  known to
* ^ but for gstreamer, we can use gstreamer_gl feature
* qtshadertools is only used to call qsb that I can see, so
  move to BDEPEND, albeit does come with the caveat that
  (unlike qtdeclarative), it does not look for it separately
  to find it during cross-compilation
* qtsvg seems only used by examples, dropping may however have
  the downside that very few packages pull qtsvg and it is often
  needed by other applications (but it is wrong here)
* pulse[glib] dropped, may have been needed in the past but failing
  to see the need for USE=glib right now

X is enabled by default on qtbase, gst-plugins-base, and
here, so it should hopefully not cause mismatch headaches
even on non-desktop profiles (assuming users don't try to
manually enable X/opengl/vulkan per-packages). Pure wayland
systems should be able to avoid X11 entirely with Qt6.

Note that it "looks" for gstreamer even when it is disabled,
so it may give xorg-proto warnings (if missing) if gst was built
with USE=X. Non-issue given in that situation we don't use
gstreamer. If gst[-X], then xorg-proto is not needed at all.

Closes: https://bugs.gentoo.org/910364
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:08 -04:00
Ionen Wolkens 54d103927c qt6-build.eclass: drop qtbase dependency
qttest is now built by default and there is no need to require
USE=gui, and can rely on ebuild's RDEPEND for qtbase itself.

Does come with a caveat that tests may fail if have USE=-gui
until update to >=qtbase-6.5.2-r1, but does not seem worth
having permanent logic to enforce that as it'll be cleared
with 6.5.3 ebuilds depending on =6.5.3*.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:08 -04:00
Ionen Wolkens 1c1c5f921c dev-qt/qtbase: decouple qttest from USE=gui, enable by default
Been finding this kind of confusing, and having every ebuilds that
run tests depend on [gui] does not seem right, and also prevent
doing minimalist tests to find issues.

This leaves two option:
1. IUSE="+testlib"
2. enable unconditionally

1 seems sane, but it's not that unusual that revdeps need qttest
for building (even if not running tests, see packages depending
on dev-qt/qttest:5 without 'test?'). qtdeclarative also fails
without it last I know of, meaning most people would need it.

And then qttest has a rather small footprint, rather than hunt
what needs it or not it seems simpler to just always have it
(embedded edge cases can still use MYCMAKEARGS or INSTALL_MASK).

Skipping revbump given was already done once in this commit batch.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:08 -04:00
Ionen Wolkens 349d599c0f dev-qt/qtbase: refactor use/dependences handling
Lot of changes here give a full review and re-organizing,
so unfortunately not going to talk about everything.

For IUSE removals:
* freetds (disabled): was a no-op, upstream has the subdir
  commented out with a "TODO"
* jpeg (enabled): we already do this for png and IMO should be
  extended to jpeg as about anyone with USE=gui will have
  libjpeg-turbo either way and it saves headaches for revdeps
* egl (enabled with USE=opengl): same dependency as USE=opengl
  and if we try to force egl without opengl (like we were despite
  upstream otherwise auto-disables) this results in a build failure
* vnc+tuio (enabled with USE="gui network"): being a USE made
  more sense in qt5 given needed to depend on qtnetwork

Notable REQUIRED_USE changes:
* add wayland as an alternative to X and eglfs, eglfs is intended
  for embedded devices (without a WM) and is not necessary for
  normal wayland to work (technically this requirement is still
  not entirely right given other options exists, a postinst to
  warn when have nothing set could be an alternative)
* drop || ( evdev libinput ) as a requirement, normally Qt does not
  need to handle mouse&keyboard events by itself and this again is for
  embedded devices (however keeping libinput by default as I believe
  it may be needed for gamepads and other special devices)

Tried to make this bit easier to maintain by making the split between
groups clearer, and also removed some options and left them to
Qt to set based on others (there is a *lot* that could be passed
and it'd be unmaintainable -- can always consider specifics if
users need something special though).

About options, -DFEATURE_reduce_relocations=ON is notably better
removed as it can apparently break things on some arches if forced.

wrt bug #899546, libglvnd is now optional (with [X?] too), and this
removes gtk-update-icon-cache altegether. Latter is only used by one
sub-test (unimportant and auto-skipped if missing), albeit qtgui can
use icon cache if *other* packages used this command which means it
really belong in their IDEPEND (xdg.eclass does this for EAPI=8).

Closes: https://bugs.gentoo.org/899546
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:08 -04:00
Ionen Wolkens a626aefc3e dev-qt/qtwayland: make qml optional (qt6)
Seems this was formerly droppedin Qt5 due to bug #579208,
but not seeing issues here. Plus it's not great to pull
qtdeclarative by just having USE=wayland on qtbase.

Skipping revbump given already revbumped in this commit batch.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:08 -04:00
Ionen Wolkens af29cb367d dev-qt/qtwayland: qtbase[egl] -> [egl(+)]
And drop in live given won't be needed with the version
checks next bump.

Revbump was already done in an earlier commit from this batch.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:07 -04:00
Ionen Wolkens cc954726f7 dev-python/pyside6: qtbase[jpeg] -> [jpeg(+)]
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:07 -04:00
Ionen Wolkens 4c4c6fc87c dev-qt/qtmultimedia: fix for x86 chroots (qt6)
Not that doing keywording at the moment, but does not hurt to be
prepared (due to a cmake string comparing i*86 with what is likely
x86_64 in the chroot), and then leading to intrinsic inlining failed
build issues.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:07 -04:00
Ionen Wolkens db89af8df3 dev-qt/qtdeclarative: match vulkan, move shader to bdep, adjust sql
Automagic happening with QT_CONFIG(vulkan), and libQt6Quick.so breaks
if vulkan is disabled on qtbase.

For shadertools this only use the "qsb" tool (thus why it checks for it
separately in CMakeLists), and such it would need to be BDEPEND. Odds
are a lot of fixing is needed to get cross right with qt6 still though
(i.e. some qtbase in BDEPENDs, maybe need QT_HOST_PATH).

Don't believe sql needs =, sql? should be enough.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:07 -04:00
Ionen Wolkens 9a89344d82 dev-qt/qtwebchannel: make qml optional (qt6)
Skip revbump given already done in this commit batch.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:07 -04:00
Ionen Wolkens b1bb93dff0 dev-qt/qtwebchannel: drop unused qtwebsockets dep (qt6)
Would be needed if had "examples? ( )"

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:07 -04:00
Ionen Wolkens 0ab5485f9f dev-qt/qtwayland: match vulkan with qtbase:6
Checks QT_CONFIG(vulkan) and can get broken ABI.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:06 -04:00
Ionen Wolkens e2d96ce1aa dev-qt/qtquick3d: add missing zlib dep
Albeit very much unmissable given it inherits system_zlib from
qtbase which itself depends on zlib because of it.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:06 -04:00
Ionen Wolkens 256cbbfefa dev-qt/qtlocation: drop shadertools, add qtpositioning[qml] (qt6)
CMakeLists.txt does check for shadertools but does nothing
with it that I can see (also not listed in dependencies.yaml).

Also depend on [qml] now that it's optional on positioniong.
Skip (+) in live given won't be relevant with =${PV} on bump.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:06 -04:00
Ionen Wolkens b234bc14fa dev-qt/qtpositioning: make geoclue and qml optional (qt6)
But enable qml by default given needed by qtlocation... not that
this has any real use right now given nothing depends on qtlocation:6
"yet" while it pulls extra deps for the few packages that depend on
qtpositioning:6, this matches Qt5 anyhow.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:06 -04:00
Ionen Wolkens 589839627b dev-qt/qtcharts: make qml optional (qt6)
On a side-note CMakeLists.txt noisily looks for MultiMedia rather
than Multimedia which fails, but nothing actually uses this that
I can see either way.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:06 -04:00
Ionen Wolkens 04b3097452 dev-qt/qt3d: optional qml+vulkan, tidy features/deps (qt6)
Most of these features are ON by default and add no deps, do not
believe much sense in keeping track of. And opengl+vulkan are
qtbase's features to handle and flipping can have unexpected
consequences.

system_zlib is only for bundled assimp and is default ON either
way (also taken from qtbase).

Technically we could make shadertools optional too but the RHI
renderer is the default+recommended in Qt6 and there is probably
little worth in exposing a USE.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:05 -04:00
Ionen Wolkens 9ffe7cfc25 dev-python/PyQt6: update permissions feature comment
Not a todo, had a closer look at the feature and it's
enabled for "APPLE OR ANDROID OR WASM", so not really
our thing.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:05 -04:00
Ionen Wolkens ece690af84 dev-qt/qt5compat: tighten deps a bit (qt6)
* qtbase[icu=]: links directly with it depending on qtbase,
  so we need to match and bind := for rebuilds
* qtbase[xml]: bug #911927
* IUSE=qml: can be optional, and will also use shadertools
  with qml is found

In theory we could add IUSE="gui xml" too but not convinced
it's worth worrying about on a compat library, imagine roughly
all revdeps will need IUSE="gui" too (unlike qml).

Closes: https://bugs.gentoo.org/911927
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:05 -04:00
Ionen Wolkens 5936fe5545 dev-qt/qtwebsockets: make qml optional (qt6)
Skip revbump given already done in this commit batch.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:05 -04:00
Ionen Wolkens 6efc3560fb dev-qt/qtwebsockets: depend on qtbase:6[ssl]
fatal error: QtNetwork/qsslpresharedkeyauthenticator.h: No such ...

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:05 -04:00
Ionen Wolkens bc93add36f dev-qt/qtwebengine: automate chromium version warning (qt6)
Just an unnecessary disparity between ebuilds to maintain, plus
would typically be inaccurate in live ebuilds (albeit check may
make live version fail on a whim if format changes, but kept
fatal or else issues will be easy to miss on bumps).

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:05 -04:00
Ionen Wolkens d9c475c691 dev-qt/qtwebengine: do not install gn (qt6)
qtwebengine handling of gn does not allow to use CBUILD toolchain,
and only when cross-compiling it will look for system's. Also does
not respect *FLAGS as upstream intentially commented these out
because someone did a bug report with overzealous flags (QTBUG-64759).

And, unfortunately, qtwebengine's is modified and so dev-util/gn
may not work as expected with it (plus will need CMakeLists
modifications to be found).

Bare that, two possible options would be:
1. dev-qt/qtwebengine-gn or so to BDEPEND on and build cleanly
2. fix the mess that is the modified gen.py, and use BUILD_ variables

For now at least skip installing it as it'll just cause conflicts
if we want to do this later and is not really useful unless
want to do something like BDEPEND="cross? ( dev-qt/qtwebengine )".

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:04 -04:00
Ionen Wolkens 576725039e www-client/qutebrowser: remove widevine workaround for prefix
Now prexified in qtwebengine:6 itself, albeit the rare users
actually using this on prefix will need to manually rebuild
qtwebengine to get the change if <=qtwebengine-6.5.2.

Given this messed with tests did not want to keep this in
qutebrowser, and it can benefit others.

Technically don't need USE=widevine anymore, but prefer this
over a optfeature at the moment and qutebrowser is fast to
"rebuild" being python-only.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:04 -04:00
Ionen Wolkens e57e9078e5 dev-qt/qtwebengine: prefixify widevine search path (qt6)
Allows dropping a workaround in qutebrowser. And yes, wrt -w, the line
we are changing literally has "Gentoo" in an upstream comment.

Also move qt6-build_src_prepare up given modifying files before
patches tend to be messy.

No revbump given use case is rather uncommon.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:04 -04:00
Ionen Wolkens b1cbadc147 dev-qt/qtwebengine: make pkgcheck happier (qt6)
ebuild needs more real refactoring (will do in a separate revbump),
but at least address pkgcheck's warnings in this one

wrt src_unpack (which triggers indirect git-r3 usage), not quite
sure what the debug check was doing (repeated) there, and (currently)
no patchset to unpack so can just drop the whole thing. For patchsets
this may be better handled in qt6-build given it is the one inheriting
git-r3.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:04 -04:00
Ionen Wolkens 0321009080 dev-qt/qtbase: various adjustments to run tests
* fix building tests with gcc-13 (backport)
* set both TZ and LC_TIME needed by a few tests (p.m. vs pm)
* skip a few tests with extra needs for simplicity
* skip flaky tests depending on environment/compiler that do not
  appear to be real issues (e.g. checks mounted filesystems)
* skip a few tests failing on x86 chroot that do not "seem" to have
  consequences, needs more looking into but ultimately want more of
  a baseline rather than pursue everything right now
* skip building a test with -Werror=strict-aliasing issues, not
  important but saves tinderbox noise (ideally should fix, but well)
* skip tests broken without qtbase already being installed
  (these also have issues with out-of-source build, but given
  they are broken either way no reason to use IN_SOURCE=1)
* delete bunch of test binaries and files being installed
  when tests are enabled (unfortunately not aware of a better
  way, upstream may be installing first and using standalone
  tests or so)
* set required use, could alternatively skip a few tests based
  on USE but this would get further troublesome to maintain
* do not try to use docker-compose if found

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:04 -04:00
Ionen Wolkens 0926103d59 dev-qt/qtbase: fix build with USE=oci8
Albeit was almost tempted to just remove the USE as this
will likely cause more problems down the line.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:03 -04:00
Ionen Wolkens 424c9f5509 dev-qt/qtwebengine: various adjustments for tests (qt6)
* use -j1 (similarly to when I tried to use python-xdist on
  qutebrowser which uses qtwebengine, parallel tests don't
  seem to work so well here either)
* skip tests that need network
* skip cert test, not looked too closely but likely missing
  something or (maybe) expirations are causing issues
* export various variables to stop it from using the system's
  qtwebengine (otherwise fails if not installed)

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:03 -04:00
Ionen Wolkens 8eb85e6dd5 dev-qt/qtdeclarative: restrict tests (qt6)
Mostly had this figured out but the real issue is when
qtdeclarative is not installed, and this is a far worse
case than qttools or qtbase's few tests to skip.

QML imports are in general pretty messy to run from
tests as-is.

May revisit if the situation improves, albeit given believe
upstream installs before running tests it may not.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:03 -04:00
Ionen Wolkens d1bb1449a6 dev-qt/qttools: restrict tests (qt6)
Insists on running tools from the system (fails if qttools
is not installed), and even if force the paths (using qt.conf,
or seds), it still has problem finding support files and most
tests fail. Getting all this to work properly would likely
be too messy.

There's also an annoyance with FetchContent, albeit it'd be
easy to handle.

wrt clang, qdoc seems to produce correct output with >=clang-16
but the ordering is slightly altered (believed to be due to
.cpp parsing being bit different) and cause some tests to
fail simple diff comparison -- may not be worth worrying about.

Originally was skipping a lot of tests, but it was utltimately
not meaningful anymore (aka tools were not really tested).

May revisit if the situation improves, albeit given believe
upstream installs before running tests it may not.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:03 -04:00
Ionen Wolkens 71fb2633a9 dev-qt/qtwayland: skip failing test + two that need compositor (qt6)
seatv4 is perhaps due to newer libwayland, or the use of offscreen
rendering. But do not believe this would be used with any of the
mostly modern compositors we have packaged if I understand this
right, and so have not looked into this further (tst_seatv7 does pass).

Not fully looked into but the two others seem to be actually trying
to use a compositor (also opengl surfaces). We could run tinywl but
given the majority of other tests do not need that it does not seem
all that worth it (plus would likely be flaky).

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:03 -04:00
Ionen Wolkens f23e96ede8 dev-qt/qtquick3d: skip incompatible test (qt6)
Attempts to import a test .dae file but that requires
collada which is hard-disabled in our system copy.

May need revisiting in assimp if someone needs this.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:03 -04:00
Ionen Wolkens 9589bce760 dev-qt/qtpositioning: do not install test files (qt6)
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>
2023-09-05 09:01:02 -04:00
Ionen Wolkens b60aa01cd9 dev-qt/qtmultimedia: skip tests that fail in sandbox (qt6)
Imagine may be more that will need skipping. In my case one
test tried to use NVENC/CUDA but there may be more on systems
that support e.g. vaapi (unlike mine).

Unfortunately have not found a way to tell qtmultimedia to
use a dummy audio input/output wrt the other tests.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:02 -04:00
Ionen Wolkens 3f8d3f4f33 dev-qt/qtlocation: skip broken test, do not install test files (qt6)
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>
2023-09-05 09:01:02 -04:00
Ionen Wolkens baafb143ab dev-qt/qt5compat: use -j1 for tests (qt6)
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:02 -04:00
Ionen Wolkens 8f36d8900a dev-qt/qtbase: use eclass' mkspecs variable for consistency
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:02 -04:00
Ionen Wolkens e3da45c4b8 dev-qt/*: add github upstream metadata for qt6 packages
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-09-05 09:01:01 -04:00
Ionen Wolkens 5f7ab1d035 dev-qt/*: streamline style a bit across qt6 ebuilds
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>
2023-09-05 09:01:01 -04:00
Ionen Wolkens 7c34d9a493 dev-qt/*: import qt6 live ebuilds from ::qt
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>
2023-09-05 09:01:01 -04:00
Ionen Wolkens a5ce592859 qt6-build.eclass: prevent passing -O2 after user's C(XX)FLAGS
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>
2023-09-05 09:01:01 -04:00
Ionen Wolkens dfbaf6bd8d qt6-build.eclass: filter-lto globally
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>
2023-09-05 09:01:01 -04:00