commit:     8b5444ee4b91d8ac3a9a481dc8c82406860aa448
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 21 16:18:58 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 21 17:35:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b5444ee

dev-qt/qt-creator: skip building manual tests

Reduces total amount of compile units by ~160 when tests are enabled
that were ultimately unused (we run tests/auto).

...but haven't really gotten to the bottom of bug #950010 nor attempted
to reproduce, and issue may possibly occur in other (not-skipped) files
still, will see if it comes back.

Closes: https://bugs.gentoo.org/950010
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-qt/qt-creator/qt-creator-15.0.1.ebuild | 3 +++
 dev-qt/qt-creator/qt-creator-9999.ebuild   | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-qt/qt-creator/qt-creator-15.0.1.ebuild 
b/dev-qt/qt-creator/qt-creator-15.0.1.ebuild
index 13cd21f43e32..f1fa5cb24af9 100644
--- a/dev-qt/qt-creator/qt-creator-15.0.1.ebuild
+++ b/dev-qt/qt-creator/qt-creator-15.0.1.ebuild
@@ -126,6 +126,9 @@ src_prepare() {
        # avoid stripping for Go, use sed to avoid rebases as may be there 
forever
        sed -i 's/-s -w //' src/libs/gocmdbridge/server/CMakeLists.txt || die
 
+       # avoid building manual tests (aka not ran) for nothing (bug #950010)
+       sed -i '/add_subdirectory(manual)/d' tests/CMakeLists.txt || die
+
        if use plugin-dev; then #928423
                # cmake --install --component integrates poorly with the cmake
                # eclass and the install targets are otherwise missing, so strip

diff --git a/dev-qt/qt-creator/qt-creator-9999.ebuild 
b/dev-qt/qt-creator/qt-creator-9999.ebuild
index 248b71441708..731691c88d92 100644
--- a/dev-qt/qt-creator/qt-creator-9999.ebuild
+++ b/dev-qt/qt-creator/qt-creator-9999.ebuild
@@ -128,6 +128,9 @@ src_prepare() {
        # avoid stripping for Go, use sed to avoid rebases as may be there 
forever
        sed -i 's/-s -w //' src/libs/gocmdbridge/server/CMakeLists.txt || die
 
+       # avoid building manual tests (aka not ran) for nothing (bug #950010)
+       sed -i '/add_subdirectory(manual)/d' tests/CMakeLists.txt || die
+
        if use plugin-dev; then #928423
                # cmake --install --component integrates poorly with the cmake
                # eclass and the install targets are otherwise missing, so strip

Reply via email to