diff options
author | rillig <rillig> | 2006-07-21 19:09:23 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-07-21 19:09:23 +0000 |
commit | a463ef415ab64498859eb66f13589480f7abde01 (patch) | |
tree | 990da282b6d304c570d583adfd705f9a8fe63517 /pkgtools/pkglint/files/pkglint.pl | |
parent | f2ad00071a80b4363d047a6181c382733a950deb (diff) | |
download | pkgsrc-a463ef415ab64498859eb66f13589480f7abde01.tar.gz |
Fixed the regular expression to detect whether USE_LANGUAGES contains
"c" or not.
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index d9ce98830ea..6ccbba3af60 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.658 2006/07/21 05:02:52 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.659 2006/07/21 19:09:23 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -6281,7 +6281,7 @@ sub checkfile_package_Makefile($$$) { if ($languages_line->text =~ regex_varassign) { my (undef, $op, $value, undef) = ($1, $2, $3, $4); - if ($value !~ qr"\bc\b") { + if ($value !~ qr"(?:^|\s+)c(?:\s+|$)") { $pkgctx_vardef->{"GNU_CONFIGURE"}->log_warning("GNU_CONFIGURE almost always needs a C compiler, ..."); $languages_line->log_warning("... but \"c\" is not added to USE_LANGUAGES."); } |