summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-12-30 17:45:43 +0000
committerdes <des@FreeBSD.org>2004-12-30 17:45:43 +0000
commita4b31a9177a78b46197586a35948a2c82eb13595 (patch)
treef70541c234577fa9f057777f83956221725d4de6 /misc
parentc9349b5a23f189f71717685449f7b493876283d6 (diff)
downloadFreeBSD-ports-a4b31a9177a78b46197586a35948a2c82eb13595.zip
FreeBSD-ports-a4b31a9177a78b46197586a35948a2c82eb13595.tar.gz
Before performing any work, unset a number of environment variables which
may adversely affect the port build. See the man page for details.
Diffstat (limited to 'misc')
-rw-r--r--misc/porteasy/Makefile2
-rw-r--r--misc/porteasy/src/porteasy.88
-rw-r--r--misc/porteasy/src/porteasy.pl10
3 files changed, 18 insertions, 2 deletions
diff --git a/misc/porteasy/Makefile b/misc/porteasy/Makefile
index c27e404..d12af10 100644
--- a/misc/porteasy/Makefile
+++ b/misc/porteasy/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= porteasy
-PORTVERSION= 2.8.2
+PORTVERSION= 2.8.3
CATEGORIES= misc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/misc/porteasy/src/porteasy.8 b/misc/porteasy/src/porteasy.8
index 444948a..b3fd252 100644
--- a/misc/porteasy/src/porteasy.8
+++ b/misc/porteasy/src/porteasy.8
@@ -332,6 +332,14 @@ Specifies a set of default options for
.Nm .
These options can be overridden by command line parameters.
.El
+.Pp
+The following variables are removed from the environment before any
+work is performed:
+.Ev CLASSPATH ,
+.Ev LD_* ,
+.Ev JAVA_* ,
+.Ev USE_* ,
+.Ev WANT_* .
.Sh FILES
.Nm
maintains and operates on a ports tree, normally
diff --git a/misc/porteasy/src/porteasy.pl b/misc/porteasy/src/porteasy.pl
index 3801b5d..ff794e7 100644
--- a/misc/porteasy/src/porteasy.pl
+++ b/misc/porteasy/src/porteasy.pl
@@ -33,7 +33,7 @@ use strict;
use Fcntl;
use Getopt::Long;
-my $VERSION = "2.8.2";
+my $VERSION = "2.8.3";
my $COPYRIGHT = "Copyright (c) 2000-2004 Dag-Erling Smørgrav. " .
"All rights reserved.";
@@ -1239,6 +1239,14 @@ MAIN:{
bsd::errx(1, "No CVS root, please use the -r option or set \$CVSROOT");
}
+ # Unset potentially troublesom environment variables
+ foreach my $var (sort(keys(%ENV))) {
+ if ($var =~ m/^(CLASSPATH|(LD|USE|JAVA|WANT)_\w+)$/) {
+ bsd::warnx("Removing $var from environment");
+ delete($ENV{$var});
+ }
+ }
+
# Step 1: update the ports tree infrastructure
$release = `uname -r`;
update_root();
OpenPOWER on IntegriCloud