Created attachment 867839 [details] full meson log While emerging app-misc/tracker-3.5.3, the following error appears: Could not introspect Python (['/usr/bin/python3', '/usr/lib/python3.11/site-packages/mesonbuild/scripts/python_info.py']): exit code 1 Program stdout: Program stderr: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mesonbuild/scripts/python_info.py", line 16, in <module> import distutils.command.install ModuleNotFoundError: No module named 'distutils' meson.build:101:26: ERROR: <PythonExternalProgram 'python3' -> ['/usr/bin/python3']> is not a valid python or it is missing distutils I included the meson log. emerge -1pv python-exec: [ebuild R ] dev-lang/python-exec-2.4.10:2::gentoo USE="(native-symlinks) -test" PYTHON_TARGETS="(pypy3) (python3_10) (python3_11) (python3_12)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Python version: python3 -V Python 3.12.0rc1 Originally we thought it was a duplicate of the bug 864751. but USE="(native-symlinks) is set in this case. Meson try to find python distutils but it seems there are no distutils for 3.12 anymore. A workaround is to change the default python to 3.11 on the system with eselect python by installing app-eselect/eselect-python, that way the compilation is successful, I had to file the report anyways because this seems to be a python 3.12 issue specifically with this package.
emerge --info lacks the urls because this is a new account and it doesn't allow to include them: Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.1.41-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.1.41-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-9600K_CPU_@_3.70GHz-with-glibc2.37 KiB Mem: 16296148 total, 7092340 free KiB Swap: 16777212 total, 16777212 free Timestamp of repository gentoo: Sun, 13 Aug 2023 18:30:02 +0000 Head commit of repository gentoo: 541fdd85bbbb235b4ce9c9e5a4a1ebe2ed64537b Timestamp of repository steam-overlay: Tue, 08 Aug 2023 09:17:05 +0000 Head commit of repository steam-overlay: 07ebc3a65e775939d45ce1cf89bbb6d2c310ab80 Timestamp of repository stefantalpalaru: Sun, 13 Aug 2023 05:31:29 +0000 Head commit of repository stefantalpalaru: bc6e61a4ff64e6fbe0dc31a4e597e75feefafedd Timestamp of repository zugaina: Fri, 16 Jun 2023 08:32:15 +0000 Head commit of repository zugaina: a31fcec20b159a13ccd069d4e13b92d18bc0ffec sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-lang/perl: 5.36.1-r3::gentoo dev-lang/python: 2.7.18_p112::stefantalpalaru, 3.10.12::gentoo, 3.11.4::gentoo, 3.12.0_rc1_p1::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/cmake: 3.26.4-r2::gentoo dev-util/meson: 1.1.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/sandbox: 2.37::gentoo sys-apps/systemd: 253.6::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/gcc: 12.3.1_p20230526::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.6::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: priority: -1000 volatile: False sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: masters: gentoo volatile: False stefantalpalaru location: /var/db/repos/stefantalpalaru sync-type: git sync-uri: masters: gentoo volatile: False zugaina location: /var/db/repos/zugaina sync-type: git sync-uri: masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE ValveSteamLicense vmware all-rights-reserved JoyPixels Spotify free-noncomm quake1-teamfortress lha hplip-plugin Canon-IJ @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" 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="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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="-march=native -O2 -pipe" GENTOO_MIRRORS="" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" 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" SHELL="/bin/fish" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui http iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng modplug mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl objc ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" 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="aes avx avx2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python2_7 python3_10" RUBY_TARGETS="ruby31" VIDEO_CARDS="vga nvidia intel" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
This appears different from bug 911418. I wonder if this one is similar to bug 912051 which Chewi backported a fix for.
(In reply to Sam James from comment #2) > This appears different from bug 911418. > > I wonder if this one is similar to bug 912051 which Chewi backported a fix > for. I've only looked at the ebuild, but I think it suffers from both. Meson won't detect 3.12 without setuptools installed, and it doesn't respect the PATH, so it will just pick the version Meson is running under.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0ad7b00c772c71a74ec42be0bf594ee9198b71c commit c0ad7b00c772c71a74ec42be0bf594ee9198b71c Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-03 16:13:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-03 16:13:51 +0000 dev-util/meson: backport PEP632 py3.12 fixes, revert bindgen breakage * Backport PEP632 fixes for Python 3.12 * Revert bindgen patch on 1.2.x branch which broke Mesa Closes: https://bugs.gentoo.org/914989 Closes: https://bugs.gentoo.org/915014 Closes: https://bugs.gentoo.org/911418 Closes: https://bugs.gentoo.org/911990 Closes: https://bugs.gentoo.org/912397 Closes: https://bugs.gentoo.org/912437 Closes: https://bugs.gentoo.org/912452 Closes: https://bugs.gentoo.org/912282 Signed-off-by: Sam James <sam@gentoo.org> ...ndency-ensure-that-setuptools-doesn-t-inj.patch | 39 ++++++ ...le-stop-using-distutils-schemes-on-suffic.patch | 72 +++++++++++ ...le-refactor-pypy-detection-into-a-consist.patch | 36 ++++++ ...le-stop-using-distutils-link-to-libpython.patch | 72 +++++++++++ ...est-case-to-not-import-distutils-on-pytho.patch | 31 +++++ ...e-PyPI-metadata-as-supporting-python-3.12.patch | 25 ++++ ...-apply-global-project-and-environment-C-a.patch | 141 +++++++++++++++++++++ dev-util/meson/meson-1.2.2-r1.ebuild | 122 ++++++++++++++++++ 8 files changed, 538 insertions(+)