From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-106335-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NWwQb-00079U-3I
	for garchives@archives.gentoo.org; Mon, 18 Jan 2010 18:34:21 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 934C9E0BA6;
	Mon, 18 Jan 2010 18:34:05 +0000 (UTC)
Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228])
	by pigeon.gentoo.org (Postfix) with ESMTP id 53FFBE0BA6
	for <gentoo-user@lists.gentoo.org>; Mon, 18 Jan 2010 18:34:05 +0000 (UTC)
Received: by bwz28 with SMTP id 28so450260bwz.29
        for <gentoo-user@lists.gentoo.org>; Mon, 18 Jan 2010 10:34:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:content-type;
        bh=ANNyRW4AO/1tVXQTxgDZFbFk/PZF8itJRd0I45DMF8Q=;
        b=LX4KtPBqzIul2vpp+wXZUv3jUctfK3lspMgy39cRgUQ5AB6xNV5eEOmwSjEXlCI6rn
         4udJPUwqe6FC4IKZNDR+6WmsZmkb0r6V8OaeuQgdxb6JWo4U8u2WXXmS4EBLXiFBrvq8
         nTaDBCnI26QvVOWJZ8gsKd0QH5ATNqzsPPZRI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=Z5FdagBKY5cWYswsdPqyasU2O3rgrxTITNchaJoMoioIA+IWoksZu3WBuMKpj2z2Da
         HLSijd5YT3rKyJYrJ9KL++OcPaRoepObW/kgEXkEf7ckPXmZr9g0C2RwIX9SDjU2rtCb
         xHkh07te+qN3ylcjEttdrZDTLmpqAMjBFeFXU=
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.204.48.206 with SMTP id s14mr3604145bkf.177.1263839644508; 
	Mon, 18 Jan 2010 10:34:04 -0800 (PST)
In-Reply-To: <49bf44f11001180704x6e4bbfam9a28d100d6b731a9@mail.gmail.com>
References: <49bf44f11001171959q54e8a080o1702253c15a495b2@mail.gmail.com>
	 <201001180849.16433.alan.mckinnon@gmail.com>
	 <49bf44f11001180704x6e4bbfam9a28d100d6b731a9@mail.gmail.com>
Date: Mon, 18 Jan 2010 20:34:04 +0200
Message-ID: <fecdbac61001181034tc7830d4oe672881b41fe72d@mail.gmail.com>
Subject: Re: [gentoo-user] Can you rewrite this 1996 qfile command?
From: "Arttu V." <arttuv69@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
X-Archives-Salt: 745886c3-c9df-4e3c-b054-17682ce1d6a5
X-Archives-Hash: fd04e6fa0c98e204e5d68cb133456870

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.