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 1SjeHr-00034j-UC for garchives@archives.gentoo.org; Tue, 26 Jun 2012 22:31:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C48E2E06B3; Tue, 26 Jun 2012 22:30:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E6503E0128 for ; Tue, 26 Jun 2012 22:29:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 7DAAD1B460B for ; Tue, 26 Jun 2012 22:29:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -2.103 X-Spam-Level: X-Spam-Status: No, score=-2.103 tagged_above=-999 required=5.5 tests=[AWL=-1.094, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, FSL_RCVD_USER=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s8niJOenoamL for ; Tue, 26 Jun 2012 22:29:19 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6AA8F1B45F1 for ; Tue, 26 Jun 2012 22:29:18 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SjeG0-0003r0-Pi for gentoo-user@gentoo.org; Wed, 27 Jun 2012 00:29:12 +0200 Received: from adsl-69-234-198-108.dsl.irvnca.pacbell.net ([69.234.198.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jun 2012 00:29:12 +0200 Received: from w41ter by adsl-69-234-198-108.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jun 2012 00:29:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt Subject: [gentoo-user] Re: eselect binutils list not matching Date: Tue, 26 Jun 2012 15:28:57 -0700 Message-ID: References: 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-198-108.dsl.irvnca.pacbell.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: X-Archives-Salt: bf5ce5bd-30eb-4437-b9a8-f25d1e18a369 X-Archives-Hash: 139100f1e892e73d37a14f33e3381ce0 On 06/26/2012 10:51 AM, Mark Knecht wrote: > On Sun, Jun 24, 2012 at 3:18 PM, walt wrote: >> On 06/24/2012 11:27 AM, Mark Knecht wrote: >>> Hi, >>> One of my machines is giving an undesired response in eselect: >>> >>> c2stable ~ # eselect binutils list >>> !!! Error: Pattern does not match any installed version of binutils! >>> exiting >> >> I would start by comparing /usr/share/eselect/* between the bad machine and one of the good ones. I'd probably use scp -r to copy the bad machine's directory to /tmp on the good machine and use diff -r to do the comparison. >> (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 machines, though. You could set up an nfs mount of one machine on the other, 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. I'd never have thought of those two ideas. Thanks for the tip. /usr/bin/eselect is just a shellscript, so adding the line 'set -x' near the top of the script may give you a clue about what part of 'list' it doesn't understand :)