public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] module-rebuild
@ 2005-05-03 23:00 John Mylchreest
  2005-05-04  4:15 ` Paul Varner
  2005-05-04  6:24 ` Georgi Georgiev
  0 siblings, 2 replies; 5+ messages in thread
From: John Mylchreest @ 2005-05-03 23:00 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

Hi All,

Can I please introduce into the tree sys-kernel/module-rebuild.
This tracks linux-mod installed kernel modules, and also gives you the
ability to remove/add/toggle the list of modules to rebuild.

Basically.. following a kernel upgrade running: module-update rebuild,
will install all modules installed via portage.

If you experience any problems, please file a bug at bugzilla. Likewise,
please file a bug and assign it to johnm@gentoo.org if you have any
ideas about the tool.

On a side-note, give it an hour before you sync and merge this thing :)

Regards,
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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] module-rebuild
  2005-05-03 23:00 [gentoo-dev] module-rebuild John Mylchreest
@ 2005-05-04  4:15 ` Paul Varner
  2005-05-04  6:24 ` Georgi Georgiev
  1 sibling, 0 replies; 5+ messages in thread
From: Paul Varner @ 2005-05-04  4:15 UTC (permalink / raw
  To: gentoo-dev

On Wed, 2005-05-04 at 00:00 +0100, John Mylchreest wrote:
> Can I please introduce into the tree sys-kernel/module-rebuild.
> This tracks linux-mod installed kernel modules, and also gives you the
> ability to remove/add/toggle the list of modules to rebuild.
> 
> Basically.. following a kernel upgrade running: module-update rebuild,
> will install all modules installed via portage.
> 
> If you experience any problems, please file a bug at bugzilla. Likewise,
> please file a bug and assign it to johnm@gentoo.org if you have any
> ideas about the tool.

Thanks!

I'm installing and playing with it as I type.  The code looks a lot
cleaner than the code I had plagiarized from revdep-rebuild to do the
same thing.

Regards,
Paul
-- 
My Gentoo stuff: http://varnerfamily.org/pvarner/gentoo
-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] module-rebuild
  2005-05-03 23:00 [gentoo-dev] module-rebuild John Mylchreest
  2005-05-04  4:15 ` Paul Varner
@ 2005-05-04  6:24 ` Georgi Georgiev
  2005-05-04  7:34   ` John Mylchreest
  1 sibling, 1 reply; 5+ messages in thread
From: Georgi Georgiev @ 2005-05-04  6:24 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

maillog: 04/05/2005-00:00:38(+0100): John Mylchreest types
> Hi All,
> 
> Can I please introduce into the tree sys-kernel/module-rebuild.
> This tracks linux-mod installed kernel modules, and also gives you the
> ability to remove/add/toggle the list of modules to rebuild.
> 
> Basically.. following a kernel upgrade running: module-update rebuild,
> will install all modules installed via portage.
> 
> If you experience any problems, please file a bug at bugzilla. Likewise,
> please file a bug and assign it to johnm@gentoo.org if you have any
> ideas about the tool.

I personally think that the following is sufficient:

# emerge -pv $(equery b /lib/modules | sed -e 's:^:>=:' )

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-sound/alsa-driver-1.0.9_rc2  -debug -doc +oss -pcmcia 0 kB 
[ebuild   R   ] media-video/nvidia-kernel-1.0.7174  -pcmcia 0 kB 
[ebuild   R   ] sys-fs/cdfs-2.6.3a  0 kB [1] 

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/portage-chutz
 [2] /usr/portage-maildir

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?

-- 
(*   Georgi Georgiev   (* YOW!! What should the entire human race DO?? (*
*)    chutz@gg3.net    *) Consume a fifth of CHIVAS REGAL, ski NUDE    *)
(*  +81(90)2877-8845   (* down MT. EVEREST, and have a wild SEX        (*
*) ------------------- *) WEEKEND!                                     *)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] module-rebuild
  2005-05-04  6:24 ` Georgi Georgiev
@ 2005-05-04  7:34   ` John Mylchreest
  2005-05-05 15:33     ` Thomas de Grenier de Latour
  0 siblings, 1 reply; 5+ messages in thread
From: John Mylchreest @ 2005-05-04  7:34 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1896 bytes --]

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:
> maillog: 04/05/2005-00:00:38(+0100): John Mylchreest types
> > Hi All,
> > 
> > Can I please introduce into the tree sys-kernel/module-rebuild.
> > This tracks linux-mod installed kernel modules, and also gives you the
> > ability to remove/add/toggle the list of modules to rebuild.
> > 
> > Basically.. following a kernel upgrade running: module-update rebuild,
> > will install all modules installed via portage.
> > 
> > If you experience any problems, please file a bug at bugzilla. Likewise,
> > please file a bug and assign it to johnm@gentoo.org if you have any
> > ideas about the tool.
> 
> I personally think that the following is sufficient:
> 
> # emerge -pv $(equery b /lib/modules | sed -e 's:^:>=:' )
> 
> These are the packages that I would merge, in order:
> 
> Calculating dependencies ...done!
> [ebuild   R   ] media-sound/alsa-driver-1.0.9_rc2  -debug -doc +oss -pcmcia 0 kB 
> [ebuild   R   ] media-video/nvidia-kernel-1.0.7174  -pcmcia 0 kB 
> [ebuild   R   ] sys-fs/cdfs-2.6.3a  0 kB [1] 
> 
> Total size of downloads: 0 kB
> Portage overlays:
>  [1] /usr/portage-chutz
>  [2] /usr/portage-maildir
> 
> 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?
> 
-- 
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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] module-rebuild
  2005-05-04  7:34   ` John Mylchreest
@ 2005-05-05 15:33     ` Thomas de Grenier de Latour
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas de Grenier de Latour @ 2005-05-05 15:33 UTC (permalink / raw
  To: gentoo-dev

On Wed, 04 May 2005 08:34:34 +0100
John Mylchreest <johnm@gentoo.org> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-05 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 23:00 [gentoo-dev] module-rebuild John Mylchreest
2005-05-04  4:15 ` Paul Varner
2005-05-04  6:24 ` Georgi Georgiev
2005-05-04  7:34   ` John Mylchreest
2005-05-05 15:33     ` Thomas de Grenier de Latour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox