From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14178 invoked by uid 1002); 12 Nov 2002 19:42:10 -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 14169 invoked from network); 12 Nov 2002 19:42:09 -0000 Content-Type: text/plain; charset="iso-8859-15" From: Peter Ruskin To: gentoo-dev@gentoo.org Date: Tue, 12 Nov 2002 19:41:12 +0000 User-Agent: KMail/1.4.3 References: <200211101414.03562.aoyu93@dsl.pipex.com> <200211121353.13778.aoyu93@dsl.pipex.com> In-Reply-To: <200211121353.13778.aoyu93@dsl.pipex.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200211121941.12792.aoyu93@dsl.pipex.com> Subject: Re: [gentoo-dev] Testing and reporting ~x86 X-Archives-Salt: 50482c7e-4a9d-4d30-9004-7a76ad86c0a2 X-Archives-Hash: 34cb2c5d75dcd68cdbadfe336fd846c6 On Tuesday 12 Nov 2002 13:53, Peter Ruskin wrote: > On Sunday 10 Nov 2002 14:14, Peter Ruskin wrote: > > I have 3 working Gentoo systems on different partitions on my main box: > > 1.2, 1.4beta and "unstable" 1.4 with ACCEPT_KEYWORDS="~x86". > > > > Is there an easy way to grep all "~x86" installed builds, so that I can > > report to bugzilla those that "work for me"? > > > > I mainly work with 'unstable' and check/report with bugzilla on those > > that fail. However, with a (roughly) daily `emerge rsync` and `emerge -u > > world`, it's easy to miss those that work and I can see it would be > > helpful to report those. > > > Well, I now have a script that seems to work. As you can see I'm not good > at sed, unlike José Fonseca who crafts the stuff beautifully :-) > > I'd be grateful for any comments/corrections/ > > ------------------------------------------------------------ > #!/bin/sh > # > # list-tested > # > # Lists ebuilds installed with 'ACCEPT_KEYWORDS="~x86"' > # > # Peter Ruskin > > WORLD=/var/cache/edb/world > SORTEDWORLD=$(mktemp /tmp/$0.XXXXXX) > sort -u $WORLD > $SORTEDWORLD > > TESTING=$(mktemp /tmp/$0.XXXXXX) Correction to sed bit follows... # grep -r '~x86' /var/cache/edb/dep/* | cut -d/ -f6-7 | cut -d: -f1 | cut -d. # -f1 | cut -d- -f1-3 | sed s/-[0-9].*/\ / > $TESTING grep -r '~x86' /var/cache/edb/dep/* | cut -d/ -f6-7 | cut -d: -f1 | cut -d. -f1 | cut -d- -f1-3 | sed s/-[0-9].*//g > $TESTING > SORTEDTESTING=$(mktemp /tmp/$0.XXXXXX) > sort -u $TESTING > $SORTEDTESTING > > echo "These ebuilds were installed using 'ACCEPT_KEYWORDS=\"~x86\"':" > comm -12 $SORTEDWORLD $SORTEDTESTING > > rm $SORTEDWORLD $TESTING $SORTEDTESTING > ------------------------------------------------------------ > > Peter -- Gentoo Linux 1.4 (Portage 2.0.43 (default-x86-1.4, gcc-3.2, glibc-2.3.1-r1,2.3.1-r2)). KDE: 3.0.4 Qt: 3.0.5 AMD Athlon(tm) XP 1900+ 512MB. Kernel: 2.4.19-win4lin. GCC 3.2 Linux user #275590 (http://counter.li.org/). up 7:39. -- gentoo-dev@gentoo.org mailing list