Gentoo Archives: gentoo-user

From: "Arttu V." <arttuv69@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can you rewrite this 1996 qfile command?
Date: Mon, 18 Jan 2010 18:34:21
Message-Id: fecdbac61001181034tc7830d4oe672881b41fe72d@mail.gmail.com
In Reply to: Re: [gentoo-user] Can you rewrite this 1996 qfile command? by Grant
1 On 1/18/10, Grant <emailgrant@×××××.com> wrote:
2 >>> I've hit a bug that won't let me start an xfce4 session. I think it
3 >>> was caused by upgrading glibc, and it is pretty well described in this
4 >>> nearly 4-year-old bug:
5 >>>
6 >>> http://bugs.gentoo.org/125909
7 >>>
8 >>> The solution is presented as:
9 >>>
10 >>> qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile
11 >>>
12 >>> but I get:
13 >>>
14 >>> qlist: invalid option -- 'l'
15 >>> qlist: invalid option -- '['
16 >>>
17 >>> Removing the -l fixes the first invalid option, but I don't know how
18 >>> to fix the second. Does anyone know how to rewrite this command so it
19 >>> will work?
20 >>
21 >>
22 >> I can't see how you can get those errors, unless you have a broken qlist
23 >> that
24 >> is outputing something dodgy from the "qlist -ICv"
25 >>
26 >> If it persists, copy-paste your input and the output from your terminal
27 >> into a
28 >> mail. Or run
29 >>
30 >> qlist -o $(qlist -ICv) | less
31 >>
32 >> and examine that closely for errors
33 >
34 > I was making a transcription error before, but after correcting it, it
35 > still doesn't work:
36 >
37 > # qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile
38 > Usage: qfile <opts> <filename> : list all pkgs owning files
39 >
40 > Options: -[ef:m:oRx:vqChV]
41 > -e, --exact * Exact match
42 > -f, --from <arg> * Read arguments from file <arg> ("-" for stdin)
43 > -m, --max-args <arg> * Treat from file arguments by groups of <arg>
44 > (defaults to 5000)
45 > -o, --orphans * List orphan files
46 > -R, --root-prefix * Assume arguments are already prefixed by $ROOT
47 > -x, --exclude <arg> * Don't look in package <arg>
48 > -v, --verbose * Make a lot of noise
49 > -q, --quiet * Tighter output; suppress warnings
50 > -C, --nocolor * Don't output color
51 > -h, --help * Print this help and exit
52 > -V, --version * Print version and exit
53 >
54 > Does anyone know what might be wrong?
55
56 Solar's one-liner is likely working perfectly here. The one-liner just
57 doesn't find any binaries with the ancient SSP symbol, and thus args
58 for qfile are empty -- leading into qfile printing its usage.
59
60 Everything seems to be just fine there, so we might need to back up to
61 the point where you decided that this bug was a match for your
62 problem. Did you get the same error? From which program exactly? Have
63 you installed binaries that are not in portage's installed files'
64 lists?
65
66 --
67 Arttu V.

Replies

Subject Author
Re: [gentoo-user] Can you rewrite this 1996 qfile command? Grant <emailgrant@×××××.com>
Re: [gentoo-user] Can you rewrite this 1996 qfile command? Neil Bothwick <neil@××××××××××.uk>