Gentoo Archives: gentoo-dev

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

Replies

Subject Author
Re: [gentoo-dev] common ebuild mistakes Edward Duffy <eduffy@××××××××××.edu>