make package-recursive question

Tim Clewlow tim1timau at yahoo.com
Mon Jan 21 13:35:16 PST 2008


--- Doug Barton <dougb at FreeBSD.org> wrote:

> 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

Thanks for that, just wanted to know if I was missing a switch or special make
target somewhere. Its for a package server, ie slurp daily CVS updates and make
new versions of packages available for clients to install. The specific
function would only be used the first time a new package (and possibly new
dependencies) is added on the server, can work around it, its not a problem.

Cheers, Tim.

We are BSD ... resistance is futile.
http://www.freebsd.org/ - http://www.openbsd.org/ - http://www.netbsd.org/


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



More information about the freebsd-ports mailing list