Emerging app-text/asciidoc shows all entries in PYTHON_SINGLE_TARGET disabled, ignoring portage configuration. Reproducible: Always Steps to Reproduce: emerge app-text/asciidoc Actual Results: All entries in PYTHON_SINGLE_TARGET are disabled Expected Results: emerge should work correctly. $ emerge -pv app-text/asciidoc !!! The ebuild selected to satisfy "app-text/asciidoc" has unmet requirements. - app-text/asciidoc-8.6.10_p20181016::gentoo USE="highlight -examples -graphviz -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-pypy3 -python3_5 -python3_6 -python3_7" PYTHON_TARGETS="python3_6 python3_7 -pypy3 -python3_5" The following REQUIRED_USE flag constraints are unsatisfied: exactly-one-of ( python_single_target_pypy3 python_single_target_python3_5 python_single_target_python3_6 python_single_target_python3_7 ) The above constraints are a subset of the following complete expression: exactly-one-of ( python_single_target_pypy3 python_single_target_python3_5 python_single_target_python3_6 python_single_target_python3_7 ) python_single_target_pypy3? ( python_targets_pypy3 ) python_single_target_python3_5? ( python_targets_python3_5 ) python_single_target_python3_6? ( python_targets_python3_6 ) python_single_target_python3_7? ( python_targets_python3_7 ) But PYTHON_SINGLE_TARGET is set in make.conf. $ grep PYTHON_SINGLE_TARGET /etc/portage/make.conf PYTHON_SINGLE_TARGET="python3_6" And `emerge --info` shows it: emerge --info | grep PYTHON_SINGLE_TARGET USE="X a52 aac acl acpi alltargets alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli clucene consolekit crypt cscope cuda cxx dbus device-mapper djvu dmi dmraid dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg flac fortran gdbm gif git glamor gphoto2 graphite gstreamer gtk hddtemp htmlhandbook i3wm iconv icu inotify ithreads jbig jpeg jpeg2k kpathsea lcms ldap libnotify libtirpc lm_sensors lto lzma mad mercurial mmx mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nptlonly ogg opencl openexr opengl openmp pam pango pch pcre pdf plasma png policykit postgres ppds private-headers python qt3support qt5 quicktime readline samba sdl seccomp semantic-desktop smp spell sqlite sqlite3 sse sse2 sse4 ssl ssse3 startup-notification subversion svg tcpd theora threads tiff truetype udev udisks unicode upnp upower usb utf8 v4l v4l2 vdpau vim-syntax vnc vorbis vpx webkit wxwidgets x264 xattr xcb xcomposite xft xml xpm xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="WebAssembly ARM AArch64" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="arm x86_64 i386 ppc sh4" QEMU_USER_TARGETS="arm x86_64 i386 ppc sh4" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Other packages with PYTHON_SINGLE_TARGET dependencies work correctly: $ emerge -pv fail2ban These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-analyzer/fail2ban-0.10.4-r2::gentoo USE="(-selinux) -systemd" PYTHON_SINGLE_TARGET="python3_6 -pypy -python2_7 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_5" 482 KiB Total: 1 package (1 new), Size of downloads: 482 KiB To make things more interesting, passing PYTHON_SINGLE_TARGET from command line works: $ PYTHON_SINGLE_TARGET=python3_6 emerge -pvu asciidoc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] app-text/asciidoc-8.6.10_p20181016::gentoo [8.6.10::gentoo] USE="highlight -examples -graphviz -test" PYTHON_SINGLE_TARGET="python3_6%* -pypy3% -python3_5% -python3_7% (-pypy%) (-python2_7%*)" PYTHON_TARGETS="python3_6%* python3_7%* -pypy3% -python3_5% (-pypy%) (-python2_7%*)" 564 KiB Total: 1 package (1 upgrade), Size of downloads: 564 KiB
$ emerge --info Portage 2.3.64 (python 3.7.3-final-0, default/linux/amd64/17.1/desktop, gcc-8.3.0, glibc-2.29-r2, 5.0.7-gentoo x86_64) ================================================================= System uname: Linux-5.0.7-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_975_@_3.33GHz-with-gentoo-2.6 KiB Mem: 12262840 total, 5092528 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 21 Apr 2019 06:46:20 +0000 Head commit of repository gentoo: 4884b56419726d5f94666c9c22f036816c7f0048 sh bash 5.0_p3-r1 ld GNU ld (Gentoo 2.32 p1) 2.32.0 app-shells/bash: 5.0_p3-r1::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.0-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo dev-util/cmake: 3.14.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.17::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.10.3-r3::gentoo, 1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32::gentoo sys-devel/gcc: 8.3.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: local location: /usr/local/portage masters: gentoo priority: 0 gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: 1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.0/conf /usr/share/maven-bin-3.6/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en ru" MAKEOPTS="-j9" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/mnt/library/tmp" USE="X a52 aac acl acpi alltargets alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli clucene consolekit crypt cscope cuda cxx dbus device-mapper djvu dmi dmraid dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg flac fortran gdbm gif git glamor gphoto2 graphite gstreamer gtk hddtemp htmlhandbook i3wm iconv icu inotify ithreads jbig jpeg jpeg2k kpathsea lcms ldap libnotify libtirpc lm_sensors lto lzma mad mercurial mmx mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nptlonly ogg opencl openexr opengl openmp pam pango pch pcre pdf plasma png policykit postgres ppds private-headers python qt3support qt5 quicktime readline samba sdl seccomp semantic-desktop smp spell sqlite sqlite3 sse sse2 sse4 ssl ssse3 startup-notification subversion svg tcpd theora threads tiff truetype udev udisks unicode upnp upower usb utf8 v4l v4l2 vdpau vim-syntax vnc vorbis vpx webkit wxwidgets x264 xattr xcb xcomposite xft xml xpm xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="WebAssembly ARM AArch64" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="arm x86_64 i386 ppc sh4" QEMU_USER_TARGETS="arm x86_64 i386 ppc sh4" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It should work fine as is. The emerge output does not show where PYTHON_SINGLE_TARGET is set for app-text/asciidoc, but that would be a local configuration problem anyway. I suggest looking in /etc/portage/profile/package.use.
You are right. I completely forgot about package.use. Incorrect asciidoc configuration was there. Thank you for your help.