Subject: Re: make package question
To: Andy R <quadreverb@yahoo.com>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 09/03/2002 08:47:43
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