Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920699 - sys-boot/grub-2.12[sdl] -- SDL support for grub-emu was explicitly requested but can't be compiled
Summary: sys-boot/grub-2.12[sdl] -- SDL support for grub-emu was explicitly requested ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-12-25 19:45 UTC by Gary E. Miller
Modified: 2023-12-26 21:35 UTC (History)
4 users (show)

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


Attachments
build log (sys-boot:grub-2.12:20231225-193637.log,48.17 KB, text/plain)
2023-12-25 19:45 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2023-12-25 19:45:24 UTC
Fails to build with USE=sdl

Reproducible: Always

Steps to Reproduce:
1. emerge -uDNa world
2.
3.
Actual Results:  
fails.

Expected Results:  
works.

kong ~ # emerge -pqv '=sys-boot/grub-2.12::gentoo'
[ebuild     U ] sys-boot/grub-2.12 [2.06-r9] USE="device-mapper fonts mount nls sdl themes truetype -doc -efiemu -libzfs (-test) -verify-sig" GRUB_PLATFORMS="efi-64 emu pc -coreboot -efi-32 -ieee1275 (-loongson) -multiboot -qemu (-qemu-mips) -uboot -xen -xen-32 -xen-pvh" 


kong ~ # emerge --info '=sys-boot/grub-2.12::gentoo'
Portage 3.0.58 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r7, 6.6.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.7-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.38
KiB Mem:    16276444 total,   1028212 free
KiB Swap:   33554428 total,  32637896 free
Timestamp of repository gentoo: Mon, 25 Dec 2023 19:17:01 +0000
Timestamp of repository brother-overlay: Mon, 13 Nov 2023 22:45:33 +0000
Head commit of repository brother-overlay: 2b85c53dc06dda5789c350c7555c35bc49a4f6bb

Timestamp of repository guru: Sun, 26 Nov 2023 19:01:50 +0000
Head commit of repository guru: 857ece4cec47bfbf0b7ea0c3be1ac28e8a73ffe8

sh bash 5.2_p21-r1
ld GNU ld (Gentoo 2.41 p4) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.8.3 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.73.0::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
dev-util/ccache:           4.8.3::gentoo
dev-util/cmake:            3.28.1::gentoo
dev-util/meson:            1.3.0-r2::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.52.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20231216::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, 17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --exclude ChangeLog* --delete-excluded
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.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

