net-analyzer/nagstamon/nagstamon-3.14.0 fails at run time if dev-python/PyQt5[gui,multimedia,svg,widgets] exists and dev-python/PyQt6 exists without appropriate USE flags. Reproducible: Always Steps to Reproduce: launch nagstamon Actual Results: $ nagstamon Traceback (most recent call last): File "/usr/lib/python-exec/python3.11/nagstamon", line 45, in <module> from Nagstamon.QUI import (APP, File "/usr/lib/python3.11/site-packages/Nagstamon/QUI/__init__.py", line 35, in <module> from .qt import * File "/usr/lib/python3.11/site-packages/Nagstamon/QUI/qt.py", line 209, in <module> from PyQt6.QtMultimedia import QAudioOutput, \ ModuleNotFoundError: No module named 'PyQt6.QtMultimedia' Expected Results: nagstamon lauched and no error related to PyQt6.QtMultimedia dev-python/PyQt6 dbus gui -multimedia network opengl printsupport sql ssl svg webchannel widgets xml dev-python/PyQt5 dbus declarative gui multimedia network opengl printsupport ssl svg webchannel widgets Solved by adding multimedia USE flag to dev-python/PyQt6 but portage doesn't have anticipated the issue because it have matched the USE flags of dev-python/PyQt5 while dev-python/PyQt6 ones didn't matched: || ( dev-python/PyQt6[gui,multimedia,svg,widgets,${PYTHON_USEDEP}] dev-python/PyQt5[gui,multimedia,svg,widgets,${PYTHON_USEDEP}] )
Other qt packages use a qt6 USE flag to make it explicit if you want to use Qt6 or Qt5, that would avoid this issue. I'll have a look at it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e277a262ecb32e193bce510ec4f0b89a1f2154bb commit e277a262ecb32e193bce510ec4f0b89a1f2154bb Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2024-05-19 07:14:51 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2024-05-19 07:16:03 +0000 net-analyzer/nagstamon: use qt6 USE flag This also drops x86 since that does not have PyQt6 keyworded. Closes: https://bugs.gentoo.org/931957 Signed-off-by: Hans de Graaff <graaff@gentoo.org> net-analyzer/nagstamon/nagstamon-3.14.0-r1.ebuild | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+)