For developer mode, warn about packages without destdir support.

This commit is contained in:
joerg 2009-05-23 23:48:44 +00:00
parent 30412ff84a
commit 78ce287831

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.prefs.mk,v 1.293 2009/05/19 09:33:53 wiz Exp $ # $NetBSD: bsd.prefs.mk,v 1.294 2009/05/23 23:48:44 joerg Exp $
# #
# This file includes the mk.conf file, which contains the user settings. # This file includes the mk.conf file, which contains the user settings.
# #
@ -399,6 +399,10 @@ _USE_DESTDIR= destdir
PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''." PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''."
.endif .endif
.if defined(PKG_DEVELOPER) && empty(PKG_DESTDIR_SUPPORT)
WARNINGS+= "[bsd.prefs.mk] The package ${PKGNAME} misses DESTDIR support."
.endif
# When using staged installation, everything gets installed into # When using staged installation, everything gets installed into
# ${DESTDIR}${PREFIX} instead of ${PREFIX} directly. # ${DESTDIR}${PREFIX} instead of ${PREFIX} directly.
# #