It appears my USE flag combination requires Python 3 but the ebuild doesn't check for that. I'm using Python 2 because some of my scripts/plugins still require it. [ebuild U ~] net-irc/weechat-2.7::gentoo [2.6::gentoo] USE="alias buflist charset exec fifo fset irc logger nls perl python relay scripts spell ssl trigger xfer -doc -guile -lua -man -php -ruby -tcl -test" PYTHON_SINGLE_TARGET="python2_7 -python3_5 -python3_6 -python3_7 -python3_8%" PYTHON_TARGETS="python2_7 python3_6 -python3_5 -python3_7 -python3_8%" 0 KiB (...) -- Looking for flock -- Looking for flock - found -- Looking for backtrace -- Looking for backtrace - found -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") -- Checking for module 'python3-embed' -- No package 'python3-embed' found -- Checking for module 'python3' -- No package 'python3' found CMake Error at src/plugins/CMakeLists.txt:107 (message): Python not found -- Looking for aspell_version_string -- Looking for aspell_version_string - found -- Checking for one of the modules 'ncursesw' -- Looking for include file ncursesw/ncurses.h -- Looking for include file ncursesw/ncurses.h - found -- <<< Gentoo configuration >>> Build type Gentoo Install path /usr Compiler flags: C -march=native -O2 -pipe -fsigned-char -Wall -Wextra -Werror-implicit-function-declaration C++ -fsigned-char -Wall -Wextra Linker flags: Executable -Wl,-O1 -Wl,--as-needed Module -Wl,-O1 -Wl,--as-needed Shared -Wl,-O1 -Wl,--as-needed -- Configuring incomplete, errors occurred! Reproducible: Always Steps to Reproduce: 1. emerge weechat 2.7 with the abovementioned USE flags Actual Results: Configure fails. Expected Results: Build against Python 2 or fail early with a USE flag conflict message. If 2.7 can't work with Python 2 at all, drop the target USE flag.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d541f597773ba09ab9c1b9770b9717266b65180 commit 8d541f597773ba09ab9c1b9770b9717266b65180 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2019-12-13 23:30:40 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2019-12-13 23:30:40 +0000 net-irc/weechat: fix build with python2 Closes: https://bugs.gentoo.org/702706 Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> net-irc/weechat/weechat-2.7.ebuild | 5 +++++ 1 file changed, 5 insertions(+)