Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739968 - media-libs/mesa-20.2.0_rc2, rc3 and rc4 USE="-wayland -X" - src_configure(): ?
Summary: media-libs/mesa-20.2.0_rc2, rc3 and rc4 USE="-wayland -X" - src_configure(): ?
Status: RESOLVED DUPLICATE of bug 739598
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 05:41 UTC by h1x
Modified: 2020-11-19 20:05 UTC (History)
0 users

See Also:
Package list:
media-libs/mesa-20.2.0_rc2 media-libs/mesa-20.2.0_rc3 media-libs/mesa-20.2.0_rc4
Runtime testing required: ---


Attachments
mesa-20.2.0_rc2 failed build log w/o X and Wayland (build.log,11.32 KB, text/plain)
2020-09-02 06:15 UTC, h1x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description h1x 2020-09-02 05:41:30 UTC
When building media-libs/mesa-20.2.0_rc2 with only egl, but without X and Wayland the build breaks giving an error:

* ERROR: media-libs/mesa-20.2.0_rc2::gentoo failed (configure phase):
*   (no error message)
  
The issue results from the change in ebuild compared to previous version.

mesa-20.1.6.ebuild contains this line:
	emesonargs+=( -Dplatforms=$(use X && echo "x11,")$(use wayland && echo "wayland,")$(use gbm && echo "drm,")surfaceless )

...which was replaced by these lines in mesa-20.2.0_rc2.ebuild:
	local platforms
	use X && platforms+="x11"
	use wayland && platforms+=",wayland"
	[[ -n $platforms ]] && emesonargs+=(-Dplatforms=${platforms#,})

What was lost in the transaltion is the piece about gbm for use with DRM only setups. Adding this line between the above fixes the issue:

	use gbm && platforms+=",drm"


Mesa flags for reference:
USE="classic dri3 egl gallium gbm gles2 libglvnd llvm zstd "
VIDEO_CARdS=="i965 intel iris"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-02 05:52:37 UTC
Please attach the entire build log to this bug report.
Please post your `emerge --info' output in a comment.
Comment 2 h1x 2020-09-02 06:11:15 UTC
$ emerge --info
Portage 3.0.4 (python 3.7.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.2.0, glibc-2.32, 5.7.12-gentoo x86_64)
=================================================================
System uname: Linux-5.7.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700_CPU_@_3.60GHz-with-gentoo-2.7
KiB Mem:    32825332 total,   1800204 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 29 Aug 2020 06:00:01 +0000
Head commit of repository gentoo: 26d8d46badf6fa92e273fb4a17e816dc7ec660bc
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/cmake:           3.18.1::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://pkg@10.1.0.11/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-jobs: 0
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fno-common"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fno-common"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 8 --load-average 8.0 --quiet-build=y"
ENV_UNSET="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="-O2 -pipe"
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="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.dkm.cz/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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="/var/tmp"
USE="amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv libglvnd libressl libtirpc minimal ncurses nptl openmp pam pcre readline seccomp split-usr ssl static-libs tcpd unicode xattr 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 sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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 h1x 2020-09-02 06:15:09 UTC
Created attachment 657820 [details]
mesa-20.2.0_rc2 failed build log w/o X and Wayland
Comment 4 h1x 2020-09-25 06:51:32 UTC
Issue still exists in mesa-20.2.0_rc3 and mesa-20.2.0_rc4.

Fixing it is just a matter of adding part of ebuild that was deleted from previous versions, could be by accident:

use gbm && platforms+=",drm"
Comment 5 h1x 2020-09-25 06:52:07 UTC
Issue still exists in mesa-20.2.0_rc3 and mesa-20.2.0_rc4.

Fixing it is just a matter of adding part of ebuild that was deleted from previous versions, could be by accident:

use gbm && platforms+=",drm"
Comment 6 Matt Turner gentoo-dev 2020-11-19 20:05:19 UTC

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