Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947831 - x11-libs/qwt[qt6] generates unusable pkg-config file for Qt6
Summary: x11-libs/qwt[qt6] generates unusable pkg-config file for Qt6
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL: https://sourceforge.net/p/qwt/bugs/353/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-10 22:14 UTC by Georg Rudoy
Modified: 2025-01-13 17:38 UTC (History)
2 users (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 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.