diff options
author | rillig <rillig> | 2006-02-24 15:05:10 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-02-24 15:05:10 +0000 |
commit | 61f619643ca8956242a9c702afd1beb542fbaaeb (patch) | |
tree | 8df40889ccb10ff9be423353ac1397f2318b4e64 /pkgtools | |
parent | 8f3a36d3b5d9ffc5217f0b74682f050d02c02d85 (diff) | |
download | pkgsrc-61f619643ca8956242a9c702afd1beb542fbaaeb.tar.gz |
- builtin.mk files must not be included directly.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 612a6fafa1d..2edfb5327b1 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.531 2006/02/24 14:24:42 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.532 2006/02/24 15:05:10 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -3631,8 +3631,9 @@ sub checklines_mk($) { if ($includefile =~ qr"/x11-links/buildlink3\.mk$") { $line->log_error("${includefile} must not be included directly. Include \"../../mk/x11.buildlink3.mk\" instead."); } - if ($includefile =~ qr"/gettext-lib/builtin\.mk$") { - $line->log_error("${includefile} must not be included directly. Include \"../../devel/gettext-lib/buildlink3.mk\" instead."); + if ($includefile =~ qr"(.*)/builtin\.mk$") { + my ($dir) = ($1); + $line->log_error("${includefile} must not be included directly. Include \"${dir}/buildlink3.mk\" instead."); } } elsif ($text =~ regex_mk_cond) { |