Modified: branches/release_2_0/base/src/macports1.0/macports.tcl (90114 => 90115)
--- branches/release_2_0/base/src/macports1.0/macports.tcl 2012-02-22 10:53:05 UTC (rev 90114)
+++ branches/release_2_0/base/src/macports1.0/macports.tcl 2012-02-22 11:03:00 UTC (rev 90115)
@@ -898,7 +898,7 @@
trace add variable macports::xcodebuildcmd read macports::setxcodeinfo
}
- if {[vercmp $xcodeversion 4.3] >= 0} {
+ if {[getuid] == 0 && $os_major >= 11 && $os_platform == "darwin" && [vercmp $xcodeversion 4.3] >= 0} {
macports::copy_xcode_plist $env(HOME)
}
@@ -1008,19 +1008,16 @@
if {[file isfile $user_plist]} {
if {![file isdirectory "${target_dir}"]} {
if {[catch {file mkdir "${target_dir}"} result]} {
- ui_warn "Failed to create Library/Preferences in temporary home directory: $result"
+ ui_warn "Failed to create Library/Preferences in ${target_homedir}: $result"
return
}
}
- ui_debug "Copying $user_plist to temporary home directory ${target_dir}"
if {[file writable ${target_dir}] && [catch {
+ ui_debug "Copying $user_plist to ${target_dir}"
file copy -force $user_plist $target_dir
- if {[getuid] == 0} {
- file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser
- }
- file attributes "${target_dir}/com.apple.dt.Xcode.plist" -permissions 644
+ file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser -permissions 0644
} result]} {
- ui_warn "Failed to copy com.apple.dt.Xcode.plist to temporary home directory: $result"
+ ui_warn "Failed to copy com.apple.dt.Xcode.plist to ${target_dir}: $result"
}
}
}
@@ -1084,7 +1081,6 @@
$workername alias realpath realpath
$workername alias _mportsearchpath _mportsearchpath
$workername alias _portnameactive _portnameactive
- $workername alias _copy_xcode_plist macports::copy_xcode_plist
# New Registry/Receipts stuff
$workername alias registry_new registry::new_entry
Modified: branches/release_2_0/base/src/port1.0/portutil.tcl (90114 => 90115)
--- branches/release_2_0/base/src/port1.0/portutil.tcl 2012-02-22 10:53:05 UTC (rev 90114)
+++ branches/release_2_0/base/src/port1.0/portutil.tcl 2012-02-22 11:03:00 UTC (rev 90115)
@@ -1567,10 +1567,6 @@
if {![tbool ports_dryrun]} {
if {![file isdirectory $workpath]} {
file mkdir "${workpath}/.home"
- global xcodeversion
- if {[vercmp $xcodeversion 4.3] >= 0} {
- _copy_xcode_plist "${workpath}/.home"
- }
chownAsRoot $subbuildpath
}
# Create a symlink to the workpath for port authors