public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Schreckenbauer <grimlog@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Plasma-runtime compilation problems
Date: Wed, 24 Aug 2011 23:43:09 +0200	[thread overview]
Message-ID: <1566742.sbbejHjnHW@pc> (raw)
In-Reply-To: <3527996.D1Z9rZX3YL@weird>

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




  reply	other threads:[~2011-08-24 21:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  3:34 [gentoo-user] Plasma-runtime compilation problems Jeff Cranmer
2011-08-10 21:40 ` [gentoo-user] " walt
2011-08-10 22:04   ` Michael Schreckenbauer
2011-08-10 23:16     ` walt
2011-08-11  0:14       ` Jeff Cranmer
2011-08-11  0:55         ` Dale
2011-08-20 19:21           ` Jeff Cranmer
2011-08-21 18:55             ` walt
2011-08-24  0:28               ` Jeff Cranmer
2011-08-24  8:05                 ` Yohan Pereira
2011-08-24 21:12                   ` walt
2011-08-24 21:26                     ` Michael Schreckenbauer
2011-08-24 21:27                     ` Alex Schuster
2011-08-24 21:43                       ` Michael Schreckenbauer [this message]
2011-08-24 21:55                         ` Michael Schreckenbauer
2011-08-24 21:44                     ` Meik Frischke
2011-08-11  8:31       ` Michael Schreckenbauer
2011-08-12 19:22         ` walt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1566742.sbbejHjnHW@pc \
    --to=grimlog@gmx.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox