Package: chef
Version: 12.10.24-1
Tags: patch

Dear maintainer:

Using sbuild, I tried to build a package having chef in its
build-depends and this is what happened after the package was built:

---------------------------------------------------------------------
[...]
Removing sbuild-build-depends-ruby-cheffish-dummy (0.invalid.0) ...
Removing chef (12.10.24-1) ...
invoke-rc.d: could not determine current runlevel
/etc/init.d/chef-client: 25: .: Can't open /lib/lsb/init-functions
invoke-rc.d: initscript chef-client, action "stop" failed.
dpkg: error processing package chef (--remove):
 subprocess installed pre-removal script returned error exit status 2
---------------------------------------------------------------------

This happens because there is an undeclared dependency on lsb-base
(which is not essential).

Patch attached.

Thanks.
--- a/debian/control
+++ b/debian/control
@@ -51,6 +51,7 @@ Package: chef
 Architecture: all
 X-DhRuby-Root: .
 Depends: chef-zero (>= 4.5),
+         lsb-base,
          ohai (<< 9),
          ohai (>= 8.6.0.alpha.1),
          ruby | ruby-interpreter,

Reply via email to