From owner-freebsd-questions@FreeBSD.ORG Mon Jun 5 19:42:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 D30C516B627 for ; Mon, 5 Jun 2006 19:42:47 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C347643D49 for ; Mon, 5 Jun 2006 19:42:16 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1FnKxk-0001ol-9L; Mon, 05 Jun 2006 20:42:08 +0100 Received: from [80.192.2.223] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1FnKxj-0004qa-2z; Mon, 05 Jun 2006 20:42:07 +0100 Message-ID: <4484890E.1070808@dial.pipex.com> Date: Mon, 05 Jun 2006 20:42:06 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Horne References: <200606031212.11908.jhorne@dfwlp.com> <200606041205.20737.jhorne@dfwlp.com> <44d5dn64j2.fsf@be-well.ilk.org> <200606051133.58615.donaldj.fbsd@gmail.com> In-Reply-To: <200606051133.58615.donaldj.fbsd@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Donald J. O'Neill" , freebsd-questions@freebsd.org Subject: Re: how to avoid recompiling applications? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 19:43:03 -0000 Donald J. O'Neill wrote: >On Monday 05 June 2006 09:49, Lowell Gilbert wrote: > > >>Jonathan Horne writes: >> >> >>>so, could i theoretically use 'make reinstall' on a fresh system >>>where the port had never been previously installed? >>> >>> >>Maybe, maybe not. If "make install" doesn't work because there's >>already a .install_done... file in the work directory, then >>reinstall will be what you need. >>_______________________________________________ >> >> > >The answer is: when he installs the ports, make a package using "make >package". Unfortunately, this doesn't make a package for ports required >for that port, But, "make package-recursive" would, with the exception >of certain ports, and he can get around that if he's clever enough. > >Another thing he can do is: use "pkg_create -b >" and save it somewhere. Then he can >do "pkg_add " and get that port and the required >dependencies. If he's missing a dependency, oh well, guess what. > > > portupgrade -pr works a treat: -p --package Build a package when each specified port is installed or upgraded. If a package is upgraded and its dependent packages are given from the com- mand line (including the case where -r is speci- fied), build packages for them as well. combined with pkg_create -b for already installed stuff and you should never have to compile the same version of a port more than once. --Alex