Package: debhelper Version: 9.20120909 Severity: wishlist Hi Joey,
recent change in dh_installinit adds a version-depends on sysv-rc, which prevents making dependencies in OpenRC in a way so that it can replace sysv-rc easily. Please apply attached patch so that it fixes it. Note that I would appreciate a quick action here, as each time a package is rebuilt with the current debhelper, another barrier to OpenRC is created, which is not cool. Currenlty, at least openssh-server and ifupdown are prblematic in the base install, and I expect a lot more package to need a rebuild with the fixed debhelper. Alternatively, maybe we could invent a new virtual package? I'm not sure that's a good idea, but I still would like to put this on the table, in case you think it's the right thing to do... Cheers, Thomas
>From b525d5db00b459b81471f29371a39bd086c2e177 Mon Sep 17 00:00:00 2001 From: Thomas Goirand <[email protected]> Date: Mon, 11 Nov 2013 02:31:33 +0800 Subject: [PATCH] Adds support for OpenRC in dh_installinit --- debian/changelog | 7 +++++++ dh_installinit | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c5ff76d..abd4698 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (9.20131111) unstable; urgency=low + + [ Thomas Goirand ] + * Adds support for OpenRC. + + -- Joey Hess <[email protected]> Mon, 11 Nov 2013 02:30:12 +0800 + debhelper (9.20131105) unstable; urgency=low * Fix (horrible) make output parsing code to work with make 4.0. diff --git a/dh_installinit b/dh_installinit index d7c8f75..bd4eae4 100755 --- a/dh_installinit +++ b/dh_installinit @@ -237,7 +237,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if ($job ne '' || ($dh{ONLYSCRIPTS} && -e "$tmp/etc/init/$jobfile.conf")) { # minimal version of invoke-rc.d that supports upstart jobs # directly - addsubstvar($package, "misc:Depends", "sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16)"); + addsubstvar($package, "misc:Depends", "sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16) | openrc"); } if ($init ne '' && ! $dh{ONLYSCRIPTS}) { -- 1.7.10.4

