Opened 14 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

macports-ccachetrace.patch (855 bytes) - added by afb@… 14 years ago.
macports-ccachetrace.patch
patch-macports-tracemode-disable-filter.diff (1.5 KB) - added by raimue (Rainer Müller) 13 years ago.
macports-ccachetrace.2.patch (975 bytes) - added by raimue (Rainer Müller) 13 years ago.

Download all attachments as: .zip

Change History (17)

Changed 14 years ago by afb@…

Attachment: macports-ccachetrace.patch added

macports-ccachetrace.patch

comment:1 Changed 14 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 14 years ago by kballard (Lily Ballard)

Resolution: wontfix
Status: newclosed

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 14 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 13 years ago by afb@…

Resolution: wontfix
Status: closedreopened

Pretty please ?

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

See ticket #5390

comment:5 Changed 13 years ago by jmpp@…

Milestone: MacPorts base enhancements
Type: defectenhancement

Changed 13 years ago by raimue (Rainer Müller)

comment:6 Changed 13 years ago by raimue (Rainer Müller)

Cc: raimue@… added
Version: 1.51.6.0

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

Changed 13 years ago by raimue (Rainer Müller)

comment:7 Changed 13 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 12 years ago by raimue (Rainer Müller)

Committed macports-ccachetrace.2.patch in r44791. The issue from above is still valid.

comment:9 Changed 8 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:10 Changed 8 years ago by cooljeanius (Eric Gallager)

I think #36211 might be related to this (edit: or not? (comment:ticket:36211:14))

Last edited 8 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:11 Changed 7 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: reopenedclosed

This is fixed, because having ccache enabled automatically adds the ccache port to list of acceptable dependencies of trace mode.

comment:12 in reply to:  11 Changed 7 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 7 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 7 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.3.0
Note: See TracTickets for help on using tickets.