From owner-freebsd-ports@FreeBSD.ORG Mon Jan 21 20:31:03 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0861E16A419 for ; Mon, 21 Jan 2008 20:31:03 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id A892A13C4DB for ; Mon, 21 Jan 2008 20:31:02 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 7168 invoked by uid 399); 21 Jan 2008 20:31:01 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 21 Jan 2008 20:31:01 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <47950104.7020605@FreeBSD.org> Date: Mon, 21 Jan 2008 12:31:00 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Tim Clewlow References: <453410.64705.qm@web50311.mail.re2.yahoo.com> In-Reply-To: <453410.64705.qm@web50311.mail.re2.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: make package-recursive question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 20:31:03 -0000 Tim Clewlow wrote: > Hello, > > If I do "make package-recursive" on a port then it first tries to install the > port. This causes it to fail if the port is already installed. However, if I > deinstall the port, and then make package-recursive, it installs the port, > makes the port package, and (this is the important part) quite happily makes > packages for all the ports dependencies even though those dependencies _are_ > already installed. > > Is there any way to tell "make package-recursive" to not bother trying to > install the top level port, ie just make the package like it does for all the > dependencies? AFAIK, no. You could try 'pkg_create -b' for the parent port, and then try 'make package-recursive' to see if that will bypass the first step, but I can't guarantee that it will work. Your other option would be to do 'make -DFORCE_PKG_REGISTER package-recursive' in the parent port to just re-build and re-install everything. Not as clean, but has the advantage of not having to de-install the existing port in case that's a problem. hth, Doug -- This .signature sanitized for your protection