Skip to content

Commit

Permalink
Instead of filtering out, filter the environment variables in.
Browse files Browse the repository at this point in the history
Also fixed some copy/paste bug.

Bug:
Submitted by:   blb@
Reviewed by:
Approved by:    mww@
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14429 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
pguyot committed Oct 5, 2005
1 parent 13a4a18 commit 9112a30
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/darwinports1.0/darwinports.tcl
@@ -1,5 +1,5 @@
# darwinports.tcl
# $Id: darwinports.tcl,v 1.195 2005/09/20 04:35:43 jberry Exp $
# $Id: darwinports.tcl,v 1.196 2005/10/05 07:31:25 pguyot Exp $
#
# Copyright (c) 2002 Apple Computer, Inc.
# Copyright (c) 2004 - 2005 Paul Guyot, <pguyot@kallisys.net>.
Expand Down Expand Up @@ -417,15 +417,18 @@ proc dportinit {up_ui_options up_options up_variations} {
}

# ENV cleanup.
# Remove:
# - P4*
# - LANG
# - LC*
# - BZIP
array unset env "P4*"
array unset env "LANG"
array unset env "LC*"
array unset env "BZIP"
set keepenvkeys { DISPLAY DYLD_FALLBACK_FRAMEWORK_PATH
DYLD_FALLBACK_LIBRARY_PATH DYLD_FRAMEWORK_PATH
DYLD_LIBRARY_PATH HOME LD_PREBIND
LD_PREBIND_ALLOW_OVERLAP MASTER_SITE_LOCAL
PATCH_SITE_LOCAL PATH PORTSRC TMP TMPDIR USER GROUP
}

foreach envkey [array names env] {
if {[lsearch $keepenvkeys $envkey] == -1} {
array unset env $envkey
}
}

if {![info exists xcodeversion] || ![info exists xcodebuildcmd]} {
# We'll resolve these later (if needed)
Expand Down Expand Up @@ -805,7 +808,7 @@ proc _libtest {dport depspec} {
}
lappend search_path /lib /usr/lib /usr/X11R6/lib ${prefix}/lib
if {[info exists env(DYLD_FALLBACK_LIBRARY_PATH)]} {
lappend search_path $env(DYLD_LIBRARY_PATH)
lappend search_path $env(DYLD_FALLBACK_LIBRARY_PATH)
}

set i [string first . $depline]
Expand Down

0 comments on commit 9112a30

Please sign in to comment.