poudriere builds unneeded dependencies for non-default flavor of ports
Date: Wed, 22 Sep 2021 13:04:23 UTC
I'm trying to build headless `net-p2p/qbittorrent` with poudriere: $ sudo poudriere bulk -j sysmirror `pkg prime-origins ; echo net-p2p/qbittorrent@nox .... [00:19:18] [02] [00:00:00] Building x11-toolkits/qt5-gui | qt5-gui-5.15.2_7 [00:20:22] [02] [00:01:04] Finished x11-toolkits/qt5-gui | qt5-gui-5.15.2_7: Failed: lib-depends [00:20:24] [02] [00:01:06] Skipping net-p2p/qbittorrent@nox | qbittorrent-nox-4.3.8: Dependent port x11-toolkits/qt5-gui | qt5-gui-5.15.2_7 failed [00:20:24] [02] [00:01:06] Skipping x11-toolkits/qt5-declarative | qt5-declarative-5.15.2_3: Dependent port x11-toolkits/qt5-gui | qt5-gui-5.15.2_7 failed [00:20:24] [02] [00:01:06] Skipping devel/qt5-linguisttools | qt5-linguisttools-5.15.2_1: Dependent port x11-toolkits/qt5-gui | qt5-gui-5.15.2_7 failed [00:20:24] [02] [00:01:06] Skipping x11-toolkits/qt5-widgets | qt5-widgets-5.15.2_3: Dependent port x11-toolkits/qt5-gui | qt5-gui-5.15.2_7 failed .... $ Why does it try to build x11-toolkits/qt5-gui at all?! net-p2p/qbittorrent@nox don't need it: .... nox_PKGNAMESUFFIX= -nox nox_PLIST= ${MASTERDIR}/pkg-plist-nox USES= compiler:c++14-lang cpe pkgconfig qmake:no_env qt:5 ssl tar:xz GNU_CONFIGURE= yes USE_QT= core network xml buildtools_build linguisttools_build qmake_build DESTDIRNAME= INSTALL_ROOT CONFIGURE_ENV+= openssl_CFLAGS="-I${OPENSSLINC}" openssl_LIBS="-L${OPENSSLLIB} -lssl" .if ${FLAVOR} == default USES+= desktop-file-utils gl USE_QT+= concurrent gui svg widgets USE_GL= gl .endif .... -- // Lev Serebryakov