summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2009-04-04 18:36:04 +0000
committerrillig <rillig@pkgsrc.org>2009-04-04 18:36:04 +0000
commit6d0f18a10972a7291e90d52eb5ad92bdbe6ca23d (patch)
treece53e7d78bd90ea65e83bf480709a7edf5404a27 /pkgtools/pkglint
parentcbe734b55083f63b86ee7c45f5044ed3ac9905b5 (diff)
downloadpkgsrc-6d0f18a10972a7291e90d52eb5ad92bdbe6ca23d.tar.gz
Added a warning for the old buildlink3.mk format.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 7d328528f85..307d6de159e 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.806 2009/03/25 16:33:25 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.807 2009/04/04 18:36:04 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -6378,6 +6378,12 @@ sub checklines_buildlink3_mk_pre2009($$) {
lines_log_warning($lines, $lineno, "Expected BUILDLINK_TREE line.");
return;
}
+ $lines->[$lineno - 1]->log_warning("Please switch to the new buildlink3.mk format.");
+ $lines->[$lineno - 1]->explain_warning(
+"The format for buildlink3.mk files has changed in 2009Q1. You can",
+"generate a new-style buildlink3.mk file with the createbuildlink>=3.14",
+"package and then adjust the variable's values manually.");
+
if (($m = expect($lines, \$lineno, qr"^(.*)_BUILDLINK3_MK:=\t*\$\{\1_BUILDLINK3_MK\}\+$"))) {
$bl_PKGBASE_line = $lines->[$lineno - 1];
$bl_PKGBASE = $m->text(1);