On Wed, 17 Jun 2020 10:58:03 -0400 Mike Gilbert <flop...@gentoo.org> wrote:
> On Wed, Jun 17, 2020 at 7:42 AM Ulrich Mueller <u...@gentoo.org> wrote: > > > > >>>>> On Wed, 17 Jun 2020, Michał Górny wrote: > > > > > Can we please put users above silly politics? Gentoo 'does not > > > depend' on any non-free package to print the warning. If people > > > have hardware that requires non-free firmware, the least we can > > > do is point out where to get this firmware from. > > > > s/If/If and only if/ and I'll be fine with it. :) > > Are you proposing that the ebuild inspect the user's hardware and/or > kernel config before printing a warning? That sounds like a terrible > idea to me. Who is going to maintain the problematic hardware list? The kernel. Try 'modinfo -F firmware iwlwifi'. e.g. something like that could work: modinfo -F firmware $(lsmod | sed '1d' | awk '{print $1}') or if there is a need to be extra protective, iterate over all installed modules.