Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758878 - Don't handle PYTHON_TARGETS well
Summary: Don't handle PYTHON_TARGETS well
Status: RESOLVED DUPLICATE of bug 702806
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-07 08:22 UTC by Lin Jian
Modified: 2020-12-07 08:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge -pvc python:3.9 (file_758878.txt,1.34 KB, text/plain)
2020-12-07 08:22 UTC, Lin Jian
Details
build log of jsoncpp-1.9.4 (file_758878.txt,13.21 KB, text/plain)
2020-12-07 08:24 UTC, Lin Jian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lin Jian 2020-12-07 08:22:05 UTC
Created attachment 677125 [details]
output of emerge -pvc python:3.9

Today I want to remove python3.9, but when I type emerge -pvc python:3.9, portage says as the attachment.

It's weird that these packages depend on python3.9 because my python targets are not set to python3.9 and PYTHON_COMPAT of their ebuid files are not python3_9 only, e.g. PYTHON_COMPAT of jsoncpp-1.9.4 is python3_{6..9}. The output of 
portageq envvar PYTHON_TARGETS if python2_7 python3_8 and the output of portageq envvar PYTHON_SINGLE_TARGET if python3_8.

I try to rebuild jsoncpp-1.9.4, and the build log is in the attachment. The build log says * Using python3.8 to build. But after rebuilding, it still depends on python3.9 if I type the same command emerge -pvc python:3.9 to check.
Comment 1 Lin Jian 2020-12-07 08:24:06 UTC
Created attachment 677128 [details]
build log of jsoncpp-1.9.4
Comment 2 Lin Jian 2020-12-07 08:27:27 UTC
$ emerge --info
Portage 3.0.9 (python 3.8.6-final-0, default/linux/amd64/17.1/systemd, gcc-10.2.0, glibc-2.32-r3, 5.8.18-gentoo x86_64)
=================================================================
System uname: Linux-5.8.18-gentoo-x86_64-Intel-R-_Core-TM-_i7-9850H_CPU_@_2.60GHz-with-glibc2.2.5
KiB Mem:    32564588 total,  19895552 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 06 Dec 2020 10:05:34 +0000
Head commit of repository gentoo: 3626c49326eabd4793b85fda48c51a7638129eee

Timestamp of repository bobwya: Sat, 05 Dec 2020 17:35:30 +0000
Head commit of repository bobwya: 0fb8d792710ea8f5df1b6c5705ec95659415a3cc

Timestamp of repository gentoo-zh: Fri, 04 Dec 2020 04:05:23 +0000
Head commit of repository gentoo-zh: ce3ccdcfb108b96e2840680306a4a3118aa94b48

Timestamp of repository gig: Tue, 01 Dec 2020 11:07:54 +0000
Head commit of repository gig: 25c6a13239578e58f1a8b31c876aad1664b137f4

Timestamp of repository leonardohn: Fri, 04 Dec 2020 02:35:33 +0000
Head commit of repository leonardohn: 59147a87e421709c0409cac72ed480fb5830ac01

Timestamp of repository lto-overlay: Wed, 25 Nov 2020 18:29:15 +0000
Head commit of repository lto-overlay: 3f162fc007715a37b70788f8e72fa55be87297e4

Timestamp of repository menelkir: Tue, 01 Dec 2020 11:08:01 +0000
Head commit of repository menelkir: f8e082e7e6f76b02bd12b15531ce244502e2342d

Timestamp of repository mv: Tue, 01 Dec 2020 11:07:23 +0000
Head commit of repository mv: c7177dee4a98a6ecfac97d92414a1935ed24d497

Timestamp of repository steam-overlay: Wed, 25 Nov 2020 18:28:41 +0000
Head commit of repository steam-overlay: e326f9cdca590cdac3ab0ca1d2a640fbe00501ee

Timestamp of repository thegreatmcpain: Fri, 04 Dec 2020 12:05:31 +0000
Head commit of repository thegreatmcpain: a17d93ba0d0e60b805e7c8e28e416cf801430e2d

Timestamp of repository guru: Sun, 06 Dec 2020 11:05:36 +0000
Head commit of repository guru: 75f5a62cf7ebc34d5945e89b34cd686f649b30aa

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://mirrors.bfsu.edu.cn/git/gentoo-portage.git
    priority: -1000
    sync-git-verify-commit-signature: yes

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo

gig
    location: /var/db/repos/gig
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gig.git
    masters: gentoo

leonardohn
    location: /var/db/repos/leonardohn
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/leonardohn.git
    masters: gentoo

local_test_overlay
    location: /var/db/repos/local_test_overlay
    masters: gentoo
    priority: 0

lto-overlay
    location: /var/db/repos/lto-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lto-overlay.git
    masters: gentoo mv

menelkir
    location: /var/db/repos/menelkir
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/menelkir.git
    masters: gentoo

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/thegreatmcpain.git
    masters: gentoo bobwya

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=12 -fuse-linker-plugin -pipe -march=native -falign-functions=32"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=12 -fuse-linker-plugin -pipe -march=native -falign-functions=32"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask --autounmask-write --jobs=12  --load-average=12"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=12 -fuse-linker-plugin -pipe -march=native -falign-functions=32"
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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=12 -fuse-linker-plugin -pipe -march=native -falign-functions=32"
GENTOO_MIRRORS="https://mirrors.bfsu.edu.cn/gentoo"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 -l12"
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="/var/tmp"
USE="X acl amd64 berkdb bzip2 cjk cli crypt dri fontconfig fortran gdbm iconv ipv6 libglvnd libtirpc lm-sensors lto multilib ncurses networkmanager nls nptl nvidia openmp pam pcre pgo pulseaudio readline seccomp split-usr ssl systemd tcpd truetype udev unicode vaapi vdpau vulkan xattr xinerama zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="zh-CN zh en-US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Zac Medico gentoo-dev 2020-12-07 08:38:39 UTC

*** This bug has been marked as a duplicate of bug 702806 ***