diff options
author | rillig <rillig@pkgsrc.org> | 2006-07-15 23:58:52 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-07-15 23:58:52 +0000 |
commit | 222182789245b6c9f6c8cff1c0c35283bc1cba4d (patch) | |
tree | a4b93f8fac3a6f560860ad528f5b8c399b8d67b1 /mk/plist | |
parent | 0666bf8a6bfe69284c2b32f1fc53121b284bc10a (diff) | |
download | pkgsrc-222182789245b6c9f6c8cff1c0c35283bc1cba4d.tar.gz |
Split the variable BUILD_DEFS into those that are defined by packages
and those that are defined by the infrastructure (_BUILD_DEFS). This
allows the build-defs-message target to be moved to the end of
bsd.pkg.mk. Now it prints the correct result even in unprivileged
builds, which had been wrong due to the order in which the files have
been included. For example, ${UNPRIVILEGED_USER} was displayed as (not
defined) although its value was defined, which could be checked with
"bmake show-var".
Tested with one package that _does_ define BUILD_DEFS and with one that
doesn't. The behavior stays the same.
Diffstat (limited to 'mk/plist')
-rw-r--r-- | mk/plist/plist.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/plist/plist.mk b/mk/plist/plist.mk index 5ea26ed098f..131e57a6d5b 100644 --- a/mk/plist/plist.mk +++ b/mk/plist/plist.mk @@ -1,4 +1,4 @@ -# $NetBSD: plist.mk,v 1.13 2006/06/08 03:11:17 jlam Exp $ +# $NetBSD: plist.mk,v 1.14 2006/07/15 23:58:52 rillig Exp $ # # This Makefile fragment handles the creation of PLISTs for use by # pkg_create(8). @@ -192,7 +192,7 @@ _PLIST_IGNORE_FILES+= ${PKG_SYSCONFDIR:S,^${PREFIX}/,,} . endif _PLIST_IGNORE_FILES+= ${PLIST_IGNORE_FILES} .endif -BUILD_DEFS+= _PLIST_IGNORE_FILES +_BUILD_DEFS+= _PLIST_IGNORE_FILES .if ${PLIST_TYPE} == "dynamic" _PLIST_IGNORE_CMD= \ |