On Wed, 04 May 2005 08:34:34 +0100 John Mylchreest <[EMAIL PROTECTED]> wrote:
> I thought about this, but not wanting to depend on gentoolkit > makes using equery for example a little awkward. > This, I'm sure isn't fully feature-rich yet - and something > like this will be the next addition to go in. > > On Wed, 2005-05-04 at 15:24 +0900, Georgi Georgiev wrote: > > > > I am not trying to shoot down your idea, but you could > > probably use something similar to automatically generate the > > list of packages to rebuild if the database is empty? > > I've uploaded here the script i use here to rebuild my modules: http://tdegreni.free.fr/gentoo/emodules It's in bash too, and i think there are some functions that could help for implementing the feature you are talking about: - get_kernel_KV() gives the $KV value corresponding to a kernel sources tree. - get_cpv_KV() gives the $KV value from the saved environment of an installed package. - list_cpv_to_build() gives the lists of packages providing modules that were not last built using the right $KV. It doesn't use equery neither, but rather direct access to the ${ROOT}var/db/pkg. Feel free to copy/past whatever you find useful (there's probably no legal header, but it's gpl in my mind). -- TGL. -- [email protected] mailing list
