Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723872 - sys-process/criu-3.14 installs python2.7 files although PYTHON_TARGETS_PYTHON2_7 isn't set
Summary: sys-process/criu-3.14 installs python2.7 files although PYTHON_TARGETS_PYTHON...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: py3-tracker, python-3-incompatible
  Show dependency tree
 
Reported: 2020-05-19 06:04 UTC by Bernd
Modified: 2020-08-02 17:37 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2020-05-19 06:04:09 UTC
In one of the last few days, the package got updated to 3.14. On a dry-run before the update, I noticed that the python2_7 targets was gone from the PYTHON_TARGETS USE_EXPAND value.

Today I was checking, which of the packages, I'm having installed still belongs to python-2.7 and noticed criu is one of it.

waebbl@artus ~ $ qlist criu | grep python2.7 | head -n 1
/usr/lib64/python2.7/site-packages/pycriu/images/__init__.py

waebbl@artus ~ $ emerge -pqv criu
[ebuild   R   ] sys-process/criu-3.14  USE="python setproctitle -doc (-selinux) -static-libs" PYTHON_TARGETS="python3_6 python3_7 python3_8" 


Reproducible: Always

Steps to Reproduce:
1. emerge =sys-process/criu-3.14
2.
3.
Actual Results:  
Package installs files into Python 2.7 site-packages' dir.

Expected Results:  
Python 2.7 related files shouldn't have been installed

waebbl@artus ~ $ emerge --info sys-process/criu
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/systemd, gcc-8.4.0, glibc-2.31-r3, 5.6.13-gentoo-0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.13-gentoo-0-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.7
KiB Mem:    16297444 total,   2981752 free
KiB Swap:    4194300 total,   3975828 free
Head commit of repository guru: ff672d6aa546d0321b5675c25bb7e5a54929026c

Timestamp of repository ArtSoftware: Fri, 01 May 2020 10:40:57 +0000
Head commit of repository ArtSoftware: 4fa5a78354eab1edcc69e5dad4111fccdd0658f2

Timestamp of repository moltonel: Sat, 04 Apr 2020 16:05:01 +0000
Head commit of repository moltonel: e2c363586cab611d58480c2e644fde8e43660d68

Timestamp of repository raiagent: Tue, 12 May 2020 07:05:06 +0000
Head commit of repository raiagent: 9601759873e09ef07687cb550c4034f2d881ff15

Head commit of repository cg: 5fa1d79eaa0f763e80298520a6b8d654fa5304ef

Head commit of repository enlightenment-niifaq: 8522613a4c75f4fb4328ffe1784dce1c91f24d1e

Timestamp of repository gamerlay: Fri, 01 May 2020 10:40:18 +0000
Head commit of repository gamerlay: e56525c8338b674548e55e0afea3391a921fe593

Head commit of repository ebuild-overlay: a340325eae5a2196e83b9880352613917d858c0c

Head commit of repository perlovka: 9929aed94d833c339e3ff6a2a6f713713b0927ba

Timestamp of repository R_Overlay: Mon, 18 May 2020 05:35:05 +0000
Head commit of repository R_Overlay: 76b136e17dbbe80b024def5ef42838a3f4841174

Timestamp of repository dotnet: Mon, 18 May 2020 07:35:13 +0000
Head commit of repository dotnet: 528438cbe94069c05265e75976d3ea7b0eb38338

Head commit of repository niftyled: 214aa7cdd5a2b101e9ee1661a5de49a97a3d8b59

Timestamp of repository octave: Tue, 31 Mar 2020 15:47:23 +0000
Head commit of repository octave: 1200737e4923aa60cd3cc7e842814dcd299764b3

Head commit of repository sakaki-tools: 2e992c350ed5f3e212cfae8dc7c5573192268cd2

Timestamp of repository steam-overlay: Fri, 01 May 2020 10:40:34 +0000
Head commit of repository steam-overlay: d9f36ed6e2975246eda02ea00c1697fe5f58ee92

Head commit of repository qt: 48db88a10cc631a0cea84cf1791edd2fa7e9fa12

Head commit of repository science: afbf4143799d79827e38620fd9a11de80ddb4da8

Head commit of repository enlightenment-live: bdda3d625a3521b042ae1425317c7005ff650471

Timestamp of repository fem-overlay: Sun, 17 May 2020 10:05:06 +0000
Head commit of repository fem-overlay: 053e9b3839e6f08f387fd7bf0f50be2d7cce7a47

Timestamp of repository pentoo: Mon, 18 May 2020 01:05:11 +0000
Head commit of repository pentoo: 2e61c5d7275ba20e8add5931254117a8a976efa3

Head commit of repository gentoo-git: 7bf9d5acec26f8408cddd9cd9b7f4a30bdd3630e

Head commit of repository waebbl: 3c84d3321f27a08e1bb8296735db7915b26ef4d2

Timestamp of repository gentoo: Mon, 18 May 2020 13:05:23 +0000
Head commit of repository gentoo: 9b82779c70d453d6dd407b982d773f1b6523d8f5

sh bash 5.0_p17
ld GNU gold (Gentoo 2.34 p1 2.34.0) 1.16
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2-r2::gentoo-git
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            8.4.0::gentoo-git, 10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

guru
    location: /mnt/data/code/github/portage-overlays/guru
    sync-type: git
    sync-uri: git@git.gentoo.org:repo/proj/guru.git
    masters: gentoo
    priority: -1000

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

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

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

cg
    location: /mnt/data/code/github/portage-overlays/cg
    sync-type: git
    sync-uri: https://github.com/waebbl/cg.git
    masters: gentoo
    priority: 30

