Created attachment 539568 [details, diff] Ebuild patch When trying to build qbittorrent without the X USE flag: [ebuild U ~] net-p2p/qbittorrent-4.1.1::gentoo [4.0.3-r1::local] USE="webui -X -dbus -debug" It needs qtsingleapplication.h, which currently is only installed if dev-qt/qtsingleapplication has the X USE flag enabled. I'm not sure if this is the correct way to go about this, but I am submitting a patch to remove the X USE flag requirement for this file's installation. See bug #639716 for more details.639716
dev-qt/qtsingleapplication is behaving exactly as expected. qtsingleapplication.h includes QApplication which requires gui packages. Fix qbittorrent dependencies.