svn commit: r473207 - in head/ports-mgmt/portlint: . src

Joe Marcus Clarke marcus at FreeBSD.org
Sun Jun 24 16:13:07 UTC 2018


Author: marcus
Date: Sun Jun 24 16:13:06 2018
New Revision: 473207
URL: https://svnweb.freebsd.org/changeset/ports/473207

Log:
  Update to 2.18.3.
  
  * Be less strict in the check for MASTER_SITE_SUBDIR use.
    This change checks that the subdirectory used is actually different
    than what is defined in MASTER_SITES_SUBDIRS.  To make this easier to
    do, support has been added to single-quote variables passed to the
    get_makevar* functions. [1]
  
  * Now only PY_FLAVOR is recommended as opposed to FLAVOR. [2]
  
  * Remove an errant ':' when suggesting PY_FLAVOR. [3]
  
  PR:		228227 [1]
  Requested by:	mat [2]
  Reported by:	koobs [3]

Modified:
  head/ports-mgmt/portlint/Makefile
  head/ports-mgmt/portlint/src/portlint.pl

Modified: head/ports-mgmt/portlint/Makefile
==============================================================================
--- head/ports-mgmt/portlint/Makefile	Sun Jun 24 16:03:41 2018	(r473206)
+++ head/ports-mgmt/portlint/Makefile	Sun Jun 24 16:13:06 2018	(r473207)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	portlint
-PORTVERSION=	2.18.2
+PORTVERSION=	2.18.3
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	# none
 DISTFILES=	# none

Modified: head/ports-mgmt/portlint/src/portlint.pl
==============================================================================
--- head/ports-mgmt/portlint/src/portlint.pl	Sun Jun 24 16:03:41 2018	(r473206)
+++ head/ports-mgmt/portlint/src/portlint.pl	Sun Jun 24 16:13:06 2018	(r473207)
@@ -15,7 +15,7 @@
 # was removed.
 #
 # $FreeBSD$
-# $MCom: portlint/portlint.pl,v 1.463 2018/05/12 22:12:18 jclarke Exp $
+# $MCom: portlint/portlint.pl,v 1.467 2018/06/24 16:07:04 jclarke Exp $
 #
 
 use strict;
@@ -50,7 +50,7 @@ $portdir = '.';
 # version variables
 my $major = 2;
 my $minor = 18;
-my $micro = 2;
+my $micro = 3;
 
 # default setting - for FreeBSD
 my $portsdir = '/usr/ports';
@@ -1149,18 +1149,9 @@ sub check_depends_syntax {
 			# check Python flavor
 			my $bdir = basename($m{'dir'});
 			if ($bdir =~ /^py-/) {
-				if (!defined($makevar{USE_PYTHON}) ||
-					$makevar{USE_PYTHON} eq 'noflavors' ||
-					$makevar{USE_PYTHON} eq '') {
-					if ($m{'fla'} ne '${PY_FLAVOR}') {
-						&perror("WARN", $file, -1, "you may want directory for ".
-							"dependency $m{'dep'} to be $m{'dir'}:\@\${PY_FLAVOR}");
-					}
-				} else {
-					if ($m{'fla'} ne '${FLAVOR}') {
-						&perror("WARN", $file, -1, "you may want directory for ".
-							"dependency $m{'dep'} to be $m{'dir'}:\@\${FLAVOR}");
-					}
+				if ($m{'fla'} ne '${PY_FLAVOR}') {
+					&perror("WARN", $file, -1, "you may want directory for ".
+						"dependency $m{'dep'} to be $m{'dir'}\@\${PY_FLAVOR}");
 				}
 			}
 
@@ -2767,9 +2758,14 @@ DIST_SUBDIR EXTRACT_ONLY
 				foreach my $mss (split(/\s+/, $makevar{MASTER_SITES_SUBDIRS})) {
 					my ($ms, $sd) = split(/:/, $mss);
 					if ($i =~ /^$ms/ && $i ne $ms) {
-						&perror("WARN", $file, -1, "typically when you specify magic site $ms ".
-							"you do not need anything else as $sd is assumed");
-						$good_ms = 0;
+						my $ip = $i;
+						$ip =~ s/^$ms\///;
+						my $exp_sd = get_makevar($ip);
+						if ($exp_sd eq $sd) {
+							&perror("WARN", $file, -1, "typically when you specify magic site $ms ".
+								"you do not need anything else as $sd is assumed");
+							$good_ms = 0;
+						}
 					}
 				}
 				if ($good_ms) {
@@ -3627,7 +3623,7 @@ EOF
 sub get_makevar {
 	my($cmd, $result);
 
-	$cmd = join(' -V ', "make $makeenv MASTER_SITE_BACKUP=''", @_);
+	$cmd = join(' -V ', "make $makeenv MASTER_SITE_BACKUP=''", map { "'$_'" } @_);
 	$result = `$cmd`;
 	chomp $result;
 
@@ -3642,7 +3638,7 @@ sub get_makevar {
 sub get_makevar_raw {
 	my($cmd, $result);
 
-	$cmd = join(' -XV ', "make $makeenv MASTER_SITE_BACKUP=''", @_);
+	$cmd = join(' -XV ', "make $makeenv MASTER_SITE_BACKUP=''", map { "'$_'" } @_);
 	$result = `$cmd`;
 	chomp $result;
 


More information about the svn-ports-all mailing list