Gentoo Archives: gentoo-dev

From: Peter Ruskin <aoyu93@×××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Testing and reporting ~x86
Date: Tue, 12 Nov 2002 19:42:10
Message-Id: 200211121941.12792.aoyu93@dsl.pipex.com
In Reply to: Re: [gentoo-dev] Testing and reporting ~x86 by Peter Ruskin
1 On Tuesday 12 Nov 2002 13:53, Peter Ruskin wrote:
2 > On Sunday 10 Nov 2002 14:14, Peter Ruskin wrote:
3 > > I have 3 working Gentoo systems on different partitions on my main box:
4 > > 1.2, 1.4beta and "unstable" 1.4 with ACCEPT_KEYWORDS="~x86".
5 > >
6 > > Is there an easy way to grep all "~x86" installed builds, so that I can
7 > > report to bugzilla those that "work for me"?
8 > >
9 > > I mainly work with 'unstable' and check/report with bugzilla on those
10 > > that fail. However, with a (roughly) daily `emerge rsync` and `emerge -u
11 > > world`, it's easy to miss those that work and I can see it would be
12 > > helpful to report those.
13 > >
14 > Well, I now have a script that seems to work. As you can see I'm not good
15 > at sed, unlike José Fonseca who crafts the stuff beautifully :-)
16 >
17 > I'd be grateful for any comments/corrections/
18 >
19 > ------------------------------------------------------------
20 > #!/bin/sh
21 > #
22 > # list-tested
23 > #
24 > # Lists ebuilds installed with 'ACCEPT_KEYWORDS="~x86"'
25 > #
26 > # Peter Ruskin <aoyu93@×××××××××.com>
27 >
28 > WORLD=/var/cache/edb/world
29 > SORTEDWORLD=$(mktemp /tmp/$0.XXXXXX)
30 > sort -u $WORLD > $SORTEDWORLD
31 >
32 > TESTING=$(mktemp /tmp/$0.XXXXXX)
33
34 Correction to sed bit follows...
35 # grep -r '~x86' /var/cache/edb/dep/* | cut -d/ -f6-7 | cut -d: -f1 | cut -d.
36 # -f1 | cut -d- -f1-3 | sed s/-[0-9].*/\ / > $TESTING
37 grep -r '~x86' /var/cache/edb/dep/* | cut -d/ -f6-7 | cut -d: -f1 | cut -d.
38 -f1 | cut -d- -f1-3 | sed s/-[0-9].*//g > $TESTING
39
40 > SORTEDTESTING=$(mktemp /tmp/$0.XXXXXX)
41 > sort -u $TESTING > $SORTEDTESTING
42 >
43 > echo "These ebuilds were installed using 'ACCEPT_KEYWORDS=\"~x86\"':"
44 > comm -12 $SORTEDWORLD $SORTEDTESTING
45 >
46 > rm $SORTEDWORLD $TESTING $SORTEDTESTING
47 > ------------------------------------------------------------
48 >
49 > Peter
50
51 --
52 Gentoo Linux 1.4 (Portage 2.0.43 (default-x86-1.4, gcc-3.2,
53 glibc-2.3.1-r1,2.3.1-r2)). KDE: 3.0.4 Qt: 3.0.5
54 AMD Athlon(tm) XP 1900+ 512MB. Kernel: 2.4.19-win4lin. GCC 3.2
55 Linux user #275590 (http://counter.li.org/). up 7:39.
56
57
58 --
59 gentoo-dev@g.o mailing list