Date: Sun, 20 May 2007 13:27:18 +0200 From: Stefan Bethke <stb@lassitu.de> To: Stephen Montgomery-Smith <stephen@math.missouri.edu> Cc: Alexander Leidinger <Alexander@leidinger.net>, freebsd-ports@freebsd.org Subject: Re: Time to abandon recursive pulling of dependencies? Message-ID: <AE5DBBF9-F017-4A49-9ADE-A6BC133E7689@lassitu.de> In-Reply-To: <464CC1FE.5060706@math.missouri.edu> References: <464597C6.3030406@gmx.de> <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> <20070512133054.B5588@math.missouri.edu> <4646193E.5040503@gmx.de> <464665D5.1090509@math.missouri.edu> <464676CC.2000203@math.missouri.edu> <46469BF5.9030603@math.missouri.edu> <1179058696.13237.3.camel@ikaros.oook.cz> <20070513101332.L82202@math.missouri.edu> <46479215.1080401@math.missouri.edu> <4647C4FB.9050607@math.missouri.edu> <4647F182.6000402@gmx.de> <46487491.6020806@math.missouri.edu> <46488168.3030300@math.missouri.edu> <464B155A.1080105@math.missouri.edu> <464B7144.2000600@math.missouri.edu> <20070517185207.27c3faeb@deskjail> <464C924C.5010001@math.missouri.edu> <464CC1FE.5060706@math.missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 17.05.2007 um 22:58 schrieb Stephen Montgomery-Smith: > Stephen Montgomery-Smith wrote: >> Alexander Leidinger wrote: >>> As portupgrade cleans before and after updating a >>> port, optimizing this may also be beneficial. >>> >>> Maybe first trying to construct all dependencies of the installed >>> ports >>> like in actual-package-depends and then the remaining ones like >>> it is >>> done currently... >> I don't use "make clean" preferring a variant of "find /usr/ports - >> name work -exec rm -rf {} \;". > > I just looked at it. I really don't think it is worth the big > effort that we put into registering ports, because a make clean > only happens once or twice, unlike registering of the port which > happens for every single dependency. > > I think it would be better to modify portupgrade to use find to > delete all the work in all the ports. The work dir is not necessarily where you assume it is. If you mount / usr/ports r/o (i.e. in a jail, or shared via NFS), you probably do something like this in make.conf: WRKDIRPREFIX?= /var/ports/work WRKDIR?= ${WRKDIRPREFIX}${.CURDIR:S/${PORTSDIR}//} Running find on /usr/ports is not of much use then... Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 170 346 0140
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AE5DBBF9-F017-4A49-9ADE-A6BC133E7689>