grub-2.02-r3 ebuild fails to add --disable-grub-emu-sdl to configure when sdl use-flag is disabled, and if the build process finds libSDL.so, it'll create a hidden dependency on libsdl by linking the shared object into grub-emu binary: [ebuild U ] sys-boot/grub-2.02-r3:2/2.02-r3::gentoo [2.02-r1:2/2.02-r1::gentoo] USE="device-mapper efiemu -debug -doc -fonts (-libzfs) -mount -multislot -nls -sdl -static (-test) -themes -truetype" GRUB_PLATFORMS="efi-32 ef ... /var/tmp/portage/sys-boot/grub-2.02-r3/work/grub-2.02/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/grub-2.02-r3 --htmldir=/usr/share/doc/grub-2.02-r3/html --disable-werror --program-prefix= --libdir=/usr/lib --htmldir=/usr/share/doc/grub-2.02-r3/html --disable-mm-debug --enable-device-mapper --disable-grub-mount --disable-nls --disable-grub-themes --disable-grub-mkfont --disable-libzfs --with-platform=efi # ldd /usr/bin/grub-emu | grep -i sdl libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xf7e94000)
Created attachment 572192 [details] emerge --info
Created attachment 572194 [details] build log
2.5 months passed, grub-2.02-r4 has been marked as stable, still having the same issue
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88796cf18e3cf94ca3c23f694eaffd90cf217a19 commit 88796cf18e3cf94ca3c23f694eaffd90cf217a19 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2019-06-26 18:37:27 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-06-26 18:37:27 +0000 sys-boot/grub: drop debug USE flag, fix sdl dependency Closes: https://bugs.gentoo.org/682830 Package-Manager: Portage-2.3.67_p12, Repoman-2.3.14_p7 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-boot/grub/grub-2.02-r4.ebuild | 9 +++------ sys-boot/grub/grub-2.04_rc1.ebuild | 9 +++------ sys-boot/grub/grub-9999.ebuild | 9 +++------ 3 files changed, 9 insertions(+), 18 deletions(-)