diff options
author | jlam <jlam@pkgsrc.org> | 2002-01-27 20:01:56 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-01-27 20:01:56 +0000 |
commit | a1d1eaa46e3ad6a61b10f584355f375f0caa074b (patch) | |
tree | b68a2804119d1dbdac68b72850a41263d0f92b66 /mk | |
parent | 57a0d272cd7737bdda124f7d28518c3cf86ee63b (diff) | |
download | pkgsrc-a1d1eaa46e3ad6a61b10f584355f375f0caa074b.tar.gz |
Prevent /etc/mk.conf from being included by BSD-style makefiles used by
packages themselves, as /etc/mk.conf may contain harmful settings for
package builds. Just to clarify, /etc/mk.conf is still included by the
Makefiles in pkgsrc, just not by the Makefiles used to build the software
itself. This should fix pkg/15297 by gabriel rosenkoetter
<gr@grappa.eclipsed.net>.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index d1e23496e5a..a3076285f5a 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.915 2002/01/27 19:07:41 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.916 2002/01/27 20:01:56 jlam Exp $ # # This file is in the public domain. # @@ -20,6 +20,11 @@ ##### Include any preferences, if not already included, and common definitions .include "../../mk/bsd.prefs.mk" +##### Prevent /etc/mk.conf from being included by a distribution's BSD-style +##### Makefiles. We really don't want to pick up settings that are used by +##### builds in /usr/src, e.g. DESTDIR. +MAKE_ENV+= MAKECONF=/dev/null + ##### Pass information about desired toolchain to package build. .if defined(USETOOLS) MAKE_ENV+= USETOOLS="${USETOOLS}" |