Package: gearman-job-server
Version: 1.0.6-8+b1
Tags: patch

Dear maintainer:

This package inconditionally uses /lib/lsb/init-functions in its init
script, so it should have a "Depends: lsb-base", as lsb-base is not
essential. Patch attached.

I discovered this by using sbuild to build a package having
gearman-job-server as one of its build-depends in a chroot not having
lsb-base installed by default. The package builds ok, but when it
ends, removing the installed packages fails in this way:

Removing gearman-job-server (1.0.6-8+b1) ...
invoke-rc.d: could not determine current runlevel
/etc/init.d/gearman-job-server: 31: .: Can't open /lib/lsb/init-functions
invoke-rc.d: initscript gearman-job-server, action "stop" failed.
dpkg: error processing package gearman-job-server (--remove):
 subprocess installed pre-removal script returned error exit status 2

and the chroot becomes unusable and it has to be restored from tarball
again.

Thanks.
--- a/debian/control
+++ b/debian/control
@@ -73,7 +73,7 @@ Description: API Documentation for the Gearman Library
 
 Package: gearman-job-server
 Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, lsb-base
 Recommends: memcached
 Pre-Depends: adduser
 Description: Job server for the Gearman distributed job queue

Reply via email to