summaryrefslogtreecommitdiff
path: root/eclass/qt5-build.eclass
AgeCommit message (Collapse)Author
2025-11-02qt5-build.eclass: Support new 5.15.18 (archive) download locationAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-09qt5-build.eclass: Drop support for old versionsAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-05-03qt5-build.eclass: disable reduce-relocationsSam James
For Qt 5, it's best to just disable reduce-relocations, because it doesn't (unlike Qt 6) support -mno-direct-extern-access, which means CMake applications building against Qt 5 are prone to all the issues mentioned in the bug. Bug: https://bugs.gentoo.org/754021 Signed-off-by: Sam James <sam@gentoo.org>
2024-07-02qt5-build.eclass: try to avoid SSE2 where unavailableSam James
Rather overdue, but we got there eventually. Closes: https://bugs.gentoo.org/773199 Bug: https://bugs.gentoo.org/552942 Bug: https://bugs.gentoo.org/648004 Bug: https://bugs.gentoo.org/775650 Signed-off-by: Sam James <sam@gentoo.org>
2024-05-30qt5-build.eclass: qtbase: Bump _QT5_GENTOOPATCHSET_REV=6 for 5.15.14Andreas Sturmlechner
Patch dropped (upstreamed) since _QT5_GENTOOPATCHSET_REV=5: Match deadcode elimination with cpu feature check Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-01-10qt5-build.eclass: Move append-ldflags and filter-lto to src_prepareAndreas Sturmlechner
Closes: https://bugs.gentoo.org/919789 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-01-03qt5-build.eclass: use test-flags-CCLD for -Wl,--undefined-versionSam James
Signed-off-by: Sam James <sam@gentoo.org>
2024-01-01qt5-build.eclass: qtbase: Bump _QT5_GENTOOPATCHSET_REV=5 for 5.15.12Andreas Sturmlechner
New patches since _QT5_GENTOOPATCHSET_REV=4: Allan Sandfeld Jensen (3): Match deadcode elimination with cpu feature check Sync qt_scale_image_argb32_on_argb32_sse2 and qt_scale_image_32bit Avoid SSE2 punning Thiago Macieira (1): qsimd: Don't force RDRND on if __AVX2__ Ulf Hermann (1): Gui: Always declare qt_memfill{32|64} as function pointers on x86 See also: https://invent.kde.org/qt/qt/qtbase/-/merge_requests/295 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/297 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/298 Bug: https://bugs.gentoo.org/704392 Bug: https://bugs.gentoo.org/707390 Bug: https://bugs.gentoo.org/777480 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-12-12qt5-build.eclass: filter-ltoAndreas Sturmlechner
Closes: https://bugs.gentoo.org/650488 Closes: https://bugs.gentoo.org/692078 Closes: https://bugs.gentoo.org/713850 Closes: https://bugs.gentoo.org/908419 Closes: https://bugs.gentoo.org/652158 Closes: https://bugs.gentoo.org/919043 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-10-18qt5-build.eclass: guard -Wl,--undefined-version with tc-ld-is-lldSam James
Older binutils doesn't support this flag, so just guard it to make life easier for people. Bug: https://bugs.gentoo.org/915203 Signed-off-by: Sam James <sam@gentoo.org>
2023-10-15qt5-build.eclass: workaround undefined qt_version_tag (LLD 17)Alfred Wingate
Bug: https://bugreports.qt.io/browse/QTBUG-111514 Bug: https://bugs.gentoo.org/915203 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/33302 Signed-off-by: Sam James <sam@gentoo.org>
2023-07-08qt5-build.eclass: Rename qt5_tools_oos_quirk -> qt5_configure_oos_quirkAndreas Sturmlechner
...and turn it into a public helper, as it serves more than just qttools. The initial review missed the fact that qtlocation is not part of qttools, so push the quirks back into the ebuilds, calling the newly publicised function. Bug: https://bugs.gentoo.org/910066 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-07-08qt5-build.eclass: Add qt5_syncqt_version()Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-07-08qt5-build.eclass: Import out-of-source quirks from qdoc/qtlocationAndreas Sturmlechner
We probably won't get this fixed in Qt5 cycle anymore. Standardises the quirk via new internal helper function qt5_tools_oos_quirk() to avoid qt5_qmake usage in ebuilds. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-04-13qt5-build.eclass: Fix order of patchsets including depending sedAndreas Sturmlechner
- downstream patches are based on top of KDE's patchset - downstream patch affects qmake bootstrapping modifications Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-04-13qt5-build.eclass: Set _QT5_GENTOOPATCHSET_REV=4 for >=Qt5Base-5.15.9Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-03-26qt5-build.eclass: Quote argument of ":" commandUlrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2023-03-17eclass: standardize prologue/epilogueDavid Seifert
Closes: https://github.com/gentoo/gentoo/pull/30061 Signed-off-by: David Seifert <soap@gentoo.org>
2023-01-08qt5-build.eclass: Set _QT5_GENTOOPATCHSET_REV=3 for >=Qt5Base-5.15.8Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-11-29qt5-build.eclass: Set _QT5_GENTOOPATCHSET_REV=2 for >=Qt5Base-5.15.7Andreas Sturmlechner
- Apply gentoo-patchset before running sed over configure - _QT5_GENTOOPATCHSET_REV shall always be applied Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-07-23qt5-build.eclass: Support sed regardless if $MAKE is quoted or notAndreas Sturmlechner
Bug: https://bugs.gentoo.org/792804 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-07-23qt5-build.eclass: Merge _QT5_GENTOOPATCHSET_REV handling into main blockAndreas Sturmlechner
Dropping pre-5.15.5 SRC_URI support. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-06-19qt5-build.eclass: Add _QT5_GENTOOPATCHSET_REV qtbase patchset logicAndreas Sturmlechner
Usage may be extended to other QT5_MODULEs in the future. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-06-19qt5-build.eclass: Support future double-digit Qt-5.15 patch releasesAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-04-18qt5-build.eclass: Drop support for Qt 5.15.2Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-03-24*.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller
Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2022-03-21qt5-build.eclass: Change SLOTing in 5.15.3Andreas Sturmlechner
- 0 for binary only (user-facing) tools not tied to specific Qt major version - 5 (clean) for binary only/unversioned plugins/files-only/non-private headers - 5/$(ver_cut 1-2) for everything else; unless overridden by ebuild - No change for 5.15.2 ebuilds dev-qt/qtxmlpatterns was added to clean "5" slot because development is dead. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-03-21qt5-build.eclass: New helper function: qt5_symlink_binary_to_path()Andreas Sturmlechner
Symlink necessary tools to /usr/bin According to upstream discussion on Qt6 recommended tools to be in PATH. See also: https://lists.qt-project.org/pipermail/development/2020-November/040626.html Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-03-21qt5-build.eclass: Re-add support for Qt 5.15.2 official tarballsAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-03-21qt5-build.eclass: Add support for Qt 5.15.3 (and future) tarballsAndreas Sturmlechner
KDE Qt5PatchCollection patches will be applied on top of v5.15.3-lts-lgpl Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-03-21qt5-build.eclass: Update comment regarding MODULE_VERSION downpatchingAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-01-04qt5-build.eclass: remove kernel_FreeBSDDavid Seifert
Signed-off-by: David Seifert <soap@gentoo.org>
2021-10-17qt5-build.eclass: Drop EAPI-7 support and obsolete quirksAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-09-08qt5-build.eclass: Downpatch version of live to 5.15.2 tooAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-09-08qt5-build.eclass: Introduce QT5_PV for intra-dev-qt depsAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-09-08qt5-build.eclass: Always run qt5_tools_configure for QT5_MODULE=qttoolsAndreas Sturmlechner
Run qt5_qmake directly inside qt5_tools_configure(), copy the resulting qttools-config.pri into QT5_BUILD_DIR again. Add linguist-tools handling. Closes: https://bugs.gentoo.org/728278 Closes: https://bugs.gentoo.org/811147 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Support EAPI-8Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Use kde.org eclass for snapshots and live ebuildsAndreas Sturmlechner
- Drop unused src_unpack phase - Snapshots are identified by having KDE_ORG_COMMIT set pre-inherit - All live ebuilds and snapshots except qtwebengine inherit kde.org.eclass - SRC_URI, src_unpack handling is done by kde.org.eclass for them Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Drop obsolete conditional for dev-qt/qtwebengineAndreas Sturmlechner
dev-qt/qtwebengine conditional code already moved into ebuild. Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Rename MY_P to _QT5_P and fix eclassdoc warningAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Add eclassdoc for QT5_BUILD_TYPEAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Drop _alpha/_beta/_rc tarball supportAndreas Sturmlechner
No more such pre-releases happening for Qt5. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Drop QT5_MINOR_VERSION (fixes eclassdoc)Andreas Sturmlechner
No more usage as qt5-build.eclass supports Qt 5.15 branch exclusively. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: switch sources to KDE upstream for 5.15 live buildsJimi Huotari
The KDE community has started [1] maintaining a repository with patches for the open-source Qt 5.15 branch. 1. https://mail.kde.org/pipermail/distributions/2021-April/000984.html Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-25qt5-build.eclass: Limit qtchooser config install to <qtcore-5.15.2-r10Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-07-09qt5-build.eclass: standardize "EAPI not supported" messageDavide Pesavento
Signed-off-by: Davide Pesavento <pesa@gentoo.org>
2021-03-31qt5-build.eclass: mark VIRTUALX_REQUIRED as @PRE_INHERITSam James
Signed-off-by: Sam James <sam@gentoo.org>
2021-02-05qt5-build.eclass: Make dev-qt/qttest dependency work for qtwebengine snapshotAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-05qt5-build.eclass: Add missing RESTRICT+=" !test? ( test )"Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-01-10qt5-build.eclass: Drop obsolete pre-5.15.2 quirkAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>