tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bsd.own.mk - Re: pkg/44425: devel/lua-alt-getopt install problem



On Mon, Jan 24, 2011 at 12:10:02PM +0700, Robert Elz wrote:
 > Yes, the problem here is not pksrc, it is the VERY broken base NetBSD
 > make system that simply assumes that everything in /usr/src conforms to
 > its expectations.   It should do that only when it is really building
 > NetBSD sources, which it cannot tell by a simple test of source directory.

The real problem is that the existing <bsd.*.mk> files are part of
NetBSD's build system, not a general-purpose make library. They
shouldn't be installed in /usr/share/mk and random 3rd-party packages
shouldn't be using them.

Rather, the NetBSD build system should be kept in src/mk, and the make
library installed into /usr/share/mk should be set up to be useful to
3rd party packages and not contain random assumptions and logic that
only makes sense when building NetBSD per se.

The fact that the NetBSD build system behaves differently when the
tree is in /usr/src is also probably a bug, but it wouldn't be a
serious one if 3rd-party packages weren't reusing pieces of it without
being prepared to cope with the consequences.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index