Subject: Re: make package question
To: None <netbsd-help@netbsd.org>
From: Tom Jernigan <jernigantc@ornl.gov>
List: netbsd-help
Date: 09/03/2002 10:10:41
If you're willing to use pre-built packages, the make bin-install 
command is also useful. It will install the package from the ftp 
server if available; otherwise it will make and install the package 
from source leaving a binary package in /usr/pkgsrc/packages/All.

>On Tue, 3 Sep 2002, Andy R wrote:
>
>>  The make target called packages builds a package of
>>  whatever you are making and also installs it. The
>>  problem is, it only makes a package of the thing you
>>  are building and not the dependencies. This doesn't do
>>  me much good if my goal is to save the binary packages
>>  I build so I can install them later if something goes
>>  wrong.
>>
>>  Is there some way to build each dependency as a
>>  package as well? I apologize if I'm asking the
>>  obvious... Searching the 'net turned up pr# 9995
>>  opened by Jason Thorpe in 2000 with no fix.
>
>The "make package" target will make packages of any prerequisites it
>has to build and install to build the new package. So if you use "make
>package" all the time, you'll have packages for everything you have
>installed.
>
>"pkgsrc" doesn't support making a package of something that's already
>installed (after the work directory is cleaned), although the
>"pkg_tarup" package evidently does a reasonable job of it. In my
>opinion, though, such a package isn't really suitable for the purpose
>you describe, as errors might have crept in, or files may have been
>overwritten, between the time you built and installed the package and
>the time you tar it up.
>
>Frederick


-- 
Tom Jernigan,  Oak Ridge National Laboratory, jernigantc@ornl.gov
Phone (865) 574-1166, FAX (865)574-1191