Ticket #42428: patch-v2-portsandbox.tcl.diff

File patch-v2-portsandbox.tcl.diff, 621 bytes (added by ajdudman, 9 years ago)

Improved patch that uses /bin/df to calculate the temporary items location

  • portsandbox.tcl

     
    8181    if {${configure.ccache}} {
    8282        lappend allow_dirs $ccache_dir
    8383    }
     84    if {[option build.type] eq "xcode" && \
     85        ![catch {set tmp_items_dir [file join [lindex [exec /bin/df $workpath] end] ".TemporaryItems"]}]} {
     86        lappend allow_dirs $tmp_items_dir
     87    }
    8488
    8589    set portsandbox_profile "(version 1) (allow default) (deny file-write*) \
    8690(allow file-write-data (literal \"/dev/null\") (literal \"/dev/zero\") \