Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906387 - media-libs/mesa-23.1.0 Python (3.x) mako module >= 0.8.0 required to build mesa
Summary: media-libs/mesa-23.1.0 Python (3.x) mako module >= 0.8.0 required to build mesa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-15 10:28 UTC by Alexey Skobkin
Modified: 2023-05-15 21:29 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,2.67 KB, application/gzip)
2023-05-15 10:29 UTC, Alexey Skobkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Skobkin 2023-05-15 10:28:58 UTC
The build of media-libs/mesa-23.1.0 fails due to the error saying that mako Python module is needed while it's installed.

# eix -I mako
[I] dev-python/mako
     Available versions:  1.2.4^t{xpak:2} {doc test PYTHON_TARGETS="pypy3 python3_10 python3_11"}
     Installed versions:  1.2.4^t{xpak:2}(01:19:50 PM 05/15/2023)(-doc -test PYTHON_TARGETS="python3_10 -pypy3 -python3_11")

# emerge --info                                                                                                                                                                                                                                                                                                         
Portage 3.0.47 (python 3.10.11-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-12, glibc-2.37-r3, 6.3.0-gentoo-skobkin x86_64)                                                                                                                                                                               
=================================================================                                                                                                                                                                                                                                                          
System uname: Linux-6.3.0-gentoo-skobkin-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.37
KiB Mem:    65766720 total,  28757488 free                                    
KiB Swap:          0 total,         0 free                                                                                                                                                                                                                                                                                 
Timestamp of repository gentoo: Mon, 15 May 2023 07:31:54 +0000
Head commit of repository gentoo: 49cb6aa3e0860d6bc57fa916944d5dfe12302904                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
Timestamp of repository 4nykey: Mon, 15 May 2023 06:02:20 +0000
Head commit of repository 4nykey: ac12f22d7196bad788f8ad2c19fc0d78b5e51878
                                                                              
Timestamp of repository Case_Of: Mon, 15 May 2023 06:02:24 +0000
Head commit of repository Case_Of: cc3b6aae35204f85b8dc055b888045addbe4c236
                                                                              
Timestamp of repository HomeAssistantRepository: Mon, 15 May 2023 06:02:35 +0000
Head commit of repository HomeAssistantRepository: 0ef3945af099d24996ecb6024e7be40af708dcf5
                                                                              
Timestamp of repository guru: Mon, 15 May 2023 07:46:59 +0000                                                                                                                                                                                                                                                              
Head commit of repository guru: 215c37f46664ce3b4f1389d07ed7f9a55d78a660
                                                                              
Timestamp of repository pentoo: Mon, 15 May 2023 07:46:57 +0000                                                                                                                                                                                                                                                            Head commit of repository pentoo: 55ebdfe4d7325b795aadaf7cb6a2d5aa33e97ad5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Timestamp of repository tmacedo: Wed, 10 May 2023 18:18:55 +0000                                                                                                                                                                                                                                                           Head commit of repository tmacedo: b1322b541a712260d7f54a6a04e71e74f4d1977c                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                           sh bash 5.2_p15-r2                                                                                                                                                                                                                                                                                                         ld GNU ld (Gentoo 2.40 p5) 2.40.0                                                                                                                                                                                                                                                                                          app-misc/pax-utils:        1.3.7::gentoo                                                                                                                                                                                                                                                                                   
app-shells/bash:           5.2_p15-r2::gentoo                                                                                                                                                                                                                                                                              dev-java/java-config:      2.3.1::gentoo                                                                                                                     
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.8.16_p4::gentoo, 3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo                                                                                                                                                                                                                                                                               
dev-util/cmake:            3.26.3::gentoo                                                                                                                                                                                                                                                                                  
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.4::gentoo
sys-devel/autoconf:        2.13-r8::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-r1::gentoo, 16.0.3::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo, 13.1.0-r1::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.3::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.3::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo                                                                                                                                                                                                                                                                                                             [37/333]
    location: /usr/portage                           
    sync-type: git         
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: True
    sync-git-verify-commit-signature: true

4nykey
    location: /var/db/repos/4nykey
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/4nykey.git
    masters: gentoo
    volatile: False

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

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

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

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

