mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
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
This commit is contained in:
parent
642bf72f27
commit
27114e8d9c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420329
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user