Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2016 09:14:35 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420329 - head/Tools/scripts
Message-ID:  <201608170914.u7H9EZ41049506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: matthew
Date: Wed Aug 17 09:14:35 2016
New Revision: 420329
URL: https://svnweb.freebsd.org/changeset/ports/420329

Log:
  Fix the '-a' option to ${PORTSDIR}/Tools/scripts/addport
  
  Summary:
  Currently addport -a ends up running a command line like:
  
     make  PORTSDIR="/tmp/ap.BsOuZJBy" clean check-categories
  
  where the temporary directory has only parts of the ports tree
  (specifically bits under ${PORTSDIR}/Mk) checked out.  This can't work
  as 'make check-categories' needs to see the entire ports tree checked
  out.
  
  Instead, run the checks specified by '-a' and '-t' with the value of
  $PORTSDIR from the environment.
  
  Reviewers: crees
  
  Reviewed By: crees
  
  Subscribers: mat
  
  Differential Revision: https://reviews.freebsd.org/D7525

Modified:
  head/Tools/scripts/addport

Modified: head/Tools/scripts/addport
==============================================================================
--- head/Tools/scripts/addport	Wed Aug 17 09:11:08 2016	(r420328)
+++ head/Tools/scripts/addport	Wed Aug 17 09:14:35 2016	(r420329)
@@ -152,7 +152,7 @@ my @commands;
 my $passenv = "";
 if ($addlchk && -f $portlint) {
 	$passenv = "DISTDIR=\"$distdir\"" if -d $distdir;
-	$passenv = $passenv . " PORTSDIR=\"$tmpdir\"" if !$nomkdir;
+	$passenv = $passenv . " PORTSDIR=\"$portsdir\"" if !$nomkdir;
 	push(@commands, "$make $passenv clean check-categories");
 	push(@commands, "$portlint $plint_args");
 	push(@commands, "$make $passenv FETCH_BEFORE_ARGS='-A' checksum") if !$nofetch;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608170914.u7H9EZ41049506>