Ticket #12218: macports-ccachetrace.2.patch

File macports-ccachetrace.2.patch, 975 bytes (added by raimue (Rainer Müller), 16 years ago)
  • src/port1.0/porttrace.tcl

     
    7373                        # /dev/null
    7474                        # /dev/tty
    7575                        # /Library/Caches/com.apple.Xcode
    76                         set trace_sandboxbounds "/tmp:/private/tmp:/var/tmp:/private/var/tmp:/dev/:/etc/passwd:/etc/groups:/etc/localtime:/Library/Caches/com.apple.Xcode:${workpath}:$portpath"
     76                        # $CCACHE_DIR
     77                        # $HOMEDIR/.ccache
     78                        set trace_sandboxbounds "/tmp:/private/tmp:/var/tmp:/private/var/tmp:/dev/:/etc/passwd:/etc/groups:/etc/localtime:/Library/Caches/com.apple.Xcode:$env(HOME)/.ccache:${workpath}:$portpath"
    7779                        if {[info exists env(TMPDIR)]} {
    7880                                set trace_sandboxbounds "${trace_sandboxbounds}:$env(TMPDIR)"
    7981                        }
     82                        if {[info exists env(CCACHE_DIR)]} {
     83                                set trace_sandboxbounds "${trace_sandboxbounds}:$env(CCACHE_DIR)"
     84                        }
    8085                        tracelib setsandbox $trace_sandboxbounds
    8186                }
    8287        }