Gentoo Archives: gentoo-dev

From: Edward Duffy <eduffy@××××××××××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] common ebuild mistakes
Date: Mon, 26 May 2003 18:20:22
Message-Id: 1053973218.8263.28.camel@vader
In Reply to: Re: [gentoo-dev] common ebuild mistakes by Georgi Georgiev
1 d'oh! I feel stupid. So it's about 20-25% of the ebuild that use that
2 depend on it...still seems kind of low.
3
4 On Mon, 2003-05-26 at 14:12, Georgi Georgiev wrote:
5 > On 26/05/2003 at 13:18:44(-0400), Edward Duffy used 0.8Kbytes just to say:
6 > > On the one ebuild I've sumbitted, the dev that committed it added a line
7 > > for
8 > > DEPEND="virtual/glibc"
9 > >
10 > > What wouldn't depend on glibc, isn't that a given? A quick scan
11 > > through the portage directory turns up:
12 > > # find /usr/portage/ -iname '*.ebuild' | xargs grep "virtual/glibc"
13 > > | wc -l
14 > > 1982
15 > > # find /usr/portage/ -iname '*.ebuild' | xargs grep -v "virtual/glibc"
16 > > | wc -l
17 > > 406821
18 >
19 > This gives you the number of LINES that do not have virtual/glibc, not the
20 > files that don't. You'd want something like:
21 >
22 > # find /usr/portage -iname '*.ebuild' | xargs -i sh -c 'grep -q "virtual/glibc" {} || echo {}'
23 >
24 > However, since you already have the number of packages that DO have the line -
25 > you only need to substract it from the total number of ebuilds.
26 >
27 > # find /usr/portage -iname '*.ebuild' | wc -l
28 > 8587
29
30
31 --
32 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] common ebuild mistakes George Shapovalov <george@g.o>