From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from corwin.easynet.fr (smarthost160.mail.easynet.fr [212.180.1.160]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j45FXRNb019559 for ; Thu, 5 May 2005 15:33:28 GMT Received: from easyconnect2121138-64.clients.easynet.fr ([212.11.38.64] helo=eusebe) by corwin.easynet.fr with esmtp (Exim 4.34) id 1DTiLz-0003GN-8R for gentoo-dev@lists.gentoo.org; Thu, 05 May 2005 17:33:31 +0200 Date: Thu, 5 May 2005 17:33:16 +0200 From: Thomas de Grenier de Latour To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] module-rebuild Message-ID: <20050505173316.05fe8e10@eusebe> In-Reply-To: <1115192074.30481.15.camel@localhost> References: <1115161238.13653.5.camel@localhost> <20050504062454.GA6533@ols-dell.gg3.net> <1115192074.30481.15.camel@localhost> Organization: Fasmz X-Mailer: Sylpheed-Claws 1.9.6cvs47 (GTK+ 2.6.7; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: e6d44c5d-81b8-42db-8fa6-c50feb6b082e X-Archives-Hash: adf15c8b784b91b4c0949d8a9ea568e9 On Wed, 04 May 2005 08:34:34 +0100 John Mylchreest 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. -- gentoo-dev@gentoo.org mailing list