Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481172 - dev-db/mongodb - mongodb.initd script should not depend() on 'need net' by default
Summary: dev-db/mongodb - mongodb.initd script should not depend() on 'need net' by de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-15 14:19 UTC by Bjoern Rennhak
Modified: 2013-08-16 12:56 UTC (History)
2 users (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 Bjoern Rennhak 2013-08-15 14:19:43 UTC
Emerged dev-db/mongodb (2.4.5@08/15/2013) and services when executed with /etc/init.d/mongodb start fail with "* ERROR: cannot start mongos as net.eth0 would not start".

By default it requires net dependency which makes little sense. 
This can be fixed by including rc_need="!net" in /etc/conf.d/mongodb.

---

Relevant conversation from #gentoo on freenode IRC.

 14:59 <            _br_ > I don't have a eth0 here. I just want to run it on localhost. Is there a standard gentoo way to force mongo to not start by default.
                           on all interfaces?  * ERROR: cannot start mongos as net.eth0 would not start
 14:59 <+iamben> D-Chymera1: do you know which wifi driver your card needs? did you manual config, or genkernel?
 15:00 <          iamben+> _br_: you could put rc_need="!net" in /etc/conf.d/mongos
 15:00 <         dwfreed > _br_: change /etc/init.d/mongos to 'use net' rather than 'need net', and then file a bug against mongodb in bugs.gentoo.org to have.
                           the dev responsible fix that
 15:00 < dwfreed> or that's better
 15:00 <            _br_ > iamben: dwfreed: Thank you, I'll try that. Apprecate the help :)
 15:01 < dwfreed> use iamben's suggestion to get mongos to work, and then file the bug I suggested :0
 15:01 < dwfreed> s/0/)/
 15:01 <            _br_ > will do ! :)
 15:01 <+iamben> yeah it probably should not have a net dep at all, unless it actually needs to bind to a specific interface
 15:01 < dwfreed> a 'use net' dep wouldn't be bad, though
 15:02 < dwfreed> iamben: I always forget that you can override depend() in /etc/conf.d files, even though I do it all the time for my net configuration, heh
Comment 1 Ultrabug gentoo-dev 2013-08-16 12:56:33 UTC
Thanks Bjoern, you're right, we don't need to be so strict.

+*mongodb-2.4.6_rc1 (16 Aug 2013)
+
+  16 Aug 2013; Ultrabug <ultrabug@gentoo.org> +mongodb-2.4.6_rc1.ebuild,
+  +files/mongodb.initd-r1, +files/mongos.initd-r1:
+  fix v8 dep thx to Alex Brandt wrt #471582, fix #481172 wrt init scripts thx
+  to Bjoern Rennhak, version bump
+