summaryrefslogtreecommitdiff
path: root/ports-mgmt/portlint
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2012-05-20 05:10:42 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2012-05-20 05:10:42 +0000
commitccc564bc46797137fb89720b6bcdddc20b7449fb (patch)
treea7c1b72ceff5ea9a1cf055e1e433150aff40512c /ports-mgmt/portlint
parentMake the port build with the upcoming Qt 4.8.x series. (diff)
Upgrade to 2.13.10.
* Add a check for over-specific shared lib dependencies [1] * Add support for TEST_DEPENDS [2] * Make the error for NO_CHECKSUM to be scarier [3] PR: 165851 [1] 166173 [2] 167923 [3] Submitted by: matthew [1] sunpoet [2] "Bryan Drewery" <bryan@shatow.net> [3]
Notes
Notes: svn path=/head/; revision=297000
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r--ports-mgmt/portlint/Makefile2
-rw-r--r--ports-mgmt/portlint/src/portlint.pl25
2 files changed, 17 insertions, 10 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index 61d6544dd6c5..10ad07d1bb4a 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= portlint
-PORTVERSION= 2.13.9
+PORTVERSION= 2.13.10
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index a4cbae674099..8d1a640e8131 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -17,7 +17,7 @@
# OpenBSD and NetBSD will be accepted.
#
# $FreeBSD$
-# $MCom: portlint/portlint.pl,v 1.241 2012/03/04 18:40:53 marcus Exp $
+# $MCom: portlint/portlint.pl,v 1.245 2012/05/20 05:12:07 marcus Exp $
#
use strict;
@@ -52,7 +52,7 @@ $portdir = '.';
# version variables
my $major = 2;
my $minor = 13;
-my $micro = 9;
+my $micro = 10;
sub l { '[{(]'; }
sub r { '[)}]'; }
@@ -1195,8 +1195,8 @@ sub check_depends_syntax {
$ENV{'PORTSDIR'} //= $portsdir;
- foreach my $i (grep(/^(PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|FETCH_)*DEPENDS[?+]?=/, split(/\n/, $tmp))) {
- $i =~ s/^((PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|FETCH_)*DEPENDS)[?+]?=[ \t]*//;
+ foreach my $i (grep(/^(PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|TEST_|FETCH_)*DEPENDS[?+]?=/, split(/\n/, $tmp))) {
+ $i =~ s/^((PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|TEST_|FETCH_)*DEPENDS)[?+]?=[ \t]*//;
$j = $1;
$seen_depends{$j}++;
if ($j ne 'DEPENDS' &&
@@ -1222,7 +1222,7 @@ sub check_depends_syntax {
print "OK: checking dependency value for $j.\n"
if ($verbose);
- if ($k =~ /\${((PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|FETCH_)*DEPENDS)}/) {
+ if ($k =~ /\${((PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|TEST_|FETCH_)*DEPENDS)}/) {
&perror("WARN", $file, -1, "do not set $j to $k. ".
"Instead, explicity list out required $j dependencies.");
}
@@ -1329,6 +1329,13 @@ sub check_depends_syntax {
"found in \${PORTSDIR}/Mk/bsd.apache.mk.");
}
+ # Check for over-specific shared library dependencies
+ if ($j eq 'LIB_DEPENDS' && $m{'dep'} =~ m/(\.\d+$)/) {
+ &perror("WARN", $file, -1, "$j don't specify the " .
+ "ABI version number $1 in $m{'dep'} unless it is " .
+ "really necessary.");
+ }
+
# check port dir existence
$k = $m{'dir'};
$k =~ s/\${PORTSDIR}/$ENV{'PORTSDIR'}/;
@@ -1606,8 +1613,8 @@ sub checkmakefile {
print "OK: checking NO_CHECKSUM.\n" if ($verbose);
if ($whole =~ /\nNO_CHECKSUM/) {
my $lineno = &linenumber($`);
- &perror("FATAL", $file, $lineno, "use of NO_CHECKSUM discouraged. ".
- "it is intended to be a user variable.");
+ &perror("FATAL", $file, $lineno, "NO_CHECKSUM is a user ".
+ "variab;e and is not to be set in a port's Makefile.");
}
#
@@ -2885,10 +2892,10 @@ MAINTAINER COMMENT
# NOTE: EXEC_DEPENDS is obsolete, so it should not be listed.
@linestocheck = qw(
EXTRACT_DEPENDS LIB_DEPENDS PATCH_DEPENDS BUILD_DEPENDS RUN_DEPENDS
-FETCH_DEPENDS DEPENDS_TARGET
+TEST_DEPENDS FETCH_DEPENDS DEPENDS_TARGET
);
- if ($tmp =~ /^(PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|FETCH_)DEPENDS/m) {
+ if ($tmp =~ /^(PATCH_|EXTRACT_|LIB_|BUILD_|RUN_|TEST_|FETCH_)DEPENDS/m) {
&checkearlier($file, $tmp, @varnames);
check_depends_syntax($tmp, $file);