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.