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 1ESJAp-0002Te-OH for garchives@archives.gentoo.org; Wed, 19 Oct 2005 19:00:28 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9JIvnPf001734; Wed, 19 Oct 2005 18:57:49 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9JIu4Ik023912 for ; Wed, 19 Oct 2005 18:56:04 GMT Received: by zproxy.gmail.com with SMTP id x7so102352nzc for ; Wed, 19 Oct 2005 11:58:30 -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=BH76tVwyOmVqozFKP2KIDe45En/ue7omK8Aw2931m5W4sNwW1L95j4Eo0z7foNzfuvElbCvUo5FoCkJ7bsDdOJ2iWxGKR5Ht9nlxYSBruSUYCXHWrTUpYRbx08QTXqrQDqL/bQFQCcKQ0tgSeiqL5+OTAP/ol+Qs1K3xp9rD0LU= Received: by 10.36.140.5 with SMTP id n5mr858865nzd; Wed, 19 Oct 2005 11:58:30 -0700 (PDT) Received: by 10.36.147.10 with HTTP; Wed, 19 Oct 2005 11:58:29 -0700 (PDT) Message-ID: <9f90e8bf0510191158pc96100dl@mail.gmail.com> Date: Wed, 19 Oct 2005 16:58:29 -0200 From: "Herbert G. Fischer" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade In-Reply-To: <9f90e8bf0510191156w22be32bej@mail.gmail.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_7450_25401174.1129748309997" References: <9f90e8bf0510190632g2f95328ah@mail.gmail.com> <20051019133630.GA30454@dmz.brixandersen.dk> <200510191028.43618.electronerd@monolith3d.com> <9f90e8bf0510191156w22be32bej@mail.gmail.com> X-Archives-Salt: 6d6392cc-9421-4125-886c-b4d1b89461d6 X-Archives-Hash: 8ef92830dfc803fad835e57e4b820f2f ------=_Part_7450_25401174.1129748309997 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Oops... sorry for the last e-mail. I confess that I did not read your code-piece before answering. It's exactly what I had in mind (as you saw). 2005/10/19, Herbert G. Fischer : > > 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_7450_25401174.1129748309997 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Oops... sorry for the last e-mail. I confess that I did not read your code-piece before answering. It's exactly what I had in mind (as you saw).

2005/10/19, Herbert G. Fische= r <herbert.fischer@gmail.co= m>:
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_7450_25401174.1129748309997-- -- gentoo-dev@gentoo.org mailing list