summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-12-21 10:34:59 +0000
committerrillig <rillig@pkgsrc.org>2008-12-21 10:34:59 +0000
commitea2694451d2e9e2af4a04ce42af6ea5d3a6b04d2 (patch)
treefee8c4e11a9fa21804e5c9bcae5b2766c403c15d /pkgtools
parentacf434b6e18220eaba6d4a20fc9b23e0f05e9e53 (diff)
downloadpkgsrc-ea2694451d2e9e2af4a04ce42af6ea5d3a6b04d2.tar.gz
Warn about missing PKG_DESTDIR_SUPPORT definition. Every package should
have one.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 7b82bdcd812..3cffd105ffb 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.796 2008/12/15 12:47:31 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.797 2008/12/21 10:34:59 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -6796,6 +6796,10 @@ sub checkfile_package_Makefile($$) {
checkperms($fname);
+ if (!exists($pkgctx_vardef->{"PKG_DESTDIR_SUPPORT"}) && !exists($pkgctx_vardef->{"META_PACKAGE"})) {
+ log_warning($fname, NO_LINE_NUMBER, "This package has not set PKG_DESTDIR_SUPPORT.");
+ }
+
if (!exists($pkgctx_vardef->{"PLIST_SRC"})
&& !exists($pkgctx_vardef->{"GENERATE_PLIST"})
&& !exists($pkgctx_vardef->{"META_PACKAGE"})