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

Bug 271541

Summary: sys-devel/git: /etc/init.d/git-daemon looking for the librc at wrong place
Product: Gentoo Linux Reporter: Alexander Y. Fomichev <git.user>
Component: [OLD] baselayoutAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Y. Fomichev 2009-05-28 14:40:38 UTC
G' day

it seems like while librc (a part of openrc) has been moved from /lib into /usr/lib git-daemon doesn't address this issue, so in short with baselayout-2
git-daemon fail to startup silently and start-stop-daemon provide something
cryptic like 'fatal: cannot handle daemon internally'. 
IIUC this is because of --name parameter provided to start-stop-daemon by
init script i.e:
 
[ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon"

hmm... so if start-stop-daemon so sensible to 'name' let's provide a correct 
way to librc

---
--- git-daemon.orig     2009-05-28 17:51:29.631561881 +0400
+++ git-daemon  2009-05-28 17:51:11.617024817 +0400
@@ -11,7 +11,7 @@ depend() {
 }

 start() {
-       [ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon"
+       [ -e /usr/lib/librc.so ] || BL1_COMPAT="--name git-daemon"
        ebegin "Starting git-daemon"
                start-stop-daemon --start --quiet --background \
                --pidfile ${PIDFILE} ${BL1_COMPAT} \
Comment 1 Rafał Mużyło 2009-05-28 15:27:51 UTC
Not a full duplicate, but close enough.

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