From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 10:40:36 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 DECA616A4CE for ; Tue, 9 Dec 2003 10:40:35 -0800 (PST) Received: from catseye.mine.nu (d142-179-7-219.bchsia.telus.net [142.179.7.219]) by mx1.FreeBSD.org (Postfix) with SMTP id 89EAE43D2D for ; Tue, 9 Dec 2003 10:40:33 -0800 (PST) (envelope-from catseye@catseye.mine.nu) Received: (qmail 351 invoked by uid 1001); 9 Dec 2003 18:41:50 -0000 Date: Tue, 9 Dec 2003 10:41:50 -0800 From: Chris Pressey To: "Richard Shea" Message-Id: <20031209104150.7971c505.cpressey@catseye.mine.nu> In-Reply-To: <20031209021438.7115B7F419@server2.messagingengine.com> References: <20031208223913.CB7E875E7F@server2.messagingengine.com> <20031208145333.2f0dce5d.cpressey@catseye.mine.nu> <20031208154039.53419c3c.cpressey@catseye.mine.nu> <20031209021438.7115B7F419@server2.messagingengine.com> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: CVSUPIT pkg_add 90% good/10% strange 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: Tue, 09 Dec 2003 18:40:36 -0000 On Tue, 09 Dec 2003 15:14:38 +1300 "Richard Shea" wrote: > > On Mon, 8 Dec 2003 15:40:39 -0800, "Chris Pressey" > said: > > On Tue, 09 Dec 2003 12:00:15 +1300 > > "Richard Shea" wrote: > > [...] > > > ===> Generating temporary packing list > > > ** Missing package files for cvsupit-3.1. > > > *** Error code 1 > > > > > > ... mean the machine is in a good state or a bad state (.. ah, the > > > eternal question :-) > > > > Hm, I would say a bad state, but not *very* bad. Looks like cvsupit > > is partially installed? You might be able to fix it up by running > > > > pkg_delete cvsupit-3.1 > > > > which should delete any files that were installed by the cvsupit > > package (and possibly give you some warnings when trying to delete > > ones that weren't.) > > > That's a good idea, I hadn't thought of it. However strange stuff > persists because when I tried that I got ... > > trinidad# pkg_delete cvsupit-3.1 > pkg_delete: no such package 'cvsupit-3.1' installed > > ... - that's even though it just ran ! I then started looking in to > the relevant ports directory and this is what I saw ... > > trinidad# pwd > /usr/ports/net/cvsupit > trinidad# ls > work > trinidad# cd work > trinidad# ls -l > total 0 > -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .build_done.cvsupit-3.1 > -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .configure_done.cvsupit-3.1 > -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .extract_done.cvsupit-3.1 > -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .patch_done.cvsupit-3.1 > trinidad# > > ... I take it those files are used as a form of logging ? Sort of. They're little 'cookies' that help indicate which phases have been completed thus far, to the ports 'make' scripts. > So on the > one hand it's 'build_done' but on the other hand pkg_delete doesn't > know about the package ! Not too surprising; if the install had completed sucessfully, there'd be a '.install_done.cvsupit-3.1' file there too. > Just did a ... > > trinidad# find / -name "*vsupi*" -print > > ... and didn't find anything elsewhere in the system either ... > > All in all a bit of a mystery - anyone else fancy having a go at > explaining what might have happened or what it all means ;-) Most likely, it built cvsupit sucessfully, then went to install it, but found something it didn't like, so it stopped there. Chances are it stopped before it installed anything - especially in light of your find command. In which case, your system isn't in a bad state after all. But if you want to be *really* certain, have a look at /usr/ports/net/cvsupit/pkg-plist. It should contain a list of all the files the port wanted to install. You can search for each of them in your system, and delete them if you find them. Note that the files listed in pkg-plist are missing the installation prefix, usually "/usr/local/", so you have to tack that on yourself mentally before looking for them. Also, there might be filenames with variables like %%THIS%% in it, in which case you'll have to look in the Makefile to see what those variables would have been replaced with. > regards > > richard. HTH, -Chris