Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940009 - kde-plasma/libkscreen:6 depends on dev-qt/qtbase[X]
Summary: kde-plasma/libkscreen:6 depends on dev-qt/qtbase[X]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-21 17:57 UTC by Pablo Cholaky
Modified: 2024-09-22 20:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Cholaky 2024-09-21 17:57:37 UTC
Hi,

libkscreen fails to build when qtbase 6 does not use X use flag because its missing qtx11extras.h.

The problem is resolved when qtbase 6 uses X use flag, but I don't know why is this a requirement for libkscreen. Not sure if a hard dependency either or misconfiguration of cmake flags.

/usr/lib/llvm/18/bin/clang++ -DKF6Screen_EXPORTS -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56500 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_GUI_LIB -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-plasma/libkscreen-6.1.5/work/libkscreen-6.1.5_build/src -I/var/tmp/portage/kde-plasma/libkscreen-6.1.5/work/libkscreen-6.1.5/src -I/var/tmp/portage/kde-plasma/libkscreen-6.1.5/work/libkscreen-6.1.5_build/src/KF6Screen_autogen/include -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib/qt6/mkspecs/linux-clang -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtDBus -isystem /usr/include/qt6/QtGui/6.7.2 -isystem /usr/include/qt6/QtGui/6.7.2/QtGui -isystem /usr/include/qt6/QtCore/6.7.2 -isystem /usr/include/qt6/QtCore/6.7.2/QtCore  -DQT_NO_DEBUG -march=znver3 -O2 -pipe -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -std=gnu++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT src/CMakeFiles/KF6Screen.dir/backendmanager.cpp.o -MF src/CMakeFiles/KF6Screen.dir/backendmanager.cpp.o.d -o src/CMakeFiles/KF6Screen.dir/backendmanager.cpp.o -c /var/tmp/portage/kde-plasma/libkscreen-6.1.5/work/libkscreen-6.1.5/src/backendmanager.cpp
/var/tmp/portage/kde-plasma/libkscreen-6.1.5/work/libkscreen-6.1.5/src/backendmanager.cpp:27:10: fatal error: 'QtGui/private/qtx11extras_p.h' file not found
   27 | #include <QtGui/private/qtx11extras_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.



Reproducible: Always

Steps to Reproduce:
1.Build qtbase 6 without X use flag
2.Build libkscreen 6
3.Observe the erro
Actual Results:  
Fails

Expected Results:  
Work

If the issue is a hard dependency, then ebuild should state this requirement from qtbase.

If the issue is a missing cmake/qmake flag, then should be added. Specially on people who are building strictly wayland-only systems.
Comment 1 Pablo Cholaky 2024-09-21 18:01:26 UTC
Also, seems like libkscreen 6 uses "jq" for the dependency check. It still works, so not a major problem. No idea if this causes any problem.

-- Found XCB_XCB: /usr/lib/libxcb.so (found version "1.17.0")
-- Found XCB_DPMS: /usr/lib/libxcb-dpms.so (found version "1.17.0")
-- Found XCB_RANDR: /usr/lib/libxcb-randr.so (found version "1.17.0")
-- Found XCB: /usr/lib/libxcb.so;/usr/lib/libxcb-dpms.so;/usr/lib/libxcb-randr.so (found version "1.17.0") found components: XCB RANDR DPMS
CMake Warning at CMakeLists.txt:59 (message):
  jq executable not found, zsh completions won't work at their full capacity


-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
Comment 2 Larry the Git Cow gentoo-dev 2024-09-22 20:13:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=026b0d67d714c4036113d981fbc5745a00f43364

commit 026b0d67d714c4036113d981fbc5745a00f43364
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-09-22 20:11:49 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-09-22 20:11:49 +0000

    kde-plasma/kscreen: Add missing dev-qt/qtbase[X] USEdep
    
    Bug: https://bugs.gentoo.org/940009
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/kscreen/kscreen-6.1.90.ebuild      | 2 +-
 kde-plasma/kscreen/kscreen-6.2.49.9999.ebuild | 2 +-
 kde-plasma/kscreen/kscreen-9999.ebuild        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-09-22 20:15:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d53ab941e3e54b430eab291b107b98763f08287

commit 1d53ab941e3e54b430eab291b107b98763f08287
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-09-22 20:11:49 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-09-22 20:15:27 +0000

    kde-plasma/kscreen: Add missing dev-qt/qtbase[X] USEdep
    
    Closes: https://bugs.gentoo.org/940009
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/kscreen/{kscreen-6.1.5.ebuild => kscreen-6.1.5-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)