git: b94980b88b1a - main - ports-mgmt/portlint: Update to 2.22.4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Dec 2024 16:47:08 UTC
The branch main has been updated by marcus:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b94980b88b1a94e062c0329b06e05713b185fc41
commit b94980b88b1a94e062c0329b06e05713b185fc41
Author: Joe Marcus Clarke <marcus@FreeBSD.org>
AuthorDate: 2024-12-27 16:44:43 +0000
Commit: Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2024-12-27 16:44:43 +0000
ports-mgmt/portlint: Update to 2.22.4
* Drop support for USE_GCC=any [1]
* Attempt to eliminate duplicate "earlier" messages [2]
PR: 283323 [1]
283046 [2]
Submitted by: gerald [1]
---
ports-mgmt/portlint/Makefile | 2 +-
ports-mgmt/portlint/src/portlint.pl | 16 +++++++++-------
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index 86b20ce83b9f..7b74f65e8505 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -1,5 +1,5 @@
PORTNAME= portlint
-PORTVERSION= 2.22.3
+PORTVERSION= 2.22.4
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 0fd3a76ee362..44f4536905a2 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -52,7 +52,7 @@ $portdir = '.';
# version variables
my $major = 2;
my $minor = 22;
-my $micro = 3;
+my $micro = 4;
# default setting - for FreeBSD
my $portsdir = '/usr/ports';
@@ -2389,8 +2389,8 @@ xargs xmkmf
if ($whole =~ /^USE_GCC[?:]?=\s*([^\s#]*).*$/m) {
my $lineno = &linenumber($`);
my $gcc_val = $1;
- if ($gcc_val eq 'any' || $gcc_val eq 'yes') {
- # Just accept these two.
+ if ($gcc_val eq 'yes') {
+ # Just accept this one.
} elsif ($gcc_val !~ /\+/) {
&perror("WARN", $file, $lineno, "Setting a specific version for ".
"USE_GCC should only be done as a last resort. Unless you ".
@@ -3133,7 +3133,7 @@ DIST_SUBDIR EXTRACT_ONLY
#
print "OK: checking second section of $file (PATCH*: optional).\n"
if ($verbose);
- $tmp = $sections[$idx] // '';
+ $tmp = "\n" . $sections[$idx] // '';
if ($tmp =~ /(PATCH_SITES|PATCH_SITE_SUBDIR|PATCHFILES|PATCH_DIST_STRIP)/) {
&checkearlier($file, $tmp, @varnames);
@@ -3329,6 +3329,8 @@ NOT_FOR_ARCHS NOT_FOR_ARCHS_REASON(_\w+)? LEGAL_TEXT
$idx++;
}
+ $tmp = "\n" . $tmp;
+
foreach my $i (@linestocheck) {
$tmp =~ s/$i[?+:]?=[^\n]+\n//g;
}
@@ -3341,7 +3343,7 @@ NOT_FOR_ARCHS NOT_FOR_ARCHS_REASON(_\w+)? LEGAL_TEXT
#
print "OK: checking seventh section of $file (*_DEPENDS).\n"
if ($verbose);
- $tmp = $sections[$idx] // '';
+ $tmp = "\n" . $sections[$idx] // '';
# Check for direct assignment of BUILD_DEPENDS to RUN_DEPENDS.
if ($tmp =~ /\nRUN_DEPENDS=[ \t]*\$\{BUILD_DEPENDS}/) {
@@ -3384,7 +3386,7 @@ TEST_DEPENDS FETCH_DEPENDS DEPENDS_TARGET
#
print "OK: check eighth section of $file (FLAVORS: optional).\n"
if ($verbose);
- $tmp = $sections[$idx] // '';
+ $tmp = "\n" . $sections[$idx] // '';
if ($tmp =~ /(FLAVORS|FLAVOR)/) {
&checkearlier($file, $tmp, @varnames);
@@ -3451,7 +3453,7 @@ TEST_DEPENDS FETCH_DEPENDS DEPENDS_TARGET
# Makefile 10: check the rest of file
#
print "OK: checking the rest of the $file.\n" if ($verbose);
- $tmp = join("\n\n", @sections[$idx .. scalar(@sections)-1]);
+ $tmp = join("\n\n", @sections[$idx+1 .. scalar(@sections)-1]);
$tmp = "\n" . $tmp; # to make the begin-of-line check easier