Gentoo Archives: gentoo-user

From: Michael Schreckenbauer <grimlog@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Plasma-runtime compilation problems
Date: Wed, 24 Aug 2011 21:47:28
Message-Id: 1566742.sbbejHjnHW@pc
In Reply to: Re: [gentoo-user] Re: Plasma-runtime compilation problems by Alex Schuster
1 Am Mittwoch, 24. August 2011, 23:27:46 schrieb Alex Schuster:
2 > walt writes:
3 > > On 08/24/2011 01:05 AM, Yohan Pereira wrote:
4 > > > equery belongs /usr/include/plasma/service.h
5 > > >
6 > > > if you dont have the equery program install it by emerging
7 > > >
8 > > > app-portage/gentoolkit
9 > >
10 > > Seems there is always an alternate way of answering any portage
11 > > question.
12 > > I know "qfile service.h" will do the same thing (emerge portage-utils).
13 > >
14 > > I'll bet there are still more ways that I don't know about yet. Anyone
15 > > have a different trick to do the same thing?
16 >
17 > wonko@weird ~ $ grep -r /usr/include/plasma/service.h /var/db/pkg/
18 > /var/db/pkg/kde-base/kdelibs-4.7.0-r1/CONTENTS:obj
19 > /usr/include/plasma/service.h e9ddea9052c900f1f87c57025a0f36f0 1308840546
20 >
21 > Emulating qfile as a shell function for nicer output:
22 >
23 > wonko@weird ~ $ myqfile()
24 >
25 > > {
26 > >
27 > > grep -r "$1" /var/db/pkg | sed 's#/CONTENTS:.*##g'
28 > >
29 > > }
30 >
31 > wonko@weird ~ $ myqfile /usr/include/plasma/service.h
32 > /var/db/pkg/kde-base/kdelibs-4.7.0-r1
33
34 I would use find and grep -H instead of grep -r
35
36 On my system your version greps in
37 ~ $ find /var/db/pkg | wc -l
38 33791
39
40 files, while only
41
42 ~ $find /var/db/pkg -name "CONTENTS" | wc -l
43 1182
44
45 are relevant for the problem at hand ;)
46
47 > Wonko
48
49 Regards,
50 Michael

Replies

Subject Author
Re: [gentoo-user] Re: Plasma-runtime compilation problems Michael Schreckenbauer <grimlog@×××.de>