Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 947831

Summary: x11-libs/qwt[qt6] generates unusable pkg-config file for Qt6
Product: Gentoo Linux Reporter: Georg Rudoy <0xd34df00d>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: 0xd34df00d, ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/p/qwt/bugs/353/
Whiteboard:
Package list:
Runtime testing required: ---

Description Georg Rudoy 2025-01-10 22:14:58 UTC
The pkg-config file for qwt6 advertises dependencies on Qt5:

% pkg-config --libs Qt6Qwt6
-lqwt6-qt6 -lQt5Concurrent -lQt5PrintSupport -lQt5Svg -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core

since the `Requires` field there looks like

Requires: Qt5Widgets Qt5Concurrent Qt5PrintSupport Qt5Svg Qt5OpenGL


This causes Qt6 programs using Qwt via pkg-config to also pull in Qt5, resulting in failures to build in the best case.

This doesn't seem to depend on whether the qt5 variant is also built.

Reproducible: Always

Steps to Reproduce:
1. USE="qt6" emerge qwt
2. Query the pkg-config.
Actual Results:  
Bad dependencies on Qt5.

Expected Results:  
Dependencies on Qt6 only.