Subject: Re: pkg/10860: Installed packages should not spuriously alter building of other packages
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 08/22/2000 20:46:41
[ On Tuesday, August 22, 2000 at 15:31:33 (-0400), Greg A. Woods wrote: ]
> Subject: Re: pkg/10860: Installed packages should not spuriously alter building of other packages
>
> 

Damn, I hate it whan that happens.... (New MUA software silently
truncated my message bodies....)

Basically my reply was an agreement with your discussion of the issues
in building packages.  I've been doing what you suggest in my version of
pkgsrc for some time now and have had "better" success with the scheme.

I also proposed that the only real solution is for all package builds be
done in a "clean-room" environment, eg. with a fresh clean chrooted
environment where dependent packages are first built, binary packages
are created, and then the binaries of the dependents are installed
before the parent package is built and a binary created of it.

Finally I proposed that all packages which install shared libraries be
separated into two targets:  1) the development version which includes
all static/profile/shared libraries as well as headers and any associate
tools; and 2) the run-time version that includes only the parts of the
package which are used at run-time by parent packages.  This way
multiple versions of the run-time package can co-exist on the same
machine at the same time.

The total combination of these changes would have the added benefit that
parent packages could be independently upgraded without having to update
all the co-dependent packages on a given system.

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>