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 1ESKxd-0004Df-Sg
	for garchives@archives.gentoo.org; Wed, 19 Oct 2005 20:54:58 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9JKpgvv029871;
	Wed, 19 Oct 2005 20:51:42 GMT
Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30])
	by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9JKmD05003589
	for <gentoo-dev@lists.gentoo.org>; Wed, 19 Oct 2005 20:48:13 GMT
Received: from [83.218.6.121] (helo=dogmatix.willow.local)
	by smtp.gentoo.org with esmtpa (Exim 4.43)
	id 1ESKtS-0001HB-SP
	for gentoo-dev@lists.gentoo.org; Wed, 19 Oct 2005 20:50:39 +0000
Subject: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade
From: John Mylchreest <johnm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
In-Reply-To: <9f90e8bf0510191158pc96100dl@mail.gmail.com>
References: <9f90e8bf0510190632g2f95328ah@mail.gmail.com>
	 <20051019133630.GA30454@dmz.brixandersen.dk>
	 <200510191028.43618.electronerd@monolith3d.com>
	 <9f90e8bf0510191156w22be32bej@mail.gmail.com>
	 <9f90e8bf0510191158pc96100dl@mail.gmail.com>
Content-Type: text/plain
Date: Wed, 19 Oct 2005 21:44:58 +0100
Message-Id: <1129754698.26382.13.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.4.1 
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 8e9aff1c-95fa-43db-938b-25a5458f1753
X-Archives-Hash: a0249964cc093b734307f725de5e3645


> 2005/10/19, Herbert G. Fischer <herbert.fischer@gmail.com>:
>         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.

module-rebuild shouldn't really have this task. it isn't the right place
to do it. It will of course quite happily do what you need it to do,
rebuild anything which installs a kernel module from portage.
>         
>         2005/10/19, John Myers <electronerd@monolith3d.com>

>                 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
>                 
I don't particular feel comfortable doing this. the only place I can
actually see this being of some use is with the pkg_config since an
ebuild postinst is far too soon, and patching up Kbuild to do this is
far too intrusive (let alone high maintenance).

A possibility (although I wouldnt like to promote it through portage)
would be to have a wrapper/helper script which would do all of this for
you. build-kernel or some such. But then... whats genkernel for right?

- John


-- 
Role:            Gentoo Linux Kernel Lead
Gentoo Linux:    http://www.gentoo.org
Public Key:      gpg --recv-keys 9C745515     
Key fingerprint: A0AF F3C8 D699 A05A EC5C  24F7 95AA 241D 9C74 5515
Web:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9C745515

-- 
gentoo-dev@gentoo.org mailing list