Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682830 - sys-boot/grub-2.02-r4 builds binary with libSDL.so even though sdl use-flag is disabled
Summary: sys-boot/grub-2.02-r4 builds binary with libSDL.so even though sdl use-flag i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-07 16:12 UTC by Laszlo Valko
Modified: 2019-06-26 18:37 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,8.25 KB, text/plain)
2019-04-07 16:16 UTC, Laszlo Valko
Details
build log (grub.build.log.xz,284.90 KB, application/octet-stream)
2019-04-07 16:17 UTC, Laszlo Valko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Valko 2019-04-07 16:12:55 UTC
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)
Comment 1 Laszlo Valko 2019-04-07 16:16:43 UTC
Created attachment 572192 [details]
emerge --info
Comment 2 Laszlo Valko 2019-04-07 16:17:15 UTC
Created attachment 572194 [details]
build log
Comment 3 Laszlo Valko 2019-06-26 10:38:40 UTC
2.5 months passed, grub-2.02-r4 has been marked as stable, still having the same issue
Comment 4 Larry the Git Cow gentoo-dev 2019-06-26 18:37:49 UTC
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(-)