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 ) id 1SjZxf-0005Yb-1x for garchives@archives.gentoo.org; Tue, 26 Jun 2012 17:53:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91BE9E0D0D; Tue, 26 Jun 2012 17:53:40 +0000 (UTC) Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by pigeon.gentoo.org (Postfix) with ESMTP id EBA9DE0D02 for ; Tue, 26 Jun 2012 17:51:59 +0000 (UTC) Received: by qadb17 with SMTP id b17so2030096qad.19 for ; Tue, 26 Jun 2012 10:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4Bd9wjIpHXdR0EFE4HHcRJyxkEkF6l8f6fohfyRcpDM=; b=C5LcyWFrrtrJks8rdw9ObQkB6NZygJXFDko7JnubaE4VM5fW5mzI26PqBVol2C3K6N LG9wpEAjssZCL0yb+Q4Fdn6QYZAfF/Uho1vNzdLSCIP9p6Di5L+gPsW9Z5dDaCd82puK ZO6/3gK8RAMLGQXq75yEI+146KnvHzPDutpXXvNvOYXWbm+Q4czuG0IxFCFlx060VLqT m87lQDd5kZQ0+5f1MIMGerHkS6HbPnKX857GMNpTN78aIzXk1wTpPfU0szuMO4PwDcpI djV34Gq2bd11ILo32C5oOnPSkgK2A4EXd5HuPcBSHiMdgUCpNgZv7Von8xLRlit+qejI S4cg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.229.135.84 with SMTP id m20mr7456766qct.89.1340733119365; Tue, 26 Jun 2012 10:51:59 -0700 (PDT) Received: by 10.229.190.196 with HTTP; Tue, 26 Jun 2012 10:51:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jun 2012 10:51:59 -0700 Message-ID: Subject: Re: [gentoo-user] Re: eselect binutils list not matching From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6e71d2c1-fc80-4b1b-9770-826afa2c3c08 X-Archives-Hash: 177675498b55d80c57fa45a70a3db1b0 On Sun, Jun 24, 2012 at 3:18 PM, walt wrote: > On 06/24/2012 11:27 AM, Mark Knecht wrote: >> Hi, >> =C2=A0 =C2=A0One of my machines is giving an undesired response in esele= ct: >> >> c2stable ~ # eselect binutils list >> !!! Error: Pattern =C2=A0does not match any installed version of binutil= s! >> exiting > > I would start by comparing /usr/share/eselect/* between the bad machine a= nd one of the good ones. =C2=A0I'd probably use scp -r to copy the bad mach= ine's directory to /tmp on the good machine and use diff -r to do the compa= rison. > (I just discovered sftp, which is another easy way to copy things.) > > I love to hear a better suggestion about how to compare two different mac= hines, though. =C2=A0You could set up an nfs mount of one machine on the ot= her, but that's too complicated for my very limited needs. > > > > Hi Walt, It isn't anything like fsck, etc. The machine is healthy in all other respects (that I know of and have tested) and everything is actually working. It's only the list option that's failing. eselect actually knows that binutils is set correctly. It just won't like it. c2stable ~ # eselect binutils show x86_64-pc-linux-gnu-2.21.1 c2stable ~ # eselect binutils set x86_64-pc-linux-gnu-2.21.1 !!! Error: Profile "x86_64-pc-linux-gnu-2.21.1" is already active! exiting c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting c2stable ~ # Actually, I don't think it's that hard to compare files or directories that are supposed to be consistent on various machines. That's what rsync does to decide what to sync. The trick is getting the options correct which is usually my downfall. Anyway, in this case I compare the /usr/share/eselect/modules directory on my local (failing) machine with one of the other machines here in the house. In the first compare I look at the binutils file specifically which passes. In the second compare I look at everything in the modules directory which shows one mismatch which in this case is that the remote machine doesn't actually have a wxwidgets.eselect file. I cannot tell that until I log into the remote machine to determine the difference. mark@c2stable ~ $ rsync --dry-run -crv /usr/share/eselect/modules/binutils.eselect mark@k2:/usr/share/eselect/modules/binutils.eselect Password: sending incremental file list sent 55 bytes received 12 bytes 19.14 bytes/sec total size is 7796 speedup is 116.36 (DRY RUN) mark@c2stable ~ $ rsync --dry-run -crv /usr/share/eselect/modules/* mark@k2:/usr/share/eselect/modules Password: sending incremental file list wxwidgets.eselect sent 1095 bytes received 15 bytes 246.67 bytes/sec total size is 147613 speedup is 132.98 (DRY RUN) mark@c2stable ~ $ A little bit of Google suggests you can diff the files themselves using something like: diff <(ssh -n me@testserver cat /home/me/source/worksforme.php) <(ssh -n me@clientserver cat /home/me/source/worksforme.php) I have not tested this but suspect it probably works fine once you get everything right. HTH you or someone in the future, Mark