[97868] trunk/base/src/port1.0/portconfigure.tcl
raimue at macports.org
raimue at macports.org
Tue Sep 18 04:59:57 PDT 2012
Revision: 97868
http://trac.macports.org//changeset/97868
Author: raimue at macports.org
Date: 2012-09-18 04:59:57 -0700 (Tue, 18 Sep 2012)
Log Message:
-----------
port1.0/portconfigure.tcl:
ccache failed with ccache >= 3.1.7, since the initialization did not use
correct permissions. This only creates the directory as root, and then runs the
initialization as macportsuser.
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-09-18 10:16:34 UTC (rev 97867)
+++ trunk/base/src/port1.0/portconfigure.tcl 2012-09-18 11:59:57 UTC (rev 97868)
@@ -230,16 +230,26 @@
# Additional ccache directory setup
global configureccache ccache_dir ccache_size macportsuser
if {${configureccache}} {
+ # Create ccache directory with correct permissions with root privileges
elevateToRoot "configure ccache"
if [catch {
file mkdir ${ccache_dir}
file attributes ${ccache_dir} -owner ${macportsuser} -permissions 0755
- exec ccache -M ${ccache_size} >/dev/null
} result] {
- ui_warn "ccache_dir ${ccache_dir} could not be initialized; disabling ccache: $result"
+ ui_warn "ccache_dir ${ccache_dir} could not be created; disabling ccache: $result"
set configureccache no
}
dropPrivileges
+
+ # Initialize ccache directory with the given maximum size
+ if {${configureccache}} {
+ 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
+ }
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120918/ae5a20be/attachment.html>
More information about the macports-changes
mailing list