On 17/06/2020 12:57, Ulrich Mueller wrote:
On Wed, 17 Jun 2020, Michał Górny wrote:
+# @FUNCTION: kernel-install_pkg_pretend
+# @DESCRIPTION:
+# Check for missing optional dependencies and output warnings.
+kernel-install_pkg_pretend() {
+ debug-print-function ${FUNCNAME} "${@}"
+
+ if ! has_version -d sys-kernel/linux-firmware; then
+ ewarn "sys-kernel/linux-firmware not found installed on your
system."
+ ewarn "This package provides various firmware files that may be
needed"
+ ewarn "for your hardware to work. If in doubt, it is
recommended"
+ ewarn "to pause or abort the build process and install it
before"
+ ewarn "resuming."
+
+ if use initramfs; then
+ elog
+ elog "If you decide to install linux-firmware later, you can
rebuild"
+ elog "the initramfs via issuing a command equivalent
to:"
+ elog
+ elog " emerge --config ${CATEGORY}/${PN}"
+ fi
+ fi
+}
Should we really warn about a package that (in its default
configuration) can only be installed if the user accepts non-free
licenses?
Yes, since those binary blobs are needed to have functioning hardware.
lu