Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 505334

Summary: ccache does not create symlinks on systemd (no /etc/init.d/functions.sh)
Product: Gentoo Linux Reporter: Hylke <gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Hylke 2014-03-22 08:30:10 UTC
Created attachment 373246 [details]
emerge --info

The dev-util/ccache ebuild uses ccache-config to create symlinks. This script imports /etc/init.d/functions.sh, which does not exist on systemd installs

From /usr/bin/ccache-config:
  . "${EPREFIX}"/etc/init.d/functions.sh 2>/dev/null || {
Note the '2>/dev/null', which will suppress any errors, in my case no 'file not found' was shown.

Tested dev-util/ccache versions:
 3.1.9
 3.1.9-r3 (~amd64)

possible fixes:
 -  depend on gentoo-functions and fix the explicit path in /usr/bin/ccache-config
 - don't use functions.sh at all. pretty names are nices, but would be nice to have it still working otherwise
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-22 14:59:56 UTC

*** This bug has been marked as a duplicate of bug 504380 ***