From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12555 invoked by uid 1002); 2 Jun 2003 11:36:39 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 10143 invoked from network); 2 Jun 2003 11:36:39 -0000 From: Peter Ruskin Organization: Retired To: gentoo-dev@gentoo.org Date: Mon, 2 Jun 2003 12:36:36 +0100 User-Agent: KMail/1.5.2 References: <3ED931EC.2060303@cc.wwu.edu> <200306012027.54598.aoyu93@dsl.pipex.com> <20030602011954.GA1350%chutz@gg3.net> In-Reply-To: <20030602011954.GA1350%chutz@gg3.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306021236.36538.aoyu93@dsl.pipex.com> Subject: Re: [gentoo-dev] using more than one kernel X-Archives-Salt: 81157967-0039-449b-9a50-9916643d2434 X-Archives-Hash: 3dfbeee395e93f999a60d9f3fee38d10 On Monday 02 Jun 2003 02:19, Georgi Georgiev wrote: > As sometimes I am not sure what packages need reemerging, I use this > script: > > for i in `grep -l ' /lib/modules/' /var/db/pkg/*/*/CONTENTS`; do > ii=`dirname $i`; > cat $ii/COUNTER; echo " $ii"; > done | sort -n | cut -f5,6 -d/ | sed -e 's/^/>=/' Hey, I like that Georgi. I now have: #!/bin/sh # /usr/local/bin/kernel-deps # list the ebuilds that depend on kernel version. # suggested by Georgi Georgiev for i in `grep -l ' /lib/modules/' /var/db/pkg/*/*/CONTENTS`; do ii=`dirname $i`; cat $ii/COUNTER || continue; echo " $ii"; done | sort -n | cut -f5,6 -d/ | sed -e 's/^/>=/' I'm not sure what COUNTER does, but the "|| continue" skips files that don't have it. The tail end of my build-kernel scripts now looks like this: AUTOCLEAN="no" ACCEPT_KEYWORDS="~x86" kernel-deps | xargs emerge ...and it works a treat (getting over my misspelled "lm_sensors" Thanks -- gentoo-dev@gentoo.org mailing list