Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947049 - dev-qt/qtwayland-6.7.3-r1 - Unknown CMake command _qt_internal_check_multiple_inclusion.
Summary: dev-qt/qtwayland-6.7.3-r1 - Unknown CMake command _qt_internal_check_multiple...
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-27 20:47 UTC by Toralf Förster
Modified: 2024-12-27 21:45 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.37 KB, text/plain)
2024-12-27 20:47 UTC, Toralf Förster
Details
dev-qt:qtwayland-6.7.3-r1:20241227-202959.log (dev-qt:qtwayland-6.7.3-r1:20241227-202959.log,4.94 KB, text/plain)
2024-12-27 20:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,10.35 KB, text/plain)
2024-12-27 20:47 UTC, Toralf Förster
Details
environment (environment,106.35 KB, text/plain)
2024-12-27 20:47 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2024-12-27 20:47 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.35 KB, application/x-xz)
2024-12-27 20:47 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,57.48 KB, application/x-xz)
2024-12-27 20:47 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,65.45 KB, text/plain)
2024-12-27 20:48 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.97 KB, application/x-xz)
2024-12-27 20:48 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-27 20:47:52 UTC
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
CMake Error at /usr/lib64/cmake/Qt6QmlIntegration/Qt6QmlIntegrationVersionlessAliasTargets.cmake:3 (_qt_internal_check_multiple_inclusion):
  Unknown CMake command "_qt_internal_check_multiple_inclusion".
Call Stack (most recent call first):
  /usr/lib64/cmake/Qt6QmlIntegration/Qt6QmlIntegrationConfig.cmake:179 (include)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20241227-082002

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
Available Rust versions:
  [1]   rust-bin-1.82.0
  [2]   rust-bin-1.83.0 *

  HEAD of ::gentoo
commit c181be68d2704561ebd517b648328662780f0b2a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 27 19:03:31 2024 +0000

    2024-12-27 19:03:31 UTC

emerge -qpvO =dev-qt/qtwayland-6.7.3-r1
[ebuild     UD] dev-qt/qtwayland-6.7.3-r1 [6.8.1] USE="qml vulkan -accessibility -compositor -test (-gnome%)"
Comment 1 Toralf Förster gentoo-dev 2024-12-27 20:47:53 UTC
Created attachment 915330 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-27 20:47:54 UTC
Created attachment 915331 [details]
dev-qt:qtwayland-6.7.3-r1:20241227-202959.log
Comment 3 Toralf Förster gentoo-dev 2024-12-27 20:47:55 UTC
Created attachment 915332 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-12-27 20:47:56 UTC
Created attachment 915333 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-12-27 20:47:57 UTC
Created attachment 915334 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-27 20:47:58 UTC
Created attachment 915335 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-27 20:47:59 UTC
Created attachment 915336 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-12-27 20:48:00 UTC
Created attachment 915337 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-12-27 20:48:01 UTC
Created attachment 915338 [details]
temp.tar.xz
Comment 10 Ionen Wolkens gentoo-dev 2024-12-27 21:37:52 UTC
[ebuild     UD] dev-qt/qtwayland-6.7.3-r1 [6.8.1] USE="qml vulkan -accessibility -compositor -test (-gnome%)"

Ah, *think* I see what happened. Bit of a edge case only hit when downgrading 6.8.1->6.7.3.

qtwayland[qml,-compositor] doesn't depend on qtdeclarative (only used by compositor), but the ebuild only checks USE=qml to pass disable_find_package or not -- so qtwayland will still "look" for qtdeclarative even if it's not going to use it which is normally harmless.

And then, given the dependency on qtdeclarative is missing, portage thinks that it's ok to not downgrade it before qtwayland.

So qtwayland looks for qtdeclarative, and that uses 6.8.1's .cmake files which themselves use _qt_internal_check_multiple_inclusion... which only exists in qtbase-6.8.1 that has already been downgraded.

Ideally that would just result in the package not being found, but instead cmake hard errors out.

Not 100% sure as it may be due to something else than find_package, but I *think* doing the disable_find_package unconditionally if USE=-compositor instead will fix this.
Comment 11 Larry the Git Cow gentoo-dev 2024-12-27 21:45:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b89d304c6654d162619cb514aa62e4fd0962e3e

commit 8b89d304c6654d162619cb514aa62e4fd0962e3e
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-12-27 21:41:14 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-12-27 21:45:09 +0000

    dev-qt/qtwayland: potentially fix downgrade edge case (qt6)
    
    Albeit overall downgrading Qt is hardly supported and unlikely
    to be smooth either way, esp. if revdeps have arleady been built
    against the newer version given backward compat is not guaranteed.
    
    Just repeat the find_package line rather than do extra conditionals,
    it'll repeat the argument but it's simpler/readable.
    
    Closes: https://bugs.gentoo.org/947049
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtwayland/qtwayland-6.8.1.ebuild    | 1 +
 dev-qt/qtwayland/qtwayland-6.8.9999.ebuild | 1 +
 dev-qt/qtwayland/qtwayland-6.9.9999.ebuild | 1 +
 dev-qt/qtwayland/qtwayland-6.9999.ebuild   | 1 +
 4 files changed, 4 insertions(+)