Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567388 - sys-boot/grub pulls in efibootmgr
Summary: sys-boot/grub pulls in efibootmgr
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 21:20 UTC by georg
Modified: 2015-12-17 16:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description georg 2015-12-02 21:20:16 UTC
I use mdev on an efi-64 system with grub.

systemd, udev and eudev is masked. 

Over grub_platforms_efi-* it pulls in efibootmgr which pulls in hwids. This requires udev useflag.

efibootmgr doesnt install any libs. 
equery f efibootmgr
 * Searching for efibootmgr ...
 * Contents of sys-boot/efibootmgr-0.12:
/usr
/usr/sbin
/usr/sbin/efibootmgr
/usr/share
/usr/share/doc
/usr/share/doc/efibootmgr-0.12
/usr/share/doc/efibootmgr-0.12/AUTHORS.bz2
/usr/share/doc/efibootmgr-0.12/ChangeLog.bz2
/usr/share/doc/efibootmgr-0.12/README.bz2
/usr/share/doc/efibootmgr-0.12/TODO.bz2
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/efibootmgr.8.bz2

grub doesnt link against it, so grub on efi should not depend on efibootmgr. 


emerge -auDNv @world

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    #] sys-fs/udev-216::gentoo  USE="acl firmware-loader kmod -doc -gudev -introspection (-selinux) -static-libs" 3.530 KiB
[ebuild   R    ] sys-apps/hwids-20150129::gentoo  USE="net pci udev* usb" 0 KiB
[ebuild  N     ] sys-fs/udev-init-scripts-27::gentoo  0 KiB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 3.530 KiB

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by virtual/libudev-215-r1::gentoo[-systemd]
# required by media-libs/mesa-10.6.9::local
# required by @selected
# required by @world (argument) 




eix hwids
[I] sys-apps/hwids
     Available versions:  20141010 ~20141110 ~20141214 ~20150107 20150129 ~20150417 ~20150421 ~20150421-r1 ~20150717 ~20150717-r1 **99999999 {+net +pci +udev +usb}
     Installed versions:  20150129(21:23:48 02.12.2015)(net pci usb -udev)
     Homepage:            https://github.com/gentoo/hwids
     Description:         Hardware (PCI, USB, OUI, IAB) IDs databases

gentoo-xbmc portage # equery d hwids
 * These packages depend on hwids:
sys-apps/pciutils-3.3.1 (sys-apps/hwids)
x11-libs/libpciaccess-0.13.3 (sys-apps/hwids)
gentoo-xbmc portage # equery d pciutils
 * These packages depend on pciutils:
sys-apps/vbetool-1.1 (sys-apps/pciutils)
sys-boot/efibootmgr-0.12 (sys-apps/pciutils)
gentoo-xbmc portage # equery d efibootmgr
 * These packages depend on efibootmgr:
sys-boot/grub-2.02_beta2-r7 (grub_platforms_efi-32 ? sys-boot/efibootmgr)
                            (grub_platforms_efi-64 ? sys-boot/efibootmgr) 



Reproducible: Always

Actual Results:  
grub_platforms_efi-64 requires efibootmgr

Expected Results:  
grub_platforms_efi-64 doesnt require efibootmgr

See https://forums.gentoo.org/viewtopic-p-7849244.html#7849244
Comment 1 Mike Gilbert gentoo-dev 2015-12-06 18:07:48 UTC
> Over grub_platforms_efi-* it pulls in efibootmgr which pulls in hwids. This requires udev useflag.

efibootmgr does not pull in hwids directly.

It does pull in pciutils, which pulls in hwids.

pciutils does not require hwids[udev]. Add USE="-udev" to make.conf if you don't want it.