[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A compiler and $HOME
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Re: A compiler and $HOME
- From: "Brian J. Kifiak" <bk_(_at_)_rt_(_dot_)_fm>
- Date: 23 May 2002 04:15:43 -0000
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org
> Why does it write to $HOME in the first place? It probably
> shouldn't. I mean, think about it from packaging perspective.
I haven't explained correctly then.
The port of ccache itself is fine, it packages without touching
$HOME. I'm asking my question about a problem I encountered in the
ports infrastructure when trying to use ccache with it.
ccache the program is a compiler cache. It caches object code and
a hash of its source, using that to bypass compilation if it has a
cached version on hand. It keeps its cache in $HOME/.ccache/ by
default. To use it, you put it in front of the compiler. When
building ports, this means setting CC=ccache gcc.
So, essentially $CC is writing things to $HOME.
My question is if this can be allowed while still using the
bsd.port.mk magic for /${DISTNAME}_writes_to_HOME flagging? (As
right now when building a port, $CC is writing to $HOME/.ccache/
which ends up in the _writes_to_HOME directory.)
Visit your host, monkey.org