From owner-freebsd-questions Fri Sep 15 18:38:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id 11BCB37B423 for ; Fri, 15 Sep 2000 18:38:51 -0700 (PDT) Received: from parish ([62.253.84.91]) by mta02-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000916023743.HRCD23965.mta02-svc.ntlworld.com@parish>; Sat, 16 Sep 2000 02:37:43 +0000 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8G1clK01297; Sat, 16 Sep 2000 02:38:47 +0100 (BST) (envelope-from mark) Date: Sat, 16 Sep 2000 02:38:47 +0100 From: Mark Ovens To: Doug Lee Cc: freebsd-questions@freebsd.org Subject: Re: Better way to update ports using pkg_version -c ? Message-ID: <20000916023847.B260@parish> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from dgl@visi.com on Fri, Sep 15, 2000 at 08:30:24PM -0500 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 15, 2000 at 08:30:24PM -0500, Doug Lee wrote: > pkg_version -c is a BIG help with updating ports, but I have noticed two > problems and wonder if there is a good way to fix them permanently. > > (1) Since no `make clean' is run, some ports' `make' processes just return > success immediately. The net result is that that port is summarily > deleted and not replaced. (I lost procmail while ago that way and had an > immediate mail delivery problem. :-) > > (2) I tried to solve (1) by adding `make clean' before `make' in each > appropriate line of the script generated by `pkg_version -c' . However, > `make clean' cleans all ports required by the port being cleaned > directly. This caused things like gettext to get rebuilt several times as > my ports were being updated, Huh, if the dependency had been previously built and installed then re-building the parent port would not cause the dependency to be rebuilt, unless the dependency was out of date (i.e. the current version was newer than the nstalled version). pkg_version does the right thing. > which is of course a major waste of time. I > could of course move all the `make clean's to the top of the script, but I > wonder if there's a version of `make clean' for ports which does not > descend into dependency ports when cleaning. Presumably, dependency ports > would not need to be rebuilt at all anyway, or they'd show up in the > `pkg_version -c' script directly. > > Thanks in advance for any suggestions. To whoever thought of the -c > option to pkg_version, thanks much! Until I read about that, updating > ports was an annoying drudgery for me... > > -- > Doug Lee > dgl@visi.com > http://www.visi.com/~dgl > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message