Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465648 - net-dns/openresolv: detect init system at runtime, drop USE=systemd
Summary: net-dns/openresolv: detect init system at runtime, drop USE=systemd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL: https://github.com/Sabayon/systemd-lo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-12 09:13 UTC by Fabio Erculiani (RETIRED)
Modified: 2013-04-27 09:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the restartcmd script installed into /lib/openresolv (restartcmd,415 bytes, text/plain)
2013-04-12 09:20 UTC, Fabio Erculiani (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani (RETIRED) gentoo-dev 2013-04-12 09:13:05 UTC
The systemd-love overlay is aiming at making openrc and systemd to coexist on the same system by moving the init system detection from build time to runtime.
In the systemd-love overlay, I committed a net-dns/openresolv ebuild that features a restartcmd script that is able to work with both openrc and systemd, depending on which one has booted the system.

Reproducible: Always
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2013-04-12 09:20:44 UTC
Created attachment 345336 [details]
the restartcmd script installed into /lib/openresolv
Comment 2 Mike Gilbert gentoo-dev 2013-04-12 15:25:42 UTC
Seems reasonable to me.

Maybe Roy could include similar runtime detection upstream?
Comment 3 Fabio Erculiani (RETIRED) gentoo-dev 2013-04-21 09:29:18 UTC
Gentle ping ;)
Comment 4 Roy Marples 2013-04-22 09:16:52 UTC
I'm not going to include this upstream right now.

For the time being you can pass this to confgiure:
   --restartcmd="/lib/openresolv/restartcmd \1"

Which should make your script work anyway without modifications to openresolv itself.
Comment 5 Fabio Erculiani (RETIRED) gentoo-dev 2013-04-22 15:15:48 UTC
That is what my ebuild does. If you agree, I can commit the changes to gentoo-x86. We're (some fellow Gentoo developers and I believe also the systemd gentoo team) planning to make systemd less painful for openrc users and vice versa, and these changes are actually needed.
Comment 6 Fabio Erculiani (RETIRED) gentoo-dev 2013-04-27 09:32:48 UTC
+  27 Apr 2013; Fabio Erculiani <lxnay@gentoo.org> openresolv-3.5.4.ebuild,
+  +files/restartcmd:
+  detect openrc/systemd at runtime, fix bug #465648
+