ports/97207: [update] devel/portlint - check for quoted COMMENT does not work
Sam Lawrance
lawrance at FreeBSD.org
Sat May 13 17:00:41 UTC 2006
>Number: 97207
>Category: ports
>Synopsis: [update] devel/portlint - check for quoted COMMENT does not work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat May 13 17:00:37 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Sam Lawrance
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
>Description:
Portlint's check for quoted a COMMENT, eg
COMMENT= "Apple's mDNSResponder"
does not flag any errors.
>How-To-Repeat:
Try it out on mDNSResponder. Unless I update it first :-)
>Fix:
Patch attached. The section that specifically checks COMMENT is
removed, and COMMENT is added below to the list of variables to check
for quoted-ness.
--- patch-portlint begins here ---
Index: src/portlint.pl
===================================================================
RCS file: /home/pcvs/ports/devel/portlint/src/portlint.pl,v
retrieving revision 1.88
diff -u -r1.88 portlint.pl
--- src/portlint.pl 12 Mar 2006 19:19:43 -0000 1.88
+++ src/portlint.pl 13 May 2006 16:48:05 -0000
@@ -1202,20 +1202,10 @@
}
#
- # whole file: COMMENT
- #
- print "OK: checking COMMENT.\n" if ($verbose);
- if ($whole =~ /^COMMENT[+?]?=[ \t]+"[^"+]"$/m) {
- my $lineno = &linenumber($`);
- &perror("WARN: $file [$lineno]: COMMENT messages should not ".
- "be quoted.");
- }
-
- #
# whole file: BROKEN et al.
#
my ($var);
- foreach $var (qw(IGNORE BROKEN FORBIDDEN MANUAL_PACKAGE_BUILD NO_CDROM NO_PACKAGE RESTRICTED)) {
+ foreach $var (qw(IGNORE BROKEN COMMENT FORBIDDEN MANUAL_PACKAGE_BUILD NO_CDROM NO_PACKAGE RESTRICTED)) {
print "OK: checking ${var}.\n" if ($verbose);
if ($whole =~ /\n${var}[+?]?=[ \t]+"/) {
my $lineno = &linenumber($`);
--- patch-portlint ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list