Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #12218 (reopened enhancement)

Opened 14 months ago

Last modified 4 months ago

tracemode complains about $CCACHE_DIR

Reported by: afb@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts base enhancements
Component: base Version: 1.6.0
Keywords: Cc: raimue@…, epimenov@…

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

macports-ccachetrace.patch (0.8 kB) - added by afb@… 14 months ago.
macports-ccachetrace.patch
patch-macports-tracemode-disable-filter.diff (1.5 kB) - added by raimue@… 7 months ago.
macports-ccachetrace.2.patch (1.0 kB) - added by raimue@… 4 months ago.

Change History

Changed 14 months ago by afb@…

macports-ccachetrace.patch

Changed 14 months ago by eridius@…

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?

Changed 14 months ago by eridius@…

  • status changed from new to closed
  • resolution set to wontfix

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?

Changed 14 months ago by afb@…

I don't have the ccache port, I have it installed system-wide. But I can work around it. :-P

Changed 11 months ago by afb@…

  • status changed from closed to reopened
  • resolution wontfix deleted

Pretty please ?

Might be more interesting to have ccache support now, when ccache is supported in MacPorts ?

See ticket #5390

Changed 9 months ago by jmpp@…

  • type changed from defect to enhancement
  • milestone set to MacPorts base enhancements

Changed 7 months ago by raimue@…

Changed 7 months ago by raimue@…

  • cc raimue@… added
  • version changed from 1.5 to 1.6.0

I added another patch which disables filters in trace mode completely. Maybe this is a better solution?

Changed 4 months ago by raimue@…

Changed 4 months ago by raimue@…

  • 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?

Note: See TracTickets for help on using tickets.