From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1ESJ8O-0001PK-Br for garchives@archives.gentoo.org; Wed, 19 Oct 2005 18:57:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9JItKUP024208; Wed, 19 Oct 2005 18:55:20 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9JIrajT018026 for ; Wed, 19 Oct 2005 18:53:37 GMT Received: by zproxy.gmail.com with SMTP id x7so102017nzc for ; Wed, 19 Oct 2005 11:56:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=HlauN0XJ/gBWU4kQCFp7SInH+hjh0EL0ePizPObJTft1z+X7LQZHDUYpD5rZlJfcecbtUS5C24KhNHEJBFSciEpnrIvyvXM5TVhzVfw8l8B+b8pIbvaI5XQInlHo2/0+3d27S9p7P7Ry+R6kCVwz1BGjbUsbaElLRFQ2ZOIWsrE= Received: by 10.36.71.3 with SMTP id t3mr811262nza; Wed, 19 Oct 2005 11:56:01 -0700 (PDT) Received: by 10.36.147.10 with HTTP; Wed, 19 Oct 2005 11:56:01 -0700 (PDT) Message-ID: <9f90e8bf0510191156w22be32bej@mail.gmail.com> Date: Wed, 19 Oct 2005 16:56:01 -0200 From: "Herbert G. Fischer" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade In-Reply-To: <200510191028.43618.electronerd@monolith3d.com> 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: multipart/alternative; boundary="----=_Part_7418_13809676.1129748161699" References: <9f90e8bf0510190632g2f95328ah@mail.gmail.com> <20051019133630.GA30454@dmz.brixandersen.dk> <200510191028.43618.electronerd@monolith3d.com> X-Archives-Salt: 79419f4d-1dba-4853-9bef-6c98124f1186 X-Archives-Hash: ef48e1bd310b53d2001bc977ba549a57 ------=_Part_7418_13809676.1129748161699 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Perhaps the modules-update could be extended to detect new kernels and warn users or automatically update modules. This could also be documented in Gentoo docs since this is a basic and common problem that almost every Gentoo user may have. Thanks for the patch! 2005/10/19, John Myers : > > On Wednesday 19 October 2005 06:36, Henrik Brix Andersen wrote: > > On Wed, Oct 19, 2005 at 11:32:19AM -0200, Herbert G. Fischer wrote: > [snip] > > > - Patch kernel's "make" to warn at the end of "make modules_install" > [snip] > > I think you should check out sys-kernel/module-rebuild > Actually, a combination of these might not be a bad idea. > > Something like this (not tested): > > if [ -n "$(which module-rebuild 2>/dev/null)" ] ; then > if [ -n "${AUTO_MODULE_REBUILD}" ] ; then > echo "Rebuilding external modules:" > module-rebuild ${MODULE_REBUILD_OPTIONS} rebuild > else > echo "You might want to rebuild the following external modules:" > module-rebuild -XC list | tail -n +2 > echo > echo "You can use module-rebuild to do that." > echo "If you want to have your external modules automatically rebuilt" > echo "when making a kernel's modules_install target, set" > echo "AUTO_MODULE_REBUILD in your environment. You can set" > echo "MODULE_REBUILD_OPTIONS to options to pass to module-rebuild." > echo "(-X for example)" > fi > else > echo "You might want to emerge sys-kernel/module-rebuild to keep track of= " > echo "kernel modules you've installed with emerge" > fi > > > ------=_Part_7418_13809676.1129748161699 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Perhaps the modules-update could be extended to detect new kernels and warn users or automatically update modules. This could also be documented in Gentoo docs since this is a basic and common problem that almost every Gentoo user may have.

Thanks for the patch!

2005/10/19, J= ohn Myers <electronerd@mon= olith3d.com>:
On Wednesday 19 October 2005 06:36, Henrik Brix Andersen wrote:
> On = Wed, Oct 19, 2005 at 11:32:19AM -0200, Herbert G. Fischer wrote:
[snip]<= br>> > - Patch kernel's "make" to warn at the end of "= make modules_install"
[snip]
> I think you should check out sys-kernel/module-rebuildActually, a combination of these might not be a bad idea.

Somethin= g like this (not tested):

if [ -n "$(which module-rebuild 2>= /dev/null)" ] ; then
    if [ -n "${AUTO_MODULE_REBUILD}" ] ; = then
        echo "Rebuildi= ng external modules:"
       &nb= sp;module-rebuild ${MODULE_REBUILD_OPTIONS} rebuild
   &n= bsp;else
        echo "You = might want to rebuild the following external modules:"
        module-rebuild -XC list= | tail -n +2
        echo
&n= bsp;       echo "You can use module= -rebuild to do that."
       &nb= sp;echo "If you want to have your external modules automatically rebui= lt"
        echo "when making = a kernel's modules_install target, set"
    &nb= sp;   echo "AUTO_MODULE_REBUILD in your environment. Yo= u can set"
        echo &qu= ot;MODULE_REBUILD_OPTIONS to options to pass to module-rebuild."
        echo "(-X for exam= ple)"
    fi
else
    = ;echo "You might want to emerge sys-kernel/module-rebuild to keep trac= k of"
    echo "kernel modules you've inst= alled with emerge"
fi



------=_Part_7418_13809676.1129748161699-- -- gentoo-dev@gentoo.org mailing list