Date: Sun, 19 Sep 2021 17:14:24 GMT From: Joe Marcus Clarke <marcus@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 772ba6c8dbe4 - main - ports-mgmt/portlint: Update to 2.19.8 Message-ID: <202109191714.18JHEONi046478@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by marcus: URL: https://cgit.FreeBSD.org/ports/commit/?id=772ba6c8dbe420f4f96721ddaa060432a0f57ec4 commit 772ba6c8dbe420f4f96721ddaa060432a0f57ec4 Author: Joe Marcus Clarke <marcus@FreeBSD.org> AuthorDate: 2021-09-19 17:12:39 +0000 Commit: Joe Marcus Clarke <marcus@FreeBSD.org> CommitDate: 2021-09-19 17:12:39 +0000 ports-mgmt/portlint: Update to 2.19.8 * Warn about deprecated USE_AUTOTOOLS [1] * Add support for BROKEN_* PR: 248487 [1] 257951 [2] --- ports-mgmt/portlint/Makefile | 2 +- ports-mgmt/portlint/src/portlint.pl | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile index d21f0898cb4f..41bec3134480 100644 --- a/ports-mgmt/portlint/Makefile +++ b/ports-mgmt/portlint/Makefile @@ -1,7 +1,7 @@ # Created by: Jun-ichiro itojun Hagino <itojun@itojun.org> PORTNAME= portlint -PORTVERSION= 2.19.7 +PORTVERSION= 2.19.8 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 e5d64f1a573d..1c5b7da8fa7b 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -49,7 +49,7 @@ $portdir = '.'; # version variables my $major = 2; my $minor = 19; -my $micro = 7; +my $micro = 8; # default setting - for FreeBSD my $portsdir = '/usr/ports'; @@ -1916,7 +1916,7 @@ sub checkmakefile { # whole file: BROKEN et al. # my ($var); - foreach $var (qw(IGNORE BROKEN COMMENT FORBIDDEN MANUAL_PACKAGE_BUILD NO_CDROM NO_PACKAGE RESTRICTED)) { + foreach $var (qw(IGNORE BROKEN(_[\w\d]+)? 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($`); @@ -1937,8 +1937,8 @@ sub checkmakefile { "with a lowercase letter and end without a period."); } - if ($whole =~ /\nBROKEN[+?]=[ \t]+[^a-z \t]/ || - $whole =~ /^BROKEN[+?]?=[ \t]+.*\.$/m) { + if ($whole =~ /\nBROKEN(_[\w\d]+)?[+?]?=[ \t]+[^a-z \t]/ || + $whole =~ /^BROKEN(_[\w\d]+)?[+?]?=[ \t]+.*\.$/m) { my $lineno = &linenumber($`); &perror("WARN", $file, $lineno, "BROKEN messages should begin ". "with a lowercase letter and end without a period."); @@ -2223,7 +2223,7 @@ xargs xmkmf && $lm !~ /^COMMENT(.)?=[^\n]+($i\d*)/m) { &perror("WARN", $file, $lineno, "possible direct use of ". "command \"$sm\" found. Use $autocmdnames{$i} ". - "instead and set according USE_AUTOTOOLS=<tool> macro"); + "instead and set USES=autoreconf and GNU_CONFIGURE=yes"); } } } @@ -2233,6 +2233,14 @@ xargs xmkmf "Use USES=libtool instead."); } + if ($makevar{'USE_AUTOTOOLS'} =~ /\blibtoolize\b/) { + &perror("WARN", $file, -1, "USE_AUTOTOOLS=libtoolize is deprecated. ". + "Use \"USES=autoreconf libtool\" instead."); + } elsif ($makevar{'USE_AUTOCONF'}) { + &perror("WARN", $file, -1, "USE_AUTOTOOLS is deprecated. ". + "Use USES=autoreconf and set GNU_CONFIGURE=yes instead."); + } + # # whole file: check for use of paths that have macro replacements #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109191714.18JHEONi046478>