Ticket #37834: TMPDIR.diff
File TMPDIR.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
src/port1.0/portutil.tcl
5 5 # Copyright (c) 2002-2003 Apple Inc. 6 6 # Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org> 7 7 # Copyright (c) 2006-2007 Markus W. Weissmann <mww@macports.org> 8 # Copyright (c) 2004-201 2The MacPorts Project8 # Copyright (c) 2004-2013 The MacPorts Project 9 9 # All rights reserved. 10 10 # 11 11 # Redistribution and use in source and binary forms, with or without … … 1318 1318 set procedure [ditem_key $ditem procedure] 1319 1319 set savedhome [file join $portdbpath home] 1320 1320 set env(HOME) "${workpath}/.home" 1321 set env(TMPDIR) "${workpath}/.tmp" 1321 1322 1322 1323 if {[ditem_key $ditem state] != "no"} { 1323 1324 set target_state_fd [open_statefile] … … 1532 1533 } 1533 1534 1534 1535 set env(HOME) $savedhome 1536 if {[info exists env(TMPDIR)]} { 1537 unset env(TMPDIR) 1538 } 1535 1539 1536 1540 return $result 1537 1541 } … … 1665 1669 } 1666 1670 1667 1671 if {![tbool ports_dryrun]} { 1668 if {![file isdirectory $workpath]} { 1669 file mkdir "${workpath}/.home" 1672 set need_chown 0 1673 if {![file isdirectory $workpath/.home]} { 1674 file mkdir $workpath/.home 1675 set need_chown 1 1676 } 1677 if {![file isdirectory $workpath/.tmp]} { 1678 file mkdir $workpath/.tmp 1679 set need_chown 1 1680 } 1681 if {$need_chown} { 1670 1682 chownAsRoot $subbuildpath 1671 1683 } 1672 1684 # Create a symlink to the workpath for port authors