diff options
author | rillig <rillig> | 2008-12-21 10:34:59 +0000 |
---|---|---|
committer | rillig <rillig> | 2008-12-21 10:34:59 +0000 |
commit | ce3472fe95c281a3ff0554e3c9b205d7734f34d8 (patch) | |
tree | fee8c4e11a9fa21804e5c9bcae5b2766c403c15d /pkgtools | |
parent | 3ce7b2dacb126c76da104caf1cc369322b9bd953 (diff) | |
download | pkgsrc-ce3472fe95c281a3ff0554e3c9b205d7734f34d8.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.pl | 6 |
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"}) |