Gentoo Archives: gentoo-dev

From: Luca Barbato <lu_zero@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 2/2] kernel-install.eclass: Warn about linux-firmware in pkg_pretend()
Date: Wed, 17 Jun 2020 14:41:55
Message-Id: 924b8a97-4da8-66fd-16d7-4afb00ec7e90@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 2/2] kernel-install.eclass: Warn about linux-firmware in pkg_pretend() by Ulrich Mueller
1 On 17/06/2020 12:57, Ulrich Mueller wrote:
2 >>>>>> On Wed, 17 Jun 2020, Michał Górny wrote:
3 >
4 >> +# @FUNCTION: kernel-install_pkg_pretend
5 >> +# @DESCRIPTION:
6 >> +# Check for missing optional dependencies and output warnings.
7 >> +kernel-install_pkg_pretend() {
8 >> + debug-print-function ${FUNCNAME} "${@}"
9 >> +
10 >> + if ! has_version -d sys-kernel/linux-firmware; then
11 >> + ewarn "sys-kernel/linux-firmware not found installed on your system."
12 >> + ewarn "This package provides various firmware files that may be needed"
13 >> + ewarn "for your hardware to work. If in doubt, it is recommended"
14 >> + ewarn "to pause or abort the build process and install it before"
15 >> + ewarn "resuming."
16 >> +
17 >> + if use initramfs; then
18 >> + elog
19 >> + elog "If you decide to install linux-firmware later, you can rebuild"
20 >> + elog "the initramfs via issuing a command equivalent to:"
21 >> + elog
22 >> + elog " emerge --config ${CATEGORY}/${PN}"
23 >> + fi
24 >> + fi
25 >> +}
26 >
27 > Should we really warn about a package that (in its default
28 > configuration) can only be installed if the user accepts non-free
29 > licenses?
30
31 Yes, since those binary blobs are needed to have functioning hardware.
32
33 lu