Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892525 - media-libs/gst-plugins-base-1.20.5 ERROR: <PythonExternalProgram 'python3' -> ['/usr/bin/python3.11']> is not a valid python or it is missing distutils
Summary: media-libs/gst-plugins-base-1.20.5 ERROR: <PythonExternalProgram 'python3' ->...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 20:07 UTC by Mike Gilbert
Modified: 2023-02-09 18:22 UTC (History)
1 user (show)

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


Attachments
build log (media-libs:gst-plugins-base-1.20.5:20230129-194918.log,10.42 KB, text/plain)
2023-01-29 20:07 UTC, Mike Gilbert
Details
meson log (meson-log.txt,81.50 KB, text/plain)
2023-01-29 20:08 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2023-01-29 20:07:14 UTC
Created attachment 849413 [details]
build log

../gst-plugins-base-1.20.5/meson.build:455:0: ERROR: <PythonExternalProgram 'python3' -> ['/usr/bin/python3.11']> is not a valid python or it is missing distutils

Portage 3.0.44_p3 (python 3.11.1-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-12, glibc-2.36-r7, 5.15.86-dist x86_64)
=================================================================
System uname: Linux-5.15.86-dist-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-glibc2.36
KiB Mem:    32876400 total,   6202304 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: 534831a8a15fd0823e73436c765c44fe58128ca3

sh bash 5.2_p15-r1
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.9.16-r1::gentoo, 3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-lang/rust:             1.67.0::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          252.4-r1::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo, 2.40::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
sys-libs/libselinux:       3.4::gentoo
Repositories:

gentoo
    location: /home/floppym/repos/gentoo
    sync-type: git
    sync-uri: ssh://git@git.gentoo.org/repo/gentoo.git
    priority: -1000
    volatile: True

floppym
    location: /home/floppym/repos/floppym
    masters: gentoo
    priority: 30
    volatile: True

cross
    location: /home/floppym/repos/cross
    masters: gentoo
    priority: 40
    volatile: True

local
    location: /home/floppym/repos/local
    masters: gentoo
    priority: 40
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/ssl/certs /usr/share/themes"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/data/cache/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --binpkg-changed-deps=y --dynamic-deps=n --quiet-build=n --quiet-fail=y --with-bdeps=y --jobs=6 --verbose-conflicts"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=amdfam10"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live ccache cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox parallel-fetch parallel-install preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=amdfam10"
GENTOO_MIRRORS="https://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/data/cache/binpkgs"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
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="/x"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 appindicator branding bzip2 cairo caps cdda cdr cli crypt css cups dbus declarative dri dts dvd dvdr encode exif filecaps flac fontconfig fortran gdbm gif gpm gtk gui iconv icu idn imap ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc lzma mad mng mp3 mp4 mpeg mtp multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd taglib test-rust theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis wayland widgets wxwidgets x264 xattr xcb xcomposite xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" 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 sse sse2 3dnow 3dnowext popcnt sse3 sse4a" 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" GRUB_PLATFORMS="efi efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_11 python3_9" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Mike Gilbert gentoo-dev 2023-01-29 20:08:45 UTC
Created attachment 849415 [details]
meson log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-29 20:22:08 UTC
Someone reported this earlier with Fontconfig too. Issue with new setuptools or python "external installation" stuff from earlier today?
Comment 3 Mike Gilbert gentoo-dev 2023-01-29 20:24:39 UTC
It looks like this happens when dev-python/packaging-23.0 and dev-python/setuptools-66.1.1 are installed together.

Downgrading to dev-python/packaging-21.3-r2 or upgrading to dev-python/setuptools-67.0.0 resolves the issue.

The packaging and setuptools versions are normally enforced by dependencies in the setuptools ebuild.

However, since gst-plugins-base does not declare any dependency on dev-python/setuptools, Portage decided on the following merge order on my system:

1. dev-python/packaging-23.0
2. media-libs/gst-plugins-base-1.20.5
3. dev-python/setuptools-67.0.0
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-09 03:38:57 UTC
If you're hitting this, please run: emerge -v1 dev-python/setuptools.

This was/is caused by some now-removed versions of setuptools in ~arch. Current stable and ~arch versions are OK. There's no easy way to force ~arch users to get the right version, as we can't just simply add a >= dep in the eclass, as we haven't stabled a new enough version yet, but stable users were also never affected by the bad versions.

We may add a || ( ... ) dep in the eclass for now given this is such a pain.
Comment 5 Larry the Git Cow gentoo-dev 2023-02-09 18:22:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50546c3db84904399e5624eb8f163e3d2be284e3

commit 50546c3db84904399e5624eb8f163e3d2be284e3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-09 18:19:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-09 18:22:36 +0000

    distutils-r1.eclass: adjust setuptools dep to avoid known-bad versions
    
    79071eb9f6f4a5725c1a89700bcfd7f120101179 tried to mitigate this but
    blockers don't affect dependency resolution (ordering), so let's add
    a || ( <dev-python/setuptools-... >=dev-python/setuptools-...) dep
    in the eclass to ensure that the bad in-between versions (which were
    in ~arch, not stable, for a period, and are no longer in tree) aren't
    considered good enough to install any distutils-r1 PEP517 packages.
    
    We can clean this up once newer setuptools is stable & then simplify
    (and tighten) the dep.
    
    (Worth keeping in mind that Portage (rightly) doesn't aggressively
    update things listed in RDEPEND in that order simply because they're
    in RDEPEND. It might update something listed in RDEPEND after the
    package listing it provided there's no >= or otherwise dep.)
    
    Bug: https://bugs.gentoo.org/892529
    Bug: https://bugs.gentoo.org/892525
    Bug: https://bugs.gentoo.org/893538
    Bug: https://bugs.gentoo.org/893632
    Bug: https://bugs.gentoo.org/893630
    Bug: https://bugs.gentoo.org/893634
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/distutils-r1.eclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)