1 |
>>>>> On Wed, 17 Jun 2020, Michał Górny wrote: |
2 |
|
3 |
> +# @FUNCTION: kernel-install_pkg_pretend |
4 |
> +# @DESCRIPTION: |
5 |
> +# Check for missing optional dependencies and output warnings. |
6 |
> +kernel-install_pkg_pretend() { |
7 |
> + debug-print-function ${FUNCNAME} "${@}" |
8 |
> + |
9 |
> + if ! has_version -d sys-kernel/linux-firmware; then |
10 |
> + ewarn "sys-kernel/linux-firmware not found installed on your system." |
11 |
> + ewarn "This package provides various firmware files that may be needed" |
12 |
> + ewarn "for your hardware to work. If in doubt, it is recommended" |
13 |
> + ewarn "to pause or abort the build process and install it before" |
14 |
> + ewarn "resuming." |
15 |
> + |
16 |
> + if use initramfs; then |
17 |
> + elog |
18 |
> + elog "If you decide to install linux-firmware later, you can rebuild" |
19 |
> + elog "the initramfs via issuing a command equivalent to:" |
20 |
> + elog |
21 |
> + elog " emerge --config ${CATEGORY}/${PN}" |
22 |
> + fi |
23 |
> + fi |
24 |
> +} |
25 |
|
26 |
Should we really warn about a package that (in its default |
27 |
configuration) can only be installed if the user accepts non-free |
28 |
licenses? |
29 |
|
30 |
I would think that even without such a warning, users will be well aware |
31 |
if some devices of their system will need additional firmware. Also, |
32 |
some people prefer the separate packages from sys-firmware which tend to |
33 |
be more lightweight (though I am aware that some of them may be |
34 |
considered legacy packages). |
35 |
|
36 |
Ulrich |