Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271541 - sys-devel/git: /etc/init.d/git-daemon looking for the librc at wrong place
Summary: sys-devel/git: /etc/init.d/git-daemon looking for the librc at wrong place
Status: RESOLVED DUPLICATE of bug 270646
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 14:40 UTC by Alexander Y. Fomichev
Modified: 2009-05-28 15:27 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 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 ***