pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/install Set NO_MTREE for packages flagged as allowi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/397f7cae2376
branches:  trunk
changeset: 522643:397f7cae2376
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Dec 15 20:54:47 2006 +0000

description:
Set NO_MTREE for packages flagged as allowing DESTDIR. They are supposed
to work without precreated directories anyway.

diffstat:

 mk/install/bsd.install-vars.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 947b6499e11f -r 397f7cae2376 mk/install/bsd.install-vars.mk
--- a/mk/install/bsd.install-vars.mk    Fri Dec 15 20:43:00 2006 +0000
+++ b/mk/install/bsd.install-vars.mk    Fri Dec 15 20:54:47 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.install-vars.mk,v 1.4 2006/11/04 07:42:51 rillig Exp $
+# $NetBSD: bsd.install-vars.mk,v 1.5 2006/12/15 20:54:47 joerg Exp $
 #
 # This Makefile fragment is included separately by bsd.pkg.mk and
 # defines some variables which must be defined earlier than where
@@ -12,6 +12,13 @@
 #      the "real" installation should start.
 #
 
+# If a package sets PKG_DESTDIR_SUPPORT to a non-empty value,
+# it is supposed to deal with missing directories already.
+#
+.if !empty(PKG_DESTDIR_SUPPORT)
+NO_MTREE=      yes
+.endif
+
 # If a package sets INSTALLATION_DIRS, then it's known to pre-create
 # all of the directories that it needs at install-time, so we don't need
 # mtree to do it for us.



Home | Main Index | Thread Index | Old Index