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

Replies

Subject Author
Re: [gentoo-dev] Testing and reporting ~x86 Peter Ruskin <aoyu93@×××××××××.com>