summaryrefslogtreecommitdiff
path: root/mk/platform/NetBSD.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/platform/NetBSD.mk')
-rw-r--r--mk/platform/NetBSD.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
index d8997350e05..da7ad98af68 100644
--- a/mk/platform/NetBSD.mk
+++ b/mk/platform/NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.61 2020/12/14 21:45:43 js Exp $
+# $NetBSD: NetBSD.mk,v 1.62 2020/12/18 17:14:58 maya Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -165,6 +165,14 @@ _OPSYS_SUPPORTS_SSP= yes
_OPSYS_SUPPORTS_STACK_CHECK= yes
.endif
+_OLD_DEFAULT_PKGDB_DIR= /var/db/pkg
+.if exists(${_OLD_DEFAULT_PKGDB_DIR}) && \
+ (${PKG_DBDIR:U${OLD_DEFAULT_PKGDB_DIR}} != ${_OLD_DEFAULT_PKGDB_DIR})
+PKG_DBDIR_ERROR= Compatibility pkgdb location exists, but PKG_DBDIR not specified. \
+ This may cause unexpected issues. To avoid problems, add \
+ PKG_DBDIR=${_OLD_DEFAULT_PKGDB_DIR} to /etc/mk.conf.
+.endif
+
_OPSYS_SUPPORTS_CWRAPPERS= yes
# use readelf in check/bsd.check-vars.mk