Gentoo Archives: gentoo-dev

From: Peter Ruskin <aoyu93@×××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] using more than one kernel
Date: Mon, 02 Jun 2003 11:36:39
Message-Id: 200306021236.36538.aoyu93@dsl.pipex.com
In Reply to: Re: [gentoo-dev] using more than one kernel by Georgi Georgiev
1 On Monday 02 Jun 2003 02:19, Georgi Georgiev wrote:
2 > As sometimes I am not sure what packages need reemerging, I use this
3 > script:
4 >
5 > for i in `grep -l ' /lib/modules/' /var/db/pkg/*/*/CONTENTS`; do
6 > ii=`dirname $i`;
7 > cat $ii/COUNTER; echo " $ii";
8 > done | sort -n | cut -f5,6 -d/ | sed -e 's/^/>=/'
9
10 Hey, I like that Georgi.
11
12 I now have:
13 #!/bin/sh
14 # /usr/local/bin/kernel-deps
15 # list the ebuilds that depend on kernel version.
16 # suggested by Georgi Georgiev <chutz@×××.net>
17
18 for i in `grep -l ' /lib/modules/' /var/db/pkg/*/*/CONTENTS`; do
19 ii=`dirname $i`;
20 cat $ii/COUNTER || continue; echo " $ii";
21 done | sort -n | cut -f5,6 -d/ | sed -e 's/^/>=/'
22
23 I'm not sure what COUNTER does, but the "|| continue" skips files that
24 don't have it.
25
26 The tail end of my build-kernel scripts now looks like this:
27 AUTOCLEAN="no" ACCEPT_KEYWORDS="~x86" kernel-deps | xargs emerge
28
29 ...and it works a treat (getting over my misspelled "lm_sensors"
30
31 Thanks
32
33
34 --
35 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] using more than one kernel Georgi Georgiev <chutz@×××.net>