diff options
author | marcus <marcus@FreeBSD.org> | 2012-05-20 13:10:42 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2012-05-20 13:10:42 +0800 |
commit | dbad34a7a57555ce9a4cc121cbd171046772d20e (patch) | |
tree | a25d5e023dd7eb4b8bb9c73829a9580cd6fe2c16 /ports-mgmt/portlint | |
parent | e354526e0c670c75d6ec23587cc6f3222a7ac183 (diff) | |
download | freebsd-ports-gnome-dbad34a7a57555ce9a4cc121cbd171046772d20e.tar.gz freebsd-ports-gnome-dbad34a7a57555ce9a4cc121cbd171046772d20e.tar.zst freebsd-ports-gnome-dbad34a7a57555ce9a4cc121cbd171046772d20e.zip |
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]
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r-- | ports-mgmt/portlint/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 25 |
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); |