skobkin
    location: /var/db/repos/skobkin
    masters: gentoo
    volatile: False

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

Installed sets: @optfeatures                              
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -fomit-frame-pointer"
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/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-a
ctive/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/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="-O2 -pipe"             
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live cgroup compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news nodoc parallel-fetch parallel-inst
all pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe" 
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"                        
LINGUAS="en"      
MAKEOPTS="-j32"                                          
PKGDIR="/usr/portage/packages"
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="/tmp"
SHELL="/bin/zsh"                   
USE="X a52 aac acl acpi activities amd64 avx bash-completion bluetooth branding bzip2 cairo cdr cli crypt cups curl curlwrappers cxx dbus declarative dga djvu dri dts dv dvd dvdr encode exif fbcon ffmpeg flac fortran gif git gnutls gpm gtk gtk3 gui gzip hddtemp iconv icu idn imagemagick inotify ipv6 jabber jack ji
t jpeg kde kwallet lame lcms libass libglvnd libnotify libtirpc lm_sensors lzma lzo mad matroska mhash mime mmap mmx mmxext mng modemmanager mp3 mp4 mpeg mplayer multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit posix ppds pulseaudio qml qt5 raw readline sa
mba sasl sdl seccomp semantic-desktop session sharedmem smp sockets sound spell split-usr sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg systemd taglib tcmalloc test-rust theora threads tiff truetype udev udisks unicode upnp upnp-av upower usb v4l vaapi vdpau vhosts videos vnc vorbis vulkan wayland widget
s wxwidgets x264 x265 xattr xcb xcomposite xft xinerama xml xmpp xv xvid xvmc zlib" ABI_X86="64 32" 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 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navco
m oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TAR
GETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" USERLAND="GNU"
 VIDEO_CARDS="amdgpu radeonsi" 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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRE
SS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Reproducible: Always

Steps to Reproduce:
1. Try to build media-libs/mesa-23.1.0
Actual Results:  
mesa fails to build

Expected Results:  
mesa builds successfully
Comment 1 Alexey Skobkin 2023-05-15 10:29:23 UTC
Created attachment 861725 [details]
build.log.gz
Comment 2 Alexey Skobkin 2023-05-15 10:44:10 UTC
Just in case, previous version (media-libs/mesa-23.0.3-r1) builds fine. So I think it should either be a regression, or missing dependency info.
Comment 3 Daniel Pouzzner 2023-05-15 16:22:52 UTC
Same here.  The problem is incorrect detection of Python version:

 [ ok ]
 * Checking whether python3_11 is suitable ...
 *   >=dev-lang/python-3.11.1-r1:3.11 ...
 [ ok ]
 *   python_check_deps ...
 *     >=dev-python/mako-0.8.0[python_targets_python3_11(-)] ...
 [ !! ]
 [ ok ]
 * Using python3.11 to build (via PYTHON_COMPAT iteration)

On my host, python 11 is installed, but is currently omitted from global PYTHON_TARGETS, making it unusable for many purposes, apparently including this one.

Adding this to package.use unblocked me (successful build+install of media-libs/mesa-23.1.0):

  dev-python/mako python_targets_python3_11
  dev-python/markupsafe python_targets_python3_11

These were in addition to 20 existing core single-package enablings of python_targets_python3_11.
Comment 4 Matt Turner gentoo-dev 2023-05-15 21:28:05 UTC
Thanks for the report. Looks like I broke this in commit 3b7afdfc1b3f1b3d5196e1377d0f0daed265c341 for bug 906327.
Comment 5 Larry the Git Cow gentoo-dev 2023-05-15 21:29:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43cb0eea60a4243ec23cf9780bbfe9fc60d98456

commit 43cb0eea60a4243ec23cf9780bbfe9fc60d98456
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-05-15 21:28:17 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-05-15 21:29:10 +0000

    media-libs/mesa: Fix python_check_deps
    
    Closes: https://bugs.gentoo.org/906387
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-23.1.0.ebuild | 4 ++--
 media-libs/mesa/mesa-9999.ebuild   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)