crossdev-arm64
    location: /var/db/repos/crossdev-arm64
    masters: gentoo
    priority: 10
    volatile: False

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
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.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /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="-mtune=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --backtrack 500 --autounmask-backtrack y"
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-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/ http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j6 -l9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --delete-excluded"
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/bash"
USE="12bit 256-color X a52 aac aacplus aacs aalib acl acpi additions adns ads aes afterimage aio alsa amarok amazon amd64 ao aom apache2 appindicator applet ares aspell asyncdns attica audiofile auth autoipd avahi avx avx2 background bash-completion bcmath binfilter bl blake2 blink bluetooth bluray bogofilter bonjour bonobo bookmarks boost bootsplash branding bs2b bzip2 cacert cairo calf caps cdaudio cdda cdinstall cdr celt cgi cgroup chromecast chroot clang cle266 cli command-args contentcache corba corefonts cpudetection crypt cscope css csv ctype cups curl curlwrappers cursors cxx daap dane dav1d dba dbm dbus dbx dcc dcraw declarative devfs26 device-mapper dirac disassembler discard-path discid divx dlz dmi dmx dnssec docbook dpms dri dri3 drm dtmf dts dv dvb dvbcsa dvben50221 dvd dvdr dvdread dvi dynagraph dynamicplugin ecc echo-cancel edl egl elogind encode equalizer escreen espeak ethereal etwin exif expat exscalibar extensions extra extramodules faac faad fading-colors faillog fame fat fdk festival ffmpeg ffmpeg-mt ffmpegthumbnailer fftw fits flac flashrom flatfile fltk fma fma3 fmod fontconfig foomatic-db foomaticdb fortran fpm fpx freetts ftp fuse g3dvl gadu gajim gallium gcj gconf gd gdal gdbm gdu gecko-mediaplayer geoip geometry geonames geotiff gif gimp gimpprint git glamor glew glib glitz glut gmath gmedia gml gmp gmplayer gnuplot gnustep gnutls go gpg gphoto2 gpm gps grammar graphviz grass gs gsettings gsl gsm gstreamer gtk gtk3 gtkhtml gtkspell gui guile h323 hardened harfbuzz hdf5 hdhomerun hdri highlight hostip howl howl-compat http http2 httpd icecast iconv icq icu id3 idea ilbc imagemagick imap imlib imlib2 inkjar inode inotify insecure-savers int64 introspection ipmi ipsec iptv ipv6 iso14755 jabber jack jadetex java javascript jbig jce jingle john jpeg jpeg2k karma keybinder kpathsea ladspa lame lastfm latex lcms libaom libass libcanberra libdrm libedit libextractor libinput libnotify librtmp libsamplerate libssh2 libtirpc libv4l2 libvisual lm-sensors lm_sensors lmdb logrotate lpr lto lua lv2 lxc lyrics lz4 lzma lzo mad manual map mapnik marble mariadb matroska mbox md5sum mda-lv2 mdadm mdnsresponder-compat menubar microdns midi mikmod milter mime mimencode mmap mmx mmxext mng mnogosearch mod modplug mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpg123 mplayer mpm-worker mtp multilib multimedia munin-apache munin-dhcp munin-irc munin-squid munin-surfboard musepack musicbrainz mysqli mythtv na_dd na_icons nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses ndiff net netlink network networking nfs nfsv4 nfsv41 nginx nls nodrm nominatim nping nptl nsplugin nvme offensive ogg oggvorbis on-the-fly-crypt openal opencl openctl openexr opengl openh264 openmp openssh openssl opensslcrypt opus oscar osmesa otr pam pango parse-clocks passfile passwdqc passwordsave paste64 pcap pci pcmcia pcntl pcre pdf pdfimport perl pgo php pidgin pipewire pipewire-alsa pixbuf player plazes plotutils png pnm policykit pop3d popcnt portage portaudio posix postproc ppds print printsupport priority procmail proj pulseaudio pvr python pyzor qml qt5 qt6 rar raw razor rc5 rdesktop readline realmedia realtime recursor remix rle rnnoise romio rpc rpz rrdcgi rrdtool rss rtc rtf rtmp rtsp rubberband run-as-root rustfmt sasl scanner schroedinger screen scripts scrypt sctp sdk sdl seccomp secure-delete sendmail sendto sensord serial server sftp sftplogging shape sharedext sharedmem shmvideo shorten silc sip sipim skins slp smi smime smp smtp sndfile snmp soap sockets sofia-sip softfax sound sox spamassassin speex spell spf spi spirv split-usr sqlite sqlite3 srtp sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification static-modules stats stream subtitles subversion svg svgz swat swig syntax-check sysfs syslog system-libvpx system-llvm sysvipc szip t1lib taglib tagwriting tcl tcltk template test-rust tetex tga themes theora thesaurus threads threadsafe thumbnail thunar thunderbird tiff timidity tk tokenizer tokyocabinet toolame toolbar tools transcode trayicon tremor truetype twolame type1 udev udf udisks ugly unbound unicode unzip update_drivedb upnp upower ups urandom uriparser usb utils v4l v4l2 vaapi vala valgrind vdpau vdr vhosts video vim vim-syntax visualization vlm vmaf vnc vorbis vorbis-psy vpx vulkan vxml watchdog wav wavpack web webkit webkit2 webp webrtc wfs wg-quick widescreen wikipedia winbind wma wmf wmp wxwidgets wxwindows x264 x265 xattr xcb xcomposite xface xft xine xinerama xml xmlrpc xmltv xorg xosd xpm xrandr xrender xscreensaver xsettings xsl xslt xterm xulrunner xvfb xvid xvmc xz yaepg yahoo yahoo-geo zenmap zeroconf zimg zink zip zlib zrtp zstd zvbai zvbi" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 rdrand sha 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64 pc emu" INPUT_DEVICES="evdev roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10 python3_12" QEMU_SOFTMMU_TARGETS="arm ppc ppc64 x86_64" QEMU_USER_TARGETS="arm ppc ppc64 x86_64" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Gary E. Miller 2023-12-25 19:45:58 UTC
Created attachment 880305 [details]
build log

build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-25 19:47:21 UTC
I think grub-2.12 switched from libsdl->libsdl2, but the ebuild doesn't reflect this...
Comment 3 Gary E. Miller 2023-12-25 19:55:31 UTC
Merry Christmas Sam!
Comment 4 Gary E. Miller 2023-12-25 20:24:22 UTC
Build fine this way:

USE=-sdl emerge -uDNa grub

I don't even remember why I have the global sdl flag set...
Comment 5 Larry the Git Cow gentoo-dev 2023-12-26 21:26:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=287b32c46ef4a274fe2ae132f5de1af413ffc84a

commit 287b32c46ef4a274fe2ae132f5de1af413ffc84a
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2023-12-25 20:55:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-26 21:24:12 +0000

    sys-boot/grub: Use libsdl2 instead of libsdl
    
    Solves this configure error with sdl enabled:
    
    checking for SDL2... yes
    configure: error: SDL support for grub-emu was explicitly requested but can't be compiled (disabled by sdl2)
    
    Also fix the fuse dependency to use fuse:3.
    
    Bug: https://bugs.gentoo.org/880377
    Bug: https://bugs.gentoo.org/920699
    Signed-off-by: Zac Medico <zmedico@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/34475
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-boot/grub/{grub-2.12.ebuild => grub-2.12-r1.ebuild} | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-26 21:35:06 UTC
merry christmas!