Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941172 - kde-plasma/spectacle-24.08.1 fails to build against Qt 6.8
Summary: kde-plasma/spectacle-24.08.1 fails to build against Qt 6.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-08 18:59 UTC by Avraham Hollander
Modified: 2024-10-10 21:40 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kde-apps/spectacle-24.08.1 build log (build.log,494.00 KB, text/x-log)
2024-10-08 18:59 UTC, Avraham Hollander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Avraham Hollander 2024-10-08 18:59:59 UTC
Created attachment 905118 [details]
kde-apps/spectacle-24.08.1 build log

profiles/package.mask contains:
# Ionen Wolkens <ionen@gentoo.org> (2024-10-08)
# Masked for testing and (mostly) to avoid upgrade noise given
# PyQt6-6.7.x is known broken with it and depends on <6.8. Feel
# free to unmask early if not using PyQt6.

I am not using PyQt6, so I chose to unmask upgrade early. Lo and behold, kde-apps/spectacle-24.08.1 fails to rebuild against Qt 6.8.

/var/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1_build/src/.rcc/qmlcache/spectacle_Gui/CopiedMessage_qml.cpp:450:72: error: 'QString::QString(const char*)' is private within this context
  450 | aotContext->initGetObjectLookup(8, r2_0, QQmlPrivate::compositeMetaType(aotContext->compilationUnit, "AnimatedLoader"));
      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtQml/qjsprimitivevalue.h:10,
                 from /usr/include/qt6/QtQml/qqmlprivate.h:18,
                 from /var/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1_build/src/.rcc/qmlcache/spectacle_Gui/CopiedMessage_qml.cpp:2:
/usr/include/qt6/QtCore/qstring.h:1014:5: note: declared private here
 1014 |     QString(const char *ch);
      |     ^~~~~~~

Full build log is attached.
Comment 1 Andreas Sturmlechner gentoo-dev 2024-10-08 19:33:39 UTC
Upstream are aware.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-08 19:37:29 UTC
See also:

commit fdb02a790eb6d83107b919fece7a199b7e1ae00f
Author: Ionen Wolkens <ionen@gentoo.org>
Date:   Tue Oct 8 12:55:01 2024 -0400

    dev-qt/qtdeclarative: backport fix for QTBUG-125053 + 129797 early

    QTBUG-129797's hasn't been merged yet but should be soon and may
    as well do it at same time.

    May need to do another revbump later for QTBUG-129622 when there
    is a fix though, but this may or may not take a while.

    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

commit b453f3146786c474326edb8764cf3a23f9ab7ebb
Author: Ionen Wolkens <ionen@gentoo.org>
Date:   Tue Oct 8 14:16:47 2024 -0400

    dev-qt/qtdeclarative: drop QTBUG-129797 patch for now

    spectacle still fails but with a different error, "possibly"
    caused by the patch itself if not a different issue.

    Will give this more time to be investigated upstream and
    drop it to be safe for now.

    Sorry for quick succession revbumps (albeit 6.8.0 is masked
    anyway).

    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Comment 3 Ionen Wolkens gentoo-dev 2024-10-09 01:51:09 UTC
On a side-note, in case using it while unaware due to old package.unmask entries, qt6.8.0 is currently masked in Gentoo.

Goal is to have this fixed before unmask if possible, I'll likely try spectacle myself then if needed.
Comment 4 Ionen Wolkens gentoo-dev 2024-10-09 18:56:18 UTC
Looks like upstream has merged a modified version of the patch we previously tried, which hopefully is correct this time. Will give it a try tomorrow or so.
Comment 5 Larry the Git Cow gentoo-dev 2024-10-10 01:27:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f87690bf7284775cc0d44775a7d1fc1a8751921

commit 0f87690bf7284775cc0d44775a7d1fc1a8751921
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-10-10 01:11:38 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-10-10 01:27:28 +0000

    dev-qt/qtdeclarative: backport fix for QTBUG-129797 take two
    
    Closes: https://bugs.gentoo.org/941172
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../files/qtdeclarative-6.8.0-QTBUG-129797.patch   | 24 ++++++++++++++++++++++
 ...8.0-r2.ebuild => qtdeclarative-6.8.0-r3.ebuild} |  1 +
 2 files changed, 25 insertions(+)
Comment 6 Avraham Hollander 2024-10-10 21:40:51 UTC
Confirmed fixed now on both of my affected systems.