On Mon, Sep 27, 2021 at 1:56 PM Rich Freeman <ri...@gentoo.org> wrote: > > On Mon, Sep 27, 2021 at 1:44 PM Robin H. Johnson <robb...@gentoo.org> wrote: > > > > I think we need to strip out a lot of the crap about trying to detect > > things in the stuff being built, and reduce the check to the simplest > > possible form: > > $ time zgrep -w CONFIG_PACKET /proc/config.gz > > CONFIG_PACKET=y > > > > Sure, just please don't strip out the part that actually does what you > just did - check the running kernel. I don't think we should assume > that the user has the configured+prepared sources for a kernel just > lying around all the time. I don't build in /usr/src (which is > apparently discouraged by upstream anyway), so /proc/config.gz is > really the only reliable indication of how things are setup. Well, > that or a config file in /boot which I'm sure others don't use (but > make install puts it there).
I like the idea of a stripped-down implementation that just checks the running kernel config when packages get installed. I think that probably means creating a new eclass though, or moving some of the current complexity into linux-mod.eclass.