Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239496 - add support for RESTRICT="ccache" (explicitely disabling ccache)
Summary: add support for RESTRICT="ccache" (explicitely disabling ccache)
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 206822
  Show dependency tree
 
Reported: 2008-10-04 04:45 UTC by Christian Parpart (RETIRED)
Modified: 2008-11-03 06:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Parpart (RETIRED) gentoo-dev 2008-10-04 04:45:33 UTC
the most common use-case might remain to multilib ebuilds, or to badly designed filenames in a source tree.
however, what happens is, when you compile two files named equally (or even same content BUT different compile flags), than ccache returns a wrong binary on second compile.
in my case, the foo.c gets compiled for two ABIs (amd64 first, then x86) and the second compile however produces the first ABIs output, as ccache doesn't seem to care about the different cflags.
Instead of telling the users not to enable ccache when compiling package foo, i'd rather recomment supporting explicit ccache-disabling per ebuild.

RESTRICT="ccache"

Any thoughts?
Comment 1 Zac Medico gentoo-dev 2008-10-04 05:57:46 UTC
This should do the trick:

export CCACHE_DISABLE=1
Comment 2 Martin Väth 2008-10-04 07:28:17 UTC
(In reply to comment #0)
> as ccache doesn't seem to care about the different cflags.

There must be wrong something else: ccache _does_ care about cflags.
Comment 3 Christian Parpart (RETIRED) gentoo-dev 2008-10-13 20:01:04 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > as ccache doesn't seem to care about the different cflags.
> 
> There must be wrong something else: ccache _does_ care about cflags.
> 

well, that's why i've passed -DABI=.... to it, but somehow, ppl still filled ccache-related compile issues. *maybe* their cache/system screwed up.

However, just like endusers are able to set FEATURES=ccache/distcc, i'd welcome to see a RESTRICT=ccache/distcc aswell.
Comment 4 SpanKY gentoo-dev 2008-11-02 05:52:42 UTC
so to spread misinformation out there, you propose adding a RESTRICT for a feature that lacks a real bug/example of where it causes a problem ?
Comment 5 SpanKY gentoo-dev 2008-11-03 06:21:29 UTC
actually, i just realized that we're talking about RESTRICT here which means you're proposing having ebuild authors add this to their ebuilds.  the last thing we want is random people throwing this RESTRICT around.  if there was real need for this, we'd have a real bug report to look at.  until that happens, there's no point in introducing this as a RESTRICT which will most likely be wrong 99% of the time.