diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-12-31 01:45:43 +0800 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-12-31 01:45:43 +0800 |
commit | 8a8dea62ac398e04a3a0f00fbc9b33d0d6557f1d (patch) | |
tree | 62656bc60b064035e0c12b4cb83e0c3093a1018b /ports-mgmt | |
parent | 2a2c94eded6180ae1824ab5d7095f146146887da (diff) | |
download | freebsd-ports-gnome-8a8dea62ac398e04a3a0f00fbc9b33d0d6557f1d.tar.gz freebsd-ports-gnome-8a8dea62ac398e04a3a0f00fbc9b33d0d6557f1d.tar.zst freebsd-ports-gnome-8a8dea62ac398e04a3a0f00fbc9b33d0d6557f1d.zip |
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 'ports-mgmt')
-rw-r--r-- | ports-mgmt/porteasy/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/porteasy/src/porteasy.8 | 8 | ||||
-rw-r--r-- | ports-mgmt/porteasy/src/porteasy.pl | 10 |
3 files changed, 18 insertions, 2 deletions
diff --git a/ports-mgmt/porteasy/Makefile b/ports-mgmt/porteasy/Makefile index c27e404fa916..d12af106037e 100644 --- a/ports-mgmt/porteasy/Makefile +++ b/ports-mgmt/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/ports-mgmt/porteasy/src/porteasy.8 b/ports-mgmt/porteasy/src/porteasy.8 index 444948a331ad..b3fd25241dcf 100644 --- a/ports-mgmt/porteasy/src/porteasy.8 +++ b/ports-mgmt/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/ports-mgmt/porteasy/src/porteasy.pl b/ports-mgmt/porteasy/src/porteasy.pl index 3801b5d5cdd6..ff794e7604b2 100644 --- a/ports-mgmt/porteasy/src/porteasy.pl +++ b/ports-mgmt/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(); |