public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Cc: Grant <emailgrant@gmail.com>
Subject: Re: [gentoo-user] Can you rewrite this 1996 qfile command?
Date: Mon, 18 Jan 2010 20:08:00 +0200	[thread overview]
Message-ID: <201001182008.00804.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <49bf44f11001180712y7c03d09bi6d85152d0b1dce6b@mail.gmail.com>

On Monday 18 January 2010 17:12:41 Grant wrote:

> > # qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf -  -F%F#s | xargs qfile
> > Usage: qfile <opts> <filename> : list all pkgs owning files
> >
> > Options: -[ef:m:oRx:vqChV]
> >  -e, --exact          * Exact match
> >  -f, --from     <arg> * Read arguments from file <arg> ("-" for stdin)
> >  -m, --max-args <arg> * Treat from file arguments by groups of <arg>
> > (defaults to 5000)
> >  -o, --orphans        * List orphan files
> >  -R, --root-prefix    * Assume arguments are already prefixed by $ROOT
> >  -x, --exclude  <arg> * Don't look in package <arg>
> >  -v, --verbose        * Make a lot of noise
> >  -q, --quiet          * Tighter output; suppress warnings
> >  -C, --nocolor        * Don't output color
> >  -h, --help           * Print this help and exit
> >  -V, --version        * Print version and exit
> >
> > Does anyone know what might be wrong?
> >
> > - Grant
> 
> I think the problem above is that -I isn't a current option of qfile,
> but removing it produces the error I originally posted about:
> 
> qlist: invalid option -- '['
> 
> - Grant
 
It does look like your qlist is out of date and giving you a --help summary 
which the outer qlist tries to interpret, and fails.

If you can't update the package qlist comes from, you might get by with 
replacing the inner qlist with equery. It gives output like this:

$ equery --quiet list '*'                        
app-admin/apache-tools-2.2.14                                  
app-admin/apg-2.3.0b-r4                                        
app-admin/empower-9999                                         


which looks the same as the output from qlist -ICv:

$ qlist -ICv | head -n3
app-admin/apache-tools-2.2.14
app-admin/apg-2.3.0b-r4
app-admin/empower-9999

This requires gentoolkit-0.3* which is ~


-- 
alan dot mckinnon at gmail dot com



  reply	other threads:[~2010-01-18 18:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18  3:59 [gentoo-user] Can you rewrite this 1996 qfile command? Grant
2010-01-18  6:49 ` Alan McKinnon
2010-01-18 15:04   ` Grant
2010-01-18 15:12     ` Grant
2010-01-18 18:08       ` Alan McKinnon [this message]
2010-01-18 18:34     ` Arttu V.
2010-01-18 19:21       ` Grant
2010-01-19  0:29       ` Neil Bothwick

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=201001182008.00804.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=emailgrant@gmail.com \
    --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