From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22450 invoked by uid 1002); 26 May 2003 18:20:22 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 18328 invoked from network); 26 May 2003 18:20:22 -0000 From: Edward Duffy To: gentoo-dev@gentoo.org In-Reply-To: <20030526181230.GA6277%chutz@gg3.net> References: <1053653430.29351.21.camel@mcvaio.liquidx.net> <1053969524.1775.21.camel@vader> <20030526181230.GA6277%chutz@gg3.net> Content-Type: text/plain Organization: Message-Id: <1053973218.8263.28.camel@vader> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4- Date: 26 May 2003 14:20:18 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-dev] common ebuild mistakes X-Archives-Salt: f09fc800-be01-4246-bb3b-005ce16c3f05 X-Archives-Hash: b4887887c5adb7aa397b10f50840d90c d'oh! I feel stupid. So it's about 20-25% of the ebuild that use that depend on it...still seems kind of low. On Mon, 2003-05-26 at 14:12, Georgi Georgiev wrote: > On 26/05/2003 at 13:18:44(-0400), Edward Duffy used 0.8Kbytes just to say: > > On the one ebuild I've sumbitted, the dev that committed it added a line > > for > > DEPEND="virtual/glibc" > > > > What wouldn't depend on glibc, isn't that a given? A quick scan > > through the portage directory turns up: > > # find /usr/portage/ -iname '*.ebuild' | xargs grep "virtual/glibc" > > | wc -l > > 1982 > > # find /usr/portage/ -iname '*.ebuild' | xargs grep -v "virtual/glibc" > > | wc -l > > 406821 > > This gives you the number of LINES that do not have virtual/glibc, not the > files that don't. You'd want something like: > > # find /usr/portage -iname '*.ebuild' | xargs -i sh -c 'grep -q "virtual/glibc" {} || echo {}' > > However, since you already have the number of packages that DO have the line - > you only need to substract it from the total number of ebuilds. > > # find /usr/portage -iname '*.ebuild' | wc -l > 8587 -- gentoo-dev@gentoo.org mailing list