* [gentoo-user] Can you rewrite this 1996 qfile command? @ 2010-01-18 3:59 Grant 2010-01-18 6:49 ` Alan McKinnon 0 siblings, 1 reply; 8+ messages in thread From: Grant @ 2010-01-18 3:59 UTC (permalink / raw To: Gentoo mailing list I've hit a bug that won't let me start an xfce4 session. I think it was caused by upgrading glibc, and it is pretty well described in this nearly 4-year-old bug: http://bugs.gentoo.org/125909 The solution is presented as: qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile but I get: qlist: invalid option -- 'l' qlist: invalid option -- '[' Removing the -l fixes the first invalid option, but I don't know how to fix the second. Does anyone know how to rewrite this command so it will work? - Grant ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 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 0 siblings, 1 reply; 8+ messages in thread From: Alan McKinnon @ 2010-01-18 6:49 UTC (permalink / raw To: gentoo-user; +Cc: Grant On Monday 18 January 2010 05:59:14 Grant wrote: > I've hit a bug that won't let me start an xfce4 session. I think it > was caused by upgrading glibc, and it is pretty well described in this > nearly 4-year-old bug: > > http://bugs.gentoo.org/125909 > > The solution is presented as: > > qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile > > but I get: > > qlist: invalid option -- 'l' > qlist: invalid option -- '[' > > Removing the -l fixes the first invalid option, but I don't know how > to fix the second. Does anyone know how to rewrite this command so it > will work? I can't see how you can get those errors, unless you have a broken qlist that is outputing something dodgy from the "qlist -ICv" If it persists, copy-paste your input and the output from your terminal into a mail. Or run qlist -o $(qlist -ICv) | less and examine that closely for errors -- alan dot mckinnon at gmail dot com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 2010-01-18 6:49 ` Alan McKinnon @ 2010-01-18 15:04 ` Grant 2010-01-18 15:12 ` Grant 2010-01-18 18:34 ` Arttu V. 0 siblings, 2 replies; 8+ messages in thread From: Grant @ 2010-01-18 15:04 UTC (permalink / raw To: Gentoo mailing list >> I've hit a bug that won't let me start an xfce4 session. I think it >> was caused by upgrading glibc, and it is pretty well described in this >> nearly 4-year-old bug: >> >> http://bugs.gentoo.org/125909 >> >> The solution is presented as: >> >> qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile >> >> but I get: >> >> qlist: invalid option -- 'l' >> qlist: invalid option -- '[' >> >> Removing the -l fixes the first invalid option, but I don't know how >> to fix the second. Does anyone know how to rewrite this command so it >> will work? > > > I can't see how you can get those errors, unless you have a broken qlist that > is outputing something dodgy from the "qlist -ICv" > > If it persists, copy-paste your input and the output from your terminal into a > mail. Or run > > qlist -o $(qlist -ICv) | less > > and examine that closely for errors I was making a transcription error before, but after correcting it, it still doesn't work: # 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 2010-01-18 15:04 ` Grant @ 2010-01-18 15:12 ` Grant 2010-01-18 18:08 ` Alan McKinnon 2010-01-18 18:34 ` Arttu V. 1 sibling, 1 reply; 8+ messages in thread From: Grant @ 2010-01-18 15:12 UTC (permalink / raw To: Gentoo mailing list >>> I've hit a bug that won't let me start an xfce4 session. I think it >>> was caused by upgrading glibc, and it is pretty well described in this >>> nearly 4-year-old bug: >>> >>> http://bugs.gentoo.org/125909 >>> >>> The solution is presented as: >>> >>> qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile >>> >>> but I get: >>> >>> qlist: invalid option -- 'l' >>> qlist: invalid option -- '[' >>> >>> Removing the -l fixes the first invalid option, but I don't know how >>> to fix the second. Does anyone know how to rewrite this command so it >>> will work? >> >> >> I can't see how you can get those errors, unless you have a broken qlist that >> is outputing something dodgy from the "qlist -ICv" >> >> If it persists, copy-paste your input and the output from your terminal into a >> mail. Or run >> >> qlist -o $(qlist -ICv) | less >> >> and examine that closely for errors > > I was making a transcription error before, but after correcting it, it > still doesn't work: > > # 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 2010-01-18 15:12 ` Grant @ 2010-01-18 18:08 ` Alan McKinnon 0 siblings, 0 replies; 8+ messages in thread From: Alan McKinnon @ 2010-01-18 18:08 UTC (permalink / raw To: gentoo-user; +Cc: Grant 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 2010-01-18 15:04 ` Grant 2010-01-18 15:12 ` Grant @ 2010-01-18 18:34 ` Arttu V. 2010-01-18 19:21 ` Grant 2010-01-19 0:29 ` Neil Bothwick 1 sibling, 2 replies; 8+ messages in thread From: Arttu V. @ 2010-01-18 18:34 UTC (permalink / raw To: gentoo-user On 1/18/10, Grant <emailgrant@gmail.com> wrote: >>> I've hit a bug that won't let me start an xfce4 session. I think it >>> was caused by upgrading glibc, and it is pretty well described in this >>> nearly 4-year-old bug: >>> >>> http://bugs.gentoo.org/125909 >>> >>> The solution is presented as: >>> >>> qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile >>> >>> but I get: >>> >>> qlist: invalid option -- 'l' >>> qlist: invalid option -- '[' >>> >>> Removing the -l fixes the first invalid option, but I don't know how >>> to fix the second. Does anyone know how to rewrite this command so it >>> will work? >> >> >> I can't see how you can get those errors, unless you have a broken qlist >> that >> is outputing something dodgy from the "qlist -ICv" >> >> If it persists, copy-paste your input and the output from your terminal >> into a >> mail. Or run >> >> qlist -o $(qlist -ICv) | less >> >> and examine that closely for errors > > I was making a transcription error before, but after correcting it, it > still doesn't work: > > # 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? Solar's one-liner is likely working perfectly here. The one-liner just doesn't find any binaries with the ancient SSP symbol, and thus args for qfile are empty -- leading into qfile printing its usage. Everything seems to be just fine there, so we might need to back up to the point where you decided that this bug was a match for your problem. Did you get the same error? From which program exactly? Have you installed binaries that are not in portage's installed files' lists? -- Arttu V. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 2010-01-18 18:34 ` Arttu V. @ 2010-01-18 19:21 ` Grant 2010-01-19 0:29 ` Neil Bothwick 1 sibling, 0 replies; 8+ messages in thread From: Grant @ 2010-01-18 19:21 UTC (permalink / raw To: gentoo-user >>>> I've hit a bug that won't let me start an xfce4 session. I think it >>>> was caused by upgrading glibc, and it is pretty well described in this >>>> nearly 4-year-old bug: >>>> >>>> http://bugs.gentoo.org/125909 >>>> >>>> The solution is presented as: >>>> >>>> qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile >>>> >>>> but I get: >>>> >>>> qlist: invalid option -- 'l' >>>> qlist: invalid option -- '[' >>>> >>>> Removing the -l fixes the first invalid option, but I don't know how >>>> to fix the second. Does anyone know how to rewrite this command so it >>>> will work? >>> >>> >>> I can't see how you can get those errors, unless you have a broken qlist >>> that >>> is outputing something dodgy from the "qlist -ICv" >>> >>> If it persists, copy-paste your input and the output from your terminal >>> into a >>> mail. Or run >>> >>> qlist -o $(qlist -ICv) | less >>> >>> and examine that closely for errors >> >> I was making a transcription error before, but after correcting it, it >> still doesn't work: >> >> # 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? > > Solar's one-liner is likely working perfectly here. The one-liner just > doesn't find any binaries with the ancient SSP symbol, and thus args > for qfile are empty -- leading into qfile printing its usage. > > Everything seems to be just fine there, so we might need to back up to > the point where you decided that this bug was a match for your > problem. Did you get the same error? From which program exactly? Have > you installed binaries that are not in portage's installed files' > lists? Thanks guys, I'm just going to emerge -e world and move on. :) - Grant ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Can you rewrite this 1996 qfile command? 2010-01-18 18:34 ` Arttu V. 2010-01-18 19:21 ` Grant @ 2010-01-19 0:29 ` Neil Bothwick 1 sibling, 0 replies; 8+ messages in thread From: Neil Bothwick @ 2010-01-19 0:29 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 434 bytes --] On Mon, 18 Jan 2010 20:34:04 +0200, Arttu V. wrote: > Solar's one-liner is likely working perfectly here. The one-liner just > doesn't find any binaries with the ancient SSP symbol, and thus args > for qfile are empty -- leading into qfile printing its usage. Does this mean using the --no-run-if-empty option with xargs will avoid the problem? -- Neil Bothwick Tagline stealing is the sincerest form of flattery. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-01-19 0:29 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2010-01-18 18:34 ` Arttu V. 2010-01-18 19:21 ` Grant 2010-01-19 0:29 ` Neil Bothwick
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox