[99029] trunk/base/src/port1.0/portconfigure.tcl
jmr at macports.org
jmr at macports.org
Wed Oct 24 07:09:43 PDT 2012
Revision: 99029
http://trac.macports.org//changeset/99029
Author: jmr at macports.org
Date: 2012-10-24 07:09:43 -0700 (Wed, 24 Oct 2012)
Log Message:
-----------
don't init the ccache dir if the portfile has disabled ccache
Modified Paths:
--------------
trunk/base/src/port1.0/portconfigure.tcl
Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl 2012-10-24 14:06:52 UTC (rev 99028)
+++ trunk/base/src/port1.0/portconfigure.tcl 2012-10-24 14:09:43 UTC (rev 99029)
@@ -228,8 +228,8 @@
ui_debug "Using compiler '$name'"
# Additional ccache directory setup
- global configureccache ccache_dir ccache_size macportsuser
- if {${configureccache}} {
+ global configure.ccache ccache_dir ccache_size macportsuser
+ if {${configure.ccache}} {
# Create ccache directory with correct permissions with root privileges
elevateToRoot "configure ccache"
if [catch {
@@ -237,17 +237,17 @@
file attributes ${ccache_dir} -owner ${macportsuser} -permissions 0755
} result] {
ui_warn "ccache_dir ${ccache_dir} could not be created; disabling ccache: $result"
- set configureccache no
+ set configure.ccache no
}
dropPrivileges
# Initialize ccache directory with the given maximum size
- if {${configureccache}} {
+ if {${configure.ccache}} {
if [catch {
exec ccache -M ${ccache_size} >/dev/null
} result] {
ui_warn "ccache_dir ${ccache_dir} could not be initialized; disabling ccache: $result"
- set configureccache no
+ set configure.ccache no
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121024/c33751e3/attachment.html>
More information about the macports-changes
mailing list