Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70510 - Catalyst without ccache
Summary: Catalyst without ccache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 14:56 UTC by Bug Hunter
Modified: 2005-01-14 14:42 UTC (History)
0 users

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 Bug Hunter 2004-11-08 14:56:32 UTC
Catalyst depends on ccache even though it can be used without it

Possibly convert to a (local) USE flag?


Reproducible: Always
Steps to Reproduce:
1. emerge -vp catalyst
Actual Results:  
[ebuild  N    ] dev-util/ccache-2.3  0 kB 
[ebuild     U ] dev-util/catalyst-1.1.1 [1.0.9] +cdr +doc* 488 kB 


Expected Results:  
[ebuild     U ] dev-util/catalyst-1.1.1 [1.0.9] +cdr +doc* 488 kB
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-07 15:28:53 UTC
Is it not possible to isolate the catalyst ccache information from the system ccache information?  I mean, catalyst should be able to install ccache when it is configured, and uninstall it when it is done.  It also should be smart enough to see if it is already installed on the host system.  Isn't this how distcc works with catalyst?
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2004-12-15 16:53:24 UTC
distcc doesn't use the host system. since it is used in a chroot, the package must first be merged into the chroot before it can be used.

To be honest, I don't know why ccache is a dep. Its been awhile since I have looked at the code, but IIRC, ccache is merged in the chroot and a bind mount is made to the system ccache, er, cache. (which is what you are saying ...)
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-15 18:02:36 UTC
I think the problem is that the system cache doesn't exist unless ccache is installed.  This can cause catalyst to fail.

We basically have two options.  RDEPEND on ccache (like we do now) or RDEPEND on ccache if a USE flag is set.
Comment 4 John Davis (zhen) (RETIRED) gentoo-dev 2004-12-15 19:42:55 UTC
hm. USE flag sounds good to me in this case ..
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-16 05:42:15 UTC
Alright... this brings up another point.  Should catalyst have a RDEPEND for other items that it uses?  I mean, we've got cdr-tools, zisofs-tools, squashfs-tools, splash-utils, bootsplash...  I'm sure there are some others, but those are all I could think of at this time.

Should we make them all USE flags?

What do we do about bootsplash/gensplash?  They are mutually exclusive on a machine, so USE="bootsplash gensplash" would be invalid.

Should we instead default to bootsplash and have gensplash as a USE flag?  We cannot default to gensplash simply because gensplash uses KBUILD, which means it checks your *current kernel* for gensplash patches.

What if a person is running a 2.4 kernel, but wants to build a 2.6/gensplash LiveCD?

Did I mention that gensplash is a PITA?
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-14 14:42:16 UTC
I forgot to mention that this is resolved in catalyst 1.1.2