[24848] trunk/base/src/darwinports1.0/darwinports.tcl

source_changes at macosforge.org source_changes at macosforge.org
Sun May 6 08:02:15 PDT 2007


Revision: 24848
          http://trac.macosforge.org/projects/macports/changeset/24848
Author:   jberry at macports.org
Date:     2007-05-06 08:02:14 -0700 (Sun, 06 May 2007)

Log Message:
-----------
Create a new interp variable 'prefix_frozen' that holds the value of prefix, even when a particular portfile redefines 'prefix'

Modified Paths:
--------------
    trunk/base/src/darwinports1.0/darwinports.tcl

Modified: trunk/base/src/darwinports1.0/darwinports.tcl
===================================================================
--- trunk/base/src/darwinports1.0/darwinports.tcl	2007-05-06 14:44:16 UTC (rev 24847)
+++ trunk/base/src/darwinports1.0/darwinports.tcl	2007-05-06 15:02:14 UTC (rev 24848)
@@ -45,7 +45,7 @@
     	mp_remote_url mp_remote_submit_url"
     variable user_options "submitter_name submitter_email submitter_key"
     variable portinterp_options "\
-    	portdbpath portpath portbuildpath auto_path prefix portsharepath \
+    	portdbpath portpath portbuildpath auto_path prefix prefix_frozen portsharepath \
     	registry.path registry.format registry.installtype portarchivemode portarchivepath \
     	portarchivetype portautoclean porttrace portverbose destroot_umask rsync_server \
     	rsync_options rsync_dir startupitem_type \
@@ -258,6 +258,7 @@
    	global darwinports::destroot_umask
    	global darwinports::libpath
    	global darwinports::prefix
+   	global darwinports::prefix_frozen
    	global darwinports::registry.installtype
    	global darwinports::rsync_dir
    	global darwinports::rsync_options
@@ -423,6 +424,10 @@
 		}
 	}
 
+    # Duplicate prefix into prefix_frozen, to that port actions
+    # can always get to the original prefix, even if a portfile overrides prefix
+    set darwinports::prefix_frozen $prefix
+    
 	# Export verbosity.
 	if {![info exists portverbose]} {
 		set darwinports::portverbose "no"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070506/17e240c1/attachment.html


More information about the macports-changes mailing list