mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Update to 2.6.11
* Do not warn on direct command use if the command is preceeded by "--" [1] * Add a check for ports installing charset.alias or locale.alias. In most cases these ports should depend on libiconv or gettext, and not install their own copies of these files [2] PR: 77410 [2] Requested by: gerald [1] Submitted by: leeym [2]
This commit is contained in:
parent
c3b83e6756
commit
45483a9867
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128757
@ -8,8 +8,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.6.10
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.6.11
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -17,7 +17,7 @@
|
||||
# OpenBSD and NetBSD will be accepted.
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $Id: portlint.pl,v 1.71 2004/12/17 17:23:52 marcus Exp $
|
||||
# $Id: portlint.pl,v 1.73 2005/02/14 08:17:17 marcus Exp $
|
||||
#
|
||||
|
||||
use vars qw/ $opt_a $opt_A $opt_b $opt_C $opt_c $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /;
|
||||
@ -40,7 +40,7 @@ $portdir = '.';
|
||||
# version variables
|
||||
my $major = 2;
|
||||
my $minor = 6;
|
||||
my $micro = 10;
|
||||
my $micro = 11;
|
||||
|
||||
sub l { '[{(]'; }
|
||||
sub r { '[)}]'; }
|
||||
@ -651,6 +651,14 @@ sub checkplist {
|
||||
"disallowed.");
|
||||
}
|
||||
|
||||
if ($_ =~ /charset\.alias$/ || $_ =~ /locale\.alias$/) {
|
||||
&perror("WARN: $file [$.]: installing charset.alias or locale.alias, ".
|
||||
"please add USE_GETTEXT=yes and use libintl from devel/gettext ".
|
||||
"instead of from outdated bundled one if possible. ".
|
||||
"See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/71531 ".
|
||||
"for more details.");
|
||||
}
|
||||
|
||||
if ($_ =~ /\.la$/ && $makevar{USE_LIBTOOL_VER} eq '') {
|
||||
&perror("WARN: $file [$.]: installing libtool archives, ".
|
||||
"please use USE_LIBTOOL_VER in Makefile if possible. ".
|
||||
@ -1221,6 +1229,7 @@ pax perl printf rm rmdir ruby sed sh sort touch tr which xargs xmkmf
|
||||
&& $curline !~ /^MAINTAINER(.)?=[^\n]+$i/m
|
||||
&& $curline !~ /^CATEGORIES(.)?=[^\n]+$i/m
|
||||
&& $curline !~ /^#.+$/m
|
||||
&& $curline !~ /\-\-$i/m
|
||||
&& $curline !~ /^COMMENT(.)?=[^\n]+$i/m) {
|
||||
&perror("WARN: $file [$lineno]: possible direct use of ".
|
||||
"command \"$i\" found. use ".
|
||||
|
@ -8,8 +8,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.6.10
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.6.11
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -17,7 +17,7 @@
|
||||
# OpenBSD and NetBSD will be accepted.
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $Id: portlint.pl,v 1.71 2004/12/17 17:23:52 marcus Exp $
|
||||
# $Id: portlint.pl,v 1.73 2005/02/14 08:17:17 marcus Exp $
|
||||
#
|
||||
|
||||
use vars qw/ $opt_a $opt_A $opt_b $opt_C $opt_c $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /;
|
||||
@ -40,7 +40,7 @@ $portdir = '.';
|
||||
# version variables
|
||||
my $major = 2;
|
||||
my $minor = 6;
|
||||
my $micro = 10;
|
||||
my $micro = 11;
|
||||
|
||||
sub l { '[{(]'; }
|
||||
sub r { '[)}]'; }
|
||||
@ -651,6 +651,14 @@ sub checkplist {
|
||||
"disallowed.");
|
||||
}
|
||||
|
||||
if ($_ =~ /charset\.alias$/ || $_ =~ /locale\.alias$/) {
|
||||
&perror("WARN: $file [$.]: installing charset.alias or locale.alias, ".
|
||||
"please add USE_GETTEXT=yes and use libintl from devel/gettext ".
|
||||
"instead of from outdated bundled one if possible. ".
|
||||
"See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/71531 ".
|
||||
"for more details.");
|
||||
}
|
||||
|
||||
if ($_ =~ /\.la$/ && $makevar{USE_LIBTOOL_VER} eq '') {
|
||||
&perror("WARN: $file [$.]: installing libtool archives, ".
|
||||
"please use USE_LIBTOOL_VER in Makefile if possible. ".
|
||||
@ -1221,6 +1229,7 @@ pax perl printf rm rmdir ruby sed sh sort touch tr which xargs xmkmf
|
||||
&& $curline !~ /^MAINTAINER(.)?=[^\n]+$i/m
|
||||
&& $curline !~ /^CATEGORIES(.)?=[^\n]+$i/m
|
||||
&& $curline !~ /^#.+$/m
|
||||
&& $curline !~ /\-\-$i/m
|
||||
&& $curline !~ /^COMMENT(.)?=[^\n]+$i/m) {
|
||||
&perror("WARN: $file [$lineno]: possible direct use of ".
|
||||
"command \"$i\" found. use ".
|
||||
|
Loading…
Reference in New Issue
Block a user