Date: Sat, 16 Sep 2000 02:38:47 +0100 From: Mark Ovens <marko@freebsd.org> To: Doug Lee <dgl@visi.com> Cc: freebsd-questions@freebsd.org Subject: Re: Better way to update ports using pkg_version -c ? Message-ID: <20000916023847.B260@parish> In-Reply-To: <Pine.BSF.4.21.0009152023160.339-100000@kirk.dsl.visi.com>; from dgl@visi.com on Fri, Sep 15, 2000 at 08:30:24PM -0500 References: <Pine.BSF.4.21.0009152023160.339-100000@kirk.dsl.visi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000916023847.B260>