From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 16:30:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1935437B40F for ; Mon, 14 Jul 2003 16:30:07 -0700 (PDT) Received: from serv1.wallnet.com (server1.wallnet.com [208.225.162.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04BAA43F75 for ; Mon, 14 Jul 2003 16:30:06 -0700 (PDT) (envelope-from timothyk@wallnet.com) Received: (from root@localhost) by serv1.wallnet.com (8.11.5/8.11.5) id h6ENU5A80783; Mon, 14 Jul 2003 19:30:05 -0400 (EDT) (envelope-from timothyk@wallnet.com) Received: from 10.0.1.9 (mts-126.wallnet.com [208.225.162.58]) by serv1.wallnet.com (8.11.5/8.11.5av) with ESMTP id h6ENU1M80773; Mon, 14 Jul 2003 19:30:02 -0400 (EDT) (envelope-from timothyk@wallnet.com) From: Tim Kellers To: Jonathan Date: Mon, 14 Jul 2003 19:29:59 -0400 User-Agent: KMail/1.5.2 References: <20030713083946.H7537-100000@serv1.wallnet.com> <200307141430.13839.timothyk@wallnet.com> <3F12FC20.6040207@sirtis.org.uk> In-Reply-To: <3F12FC20.6040207@sirtis.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307141929.59141.timothyk@wallnet.com> X-Virus-Scanned: by AMaViS perl-11 cc: questions@freebsd.org Subject: Re: make install, portupgrade, etc broken X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 23:30:07 -0000 On Monday 14 July 2003 02:53 pm, Jonathan wrote: > Tim Kellers wrote: > > Just tried it again (cut and paste, not a typescipt output) > > > > mts-128# pkg_delete /var/db/pkg/nulib-3.25/ > > mts-128# pkg_info /usr/ports/archivers/nulib/ > > pkg_info: can't find package 'nulib' installed or in a file! > > mts-128# cd /var/db/pkg > > mts-128# ls -la nulib* > > ls: No match. > > mts-128# > > > > It seemed to work and didn't return an error > > > > On the broken fileserver: > > > > su-2.03# pkg_delete /var/db/pkg/nmap-2.53/ > > su-2.03# whereis nmap > > nmap: /usr/ports/security/nmap > > su-2.03# pkg_info security/nmap > > pkg_info: can't find package 'nmap' installed or in a file! > > su-2.03# > > What's wrong with your "broken" fileserver? You deinstall a package, you > use the whereis command and then you run pkg_info on something that > doesn't exist. That's perfectly correct. > > Here's mine: > > -su-2.05b# whereis nmap > nmap: /usr/local/bin/nmap /usr/local/man/man1/nmap.1.gz > /usr/ports/security/nmap > -su-2.05b# pkg_info security/nmap > pkg_info: can't find package 'nmap' installed or in a file! > -su-2.05b# pkg_info nmap > pkg_info: can't find package 'nmap' installed or in a file! > -su-2.05b# pkg_info nmap-3.30 > Information for nmap-3.30: > > Comment: > Port scanning utility for large networks > [snip out the rest of the description] > > Your broken stuff doesn't tell us anything, really. What does "pkg_info" > show you about everything you have installed? > > Have happens in you try "portinstall nmap" which doesn't require a > specific version? > > - J > > P.S. Why are you not just using the package names for your pkg commands? > I think we've got 2 threads mixed here, but to review. I cvsupped July 11 and did a make buildworld, make buildkernel KERNCON=CHANGLING, reboot make installworld, mergemaster on 3 different boxes. All is/was well on 2 of the 3 boxes, but on the third any/every make install or portupgrade [filename] errors out with Error Code 1 right after make install checks for a previous installation. The option FORCE_PKG_REGISTER="yes'" allows the installation to completesuccessfully, the portupgrade -m FORCE_PKG_REGISTER="yes'" switch also succeeds. I NFS mounted /usr/ports from the broken fileserver on a laptop (4.8-STABLE from same cvs updated sources) and I can make install or portupgrade with no errors at all. pkg_info -q -O some/port on the laptop returns the package name of the installed port pkg_info -q -O some/port on the fileserver returns: pkg_info: package cvsupd-bin-16.1 has no origin recorded pkg_info: package ghostscript-6.01_1 has no origin recorded pkg_info: /var/db/pkg/jdk-tutorial-1.1.8/+CONTENTS: No such file or directory Something in my /var/db/pkg/files is seriously hosed, I suspect, and I'm trying to figure out how to un-hose it. And since this didn't happen until immediately after a cvsupdate and build, I'm curious about the cause. As far as why I wasn't using just the package names for my pkg commands: I was until about Sunday morning when I just started trying some other approaches to see if I could shake something loose. Thanks, Tim Kellers CPE/NJIT