From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QwLIG-00008g-2g for garchives@archives.gentoo.org; Wed, 24 Aug 2011 21:47:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 408D821C4AF; Wed, 24 Aug 2011 21:46:59 +0000 (UTC) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by pigeon.gentoo.org (Postfix) with SMTP id 7760D21C49E for ; Wed, 24 Aug 2011 21:43:10 +0000 (UTC) Received: (qmail invoked by alias); 24 Aug 2011 21:43:09 -0000 Received: from p5B0847E4.dip.t-dialin.net (EHLO pc.localnet) [91.8.71.228] by mail.gmx.net (mp050) with SMTP; 24 Aug 2011 23:43:09 +0200 X-Authenticated: #13997268 X-Provags-ID: V01U2FsdGVkX181CQY/8LA1LcG7h8EFfhIaDNo0SpfpHBW0GOu+Cc +R6QuawN3viN7D From: Michael Schreckenbauer To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Plasma-runtime compilation problems Date: Wed, 24 Aug 2011 23:43:09 +0200 Message-ID: <1566742.sbbejHjnHW@pc> User-Agent: KMail/4.7.0 (Linux/2.6.38-gentoo; KDE/4.7.0; x86_64; ; ) In-Reply-To: <3527996.D1Z9rZX3YL@weird> References: <1312947259.12939.4.camel@laptop.limeyworld> <3527996.D1Z9rZX3YL@weird> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Y-GMX-Trusted: 0 X-Archives-Salt: X-Archives-Hash: eabcd1f4e0dcd43e9fe76de121324ce8 Am Mittwoch, 24. August 2011, 23:27:46 schrieb Alex Schuster: > walt writes: > > On 08/24/2011 01:05 AM, Yohan Pereira wrote: > > > equery belongs /usr/include/plasma/service.h > > > > > > if you dont have the equery program install it by emerging > > > > > > app-portage/gentoolkit > > > > Seems there is always an alternate way of answering any portage > > question. > > I know "qfile service.h" will do the same thing (emerge portage-utils). > > > > I'll bet there are still more ways that I don't know about yet. Anyone > > have a different trick to do the same thing? > > wonko@weird ~ $ grep -r /usr/include/plasma/service.h /var/db/pkg/ > /var/db/pkg/kde-base/kdelibs-4.7.0-r1/CONTENTS:obj > /usr/include/plasma/service.h e9ddea9052c900f1f87c57025a0f36f0 1308840546 > > Emulating qfile as a shell function for nicer output: > > wonko@weird ~ $ myqfile() > > > { > > > > grep -r "$1" /var/db/pkg | sed 's#/CONTENTS:.*##g' > > > > } > > wonko@weird ~ $ myqfile /usr/include/plasma/service.h > /var/db/pkg/kde-base/kdelibs-4.7.0-r1 I would use find and grep -H instead of grep -r On my system your version greps in ~ $ find /var/db/pkg | wc -l 33791 files, while only ~ $find /var/db/pkg -name "CONTENTS" | wc -l 1182 are relevant for the problem at hand ;) > Wonko Regards, Michael