enlightenment-niifaq
    location: /mnt/data/code/github/portage-overlays/enlightenment.overlay
    sync-type: git
    sync-uri: git://github.com/waebbl/enlightenment.overlay.git
    masters: gentoo
    priority: 30

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

ebuild-overlay
    location: /mnt/data/code/github/portage-overlays/redchillipadi-ebuild-overlay
    sync-type: git
    sync-uri: git://github.com/waebbl/redchillipadi-ebuild-overlay
    masters: gentoo
    priority: 40

perlovka
    location: /mnt/data/code/github/portage-overlays/perlovka
    sync-type: git
    sync-uri: git://github.com/waebbl/perlovka-portage-overlay
    masters: gentoo
    priority: 40

R_Overlay
    location: /mnt/data/code/github/portage-overlays/R_Overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/R_Overlay.git
    masters: gentoo
    priority: 50

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

niftyled
    location: /mnt/data/code/github/portage-overlays/niftyledGentoo
    sync-type: git
    sync-uri: https://github.com/waebbl/niftyledGentoo.git
    masters: gentoo
    priority: 50

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

sakaki-tools
    location: /var/db/repos/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

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

qt
    location: /mnt/data/code/github/portage-overlays/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo
    priority: 60

science
    location: /mnt/data/code/github/portage-overlays/sci
    sync-type: git
    sync-uri: git://github.com/waebbl/sci.git
    masters: gentoo
    priority: 60

enlightenment-live
    location: /mnt/data/code/github/portage-overlays/enlightenment-live
    sync-type: git
    sync-uri: git://github.com/waebbl/enlightenment-live.git
    masters: gentoo
    priority: 61

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

pentoo
    location: /mnt/data/code/github/portage-overlays/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    priority: 90

gentoo-git
    location: /mnt/data/code/github/portage-overlays/gentoo-git
    sync-type: git
    sync-uri: git@github.com:waebbl/gentoo.git
    masters: gentoo
    priority: 99

waebbl
    location: /mnt/data/code/github/portage-overlays/waebbl
    sync-type: git
    sync-uri: https://github.com/waebbl/waebbl-gentoo.git
    masters: gentoo
    priority: 99

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

Installed sets: @3D, @XWindow, @adm-tools, @android, @base, @benchmarking, @blender-2.80-ebuild-dev-deps, @desktop, @dev-tools, @doc-tools, @docs, @emacs, @fonts, @fun, @games, @infinity, @kde, @keep, @kernel-dep, @langs, @lxqt-live, @media, @my_latex, @netz, @nvidia, @office, @python, @qt, @sci, @sec, @server, @steam, @themes, @vcs, @virt, @xfce, @zip
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -fstack-protector-strong -fstack-check"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="-O2 -pipe -march=bdver2 -fstack-protector-strong -fstack-check"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps n --complete-graph --keep-going"
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 -march=bdver2 -fstack-protector-strong -fstack-check -fbounds-check"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg candy cgroup clean-logs config-protect-if-modified distlocks downgrade-backup 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 sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=bdver2 -fstack-protector-strong -fstack-check -fbounds-check"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo/ 	https://ftp.halifax.rwth-aachen.de/gentoo/ 	https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ 	https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 	https://mirror.netcologne.de/gentoo/ 	https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/de* -/usr/share/locale/en*"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs/desktop"
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 alsa amd64 branding bzip2 cli crypt dbus dri egl fortran gdbm gif gnome iconv ipv6 jpeg jpeg2k kde libinput libtirpc multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pcre pic png policykit postgres pulseaudio python qt5 readline seccomp sound split-usr ssl svg systemd tcpd tga theora threads tiff udev unicode vorbis wayland x264 x265 xattr xpm 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" ENLIGHTENMENT_MODULES="appmenu clock conf conf-applications conf-bindings conf-dialogs conf-display conf-interaction conf-intl conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman cpufreq everything fileman fileman-opinfo gadman geolocation ibar ibox lokker mixer msgbus music-control notification packagekit pager pager-plain quickaccess shot start syscon sysinfo systray tasks teamwork temperature tiling time winlist wizard xkbswitch" 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" GRUB_PLATFORMS="pc multiboot qemu" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LLVM_TARGETS="AArch64 ARM BPF NVPTX" NGINX_MODULES_HTTP="access addition auth_basic auth_pam autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip2 gunzip gzip headers_more image_filter javascript limit_conn limit_req map memc memcached metrics mp4 naxsi proxy push_stream realip referer rewrite scgi secure_link slowfs_cache split_clients ssi sticky stub_status sub upload_progress userid uwsgi xslt" NGINX_MODULES_STREAM="access geo geoip2 javascript limit_conn map return split_clients" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_6 python3_7 python3_8" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 sparc sparc64 x86_64" QEMU_USER_TARGETS="aarch64 aarch64_be arm armeb i386 sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nvidia vesa" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-process/criu-3.14::gentoo was built with the following:
USE="python setproctitle -doc (-selinux) -static-libs" ABI_X86="(64)" PYTHON_TARGETS="python3_6 python3_7 python3_8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=bfd"
Comment 1 Joel Berendzen 2020-06-04 17:17:23 UTC
I can confirm.  package uses python_foreach_impl from python-r1 eclass, which causes this misbehavior.  Should be updated to use distutils.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-02 17:37:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f4fa093b0da0b3781bb84cadbb0e723bc3db958

commit 8f4fa093b0da0b3781bb84cadbb0e723bc3db958
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2020-08-02 17:37:04 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-08-02 17:37:19 +0000

    sys-process/criu-3.14-r1: Don't install python2.7 code (bug 723872)
    
    Closes: https://bugs.gentoo.org/723872
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 sys-process/criu/{criu-3.14.ebuild => criu-3.14-r1.ebuild} | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)