#12218 closed enhancement (fixed)
tracemode complains about $CCACHE_DIR
Reported by: | afb@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.3.0 |
Component: | base | Version: | 1.6.0 |
Keywords: | Cc: | raimue (Rainer Müller), epimenov@…, cooljeanius (Eric Gallager) | |
Port: |
Description
Warning: A creation/deletion/modification was attempted outside sandbox: /Users/afb/.ccache/stats Warning: A creation/deletion/modification was attempted outside sandbox: /Users/afb/.ccache/stats Warning: A creation/deletion/modification was attempted outside sandbox: /Users/afb/.ccache/stats
It should ignore directories $CCACHE_DIR" and "$HOME/.ccache" (the default value of it)
Attachments (3)
Change History (17)
Changed 17 years ago by afb@…
Attachment: | macports-ccachetrace.patch added |
---|
comment:1 Changed 17 years ago by kballard (Lily Ballard)
I've never heard of this .ccache dir before. You sure this isn't a bug with the particular Portfile you were trying to install?
comment:2 Changed 17 years ago by kballard (Lily Ballard)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Ok, after some research I'm guessing you have the ccache port installed and that's being used? In that case, I don't think we should support it. If you want to use the ccache port, trace mode won't work for you, and that should just be a fact of life. We really shouldn't hack around this sort of thing. Maybe you can set an env var that changes the ccache dir to live in somewhere like /tmp?
comment:3 Changed 17 years ago by afb@…
I don't have the ccache port, I have it installed system-wide. But I can work around it. :-P
comment:4 Changed 17 years ago by afb@…
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Pretty please ?
Might be more interesting to have ccache support now, when ccache is supported in MacPorts ?
See ticket #5390
comment:5 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Milestone: | → MacPorts base enhancements |
---|---|
Type: | defect → enhancement |
Changed 17 years ago by raimue (Rainer Müller)
Attachment: | patch-macports-tracemode-disable-filter.diff added |
---|
comment:6 Changed 17 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|---|
Version: | 1.5 → 1.6.0 |
I added another patch which disables filters in trace mode completely. Maybe this is a better solution?
Changed 17 years ago by raimue (Rainer Müller)
Attachment: | macports-ccachetrace.2.patch added |
---|
comment:7 Changed 17 years ago by raimue (Rainer Müller)
Cc: | epimenov@… added |
---|
I am revisiting this issue to find a solution eventually. I updated the patch submitted by afb for current trunk.
But another problem still exists that tracemode complains about access to the ccache binary.
trace: access denied to /opt/local/bin/ccache (ccache)
Therefore we still can't use ccache in tracemode even with this patch. What would be an appropriate solution here? Should we add ccache and distcc to some sort of whitelist (does that exist?) when they are enabled by port itself?
comment:8 Changed 16 years ago by raimue (Rainer Müller)
comment:10 Changed 12 years ago by cooljeanius (Eric Gallager)
I think #36211 might be related to this (edit: or not? (comment:ticket:36211:14))
comment:11 follow-up: 12 Changed 11 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This is fixed, because having ccache enabled automatically adds the ccache port to list of acceptable dependencies of trace mode.
comment:12 Changed 11 years ago by cooljeanius (Eric Gallager)
Replying to cal@…:
This is fixed, because having ccache enabled automatically adds the ccache port to list of acceptable dependencies of trace mode.
Which revision was this added in?
comment:13 Changed 11 years ago by neverpanic (Clemens Lang)
I don't know, please use the blame feature on browser:trunk/base/src/port1.0/portutil.tcl?marks=1496-1499#L1490 yourself to find out.
comment:14 Changed 11 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future → MacPorts 2.3.0 |
---|
macports-ccachetrace.patch