Gentoo Archives: gentoo-user

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