Subject: Re: install/22514: allow syspkgs to be created during unprivileged build
To: None <apb@cequrux.com>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 08/17/2003 20:50:43
[ On Sunday, August 17, 2003 at 16:35:07 (+0200), apb@cequrux.com wrote: ]
> Subject: install/22514: allow syspkgs to be created during unprivileged build
>
> 
> It's currently difficult to create syspkgs if you are an unprivileged
> user, or if you build to DESTDIR != /.  The appended patches make it
> easier.

The right fix, IMO, is to include the information necessary for
selecting files for packages (or sets) right in the METALOG file.  This
eliminates the need to maintain duplicated and unnecessary and difficult
to maintain information in the lists files and instead simply moves it
all to one canonical place where it makes the most sense to maintain it:
right in the makefiles which build and install all files in the first
place.  Such a change also makes it possible to build compile-time
customized(*) systems which have different product lists without having
to maintain an increasingly complex and conflicting set of patched
package manifests.

(*) not all system cusomizations can be done by selectively installing
different subsets of the system packages -- some compile-time options
affect the availble interfaces in core libraries and thus some programs
cannot be built when those options are used.  Currently the only way to
build a full release in such a situation is to manually modify the
manifest lists to match what's actually built and installed.

-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>