* [gentoo-dev] Testing and reporting ~x86
@ 2002-11-10 14:14 Peter Ruskin
2002-11-12 13:53 ` Peter Ruskin
0 siblings, 1 reply; 3+ messages in thread
From: Peter Ruskin @ 2002-11-10 14:14 UTC (permalink / raw
To: gentoo-dev
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.
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 53 min.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Testing and reporting ~x86
2002-11-10 14:14 [gentoo-dev] Testing and reporting ~x86 Peter Ruskin
@ 2002-11-12 13:53 ` Peter Ruskin
2002-11-12 19:41 ` Peter Ruskin
0 siblings, 1 reply; 3+ messages in thread
From: Peter Ruskin @ 2002-11-12 13:53 UTC (permalink / raw
To: gentoo-dev
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.
>
> Peter
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 <aoyu93@dsl.pipex.com>
WORLD=/var/cache/edb/world
SORTEDWORLD=$(mktemp /tmp/$0.XXXXXX)
sort -u $WORLD > $SORTEDWORLD
TESTING=$(mktemp /tmp/$0.XXXXXX)
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
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 1:48.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Testing and reporting ~x86
2002-11-12 13:53 ` Peter Ruskin
@ 2002-11-12 19:41 ` Peter Ruskin
0 siblings, 0 replies; 3+ messages in thread
From: Peter Ruskin @ 2002-11-12 19:41 UTC (permalink / raw
To: gentoo-dev
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 <aoyu93@dsl.pipex.com>
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-12 19:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-10 14:14 [gentoo-dev] Testing and reporting ~x86 Peter Ruskin
2002-11-12 13:53 ` Peter Ruskin
2002-11-12 19:41 ` Peter Ruskin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox