Changeset 97868
- Timestamp:
- Sep 18, 2012, 11:59:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portconfigure.tcl
r92588 r97868 231 231 global configureccache ccache_dir ccache_size macportsuser 232 232 if {${configureccache}} { 233 # Create ccache directory with correct permissions with root privileges 233 234 elevateToRoot "configure ccache" 234 235 if [catch { 235 236 file mkdir ${ccache_dir} 236 237 file attributes ${ccache_dir} -owner ${macportsuser} -permissions 0755 238 } result] { 239 ui_warn "ccache_dir ${ccache_dir} could not be created; disabling ccache: $result" 240 set configureccache no 241 } 242 dropPrivileges 243 244 # Initialize ccache directory with the given maximum size 245 if {${configureccache}} { 246 if [catch { 237 247 exec ccache -M ${ccache_size} >/dev/null 238 248 } result] { 239 ui_warn "ccache_dir ${ccache_dir} could not be initialized; disabling ccache: $result"240 set configureccache no241 }242 dropPrivileges249 ui_warn "ccache_dir ${ccache_dir} could not be initialized; disabling ccache: $result" 250 set configureccache no 251 } 252 } 243 253 } 244 254 }
Note: See TracChangeset
for help on using the changeset viewer.