Package: iprutils Version: 2.4.8-1 Severity: important Tags: patch The package iprutils fails to install on a jessie machine because the current postisntall script is starting the daemons in the wrong order, causing the following error:
Setting up iprutils (2.4.8-1) ... insserv: Service iprinit has to be enabled to start service iprdump insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing package iprutils (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (224-1ubuntu3) ... Errors were encountered while processing: iprutils E: Sub-process /usr/bin/dpkg returned an error code (1) I found that the problem was caused by the out of order invocation of dh_installinit by the debian/rules This if fixed now by the attached patch. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: ppc64el (ppc64le) Kernel: Linux 3.13-1-powerpc64le (SMP w/16 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages iprutils depends on: ii libc6 2.18-0experimental1+ppc64el.1.mauricfo ii libncurses5 5.9+20150516-2 ii libtinfo5 5.9+20150516-2 ii lsb-base 4.1+Debian12 iprutils recommends no packages. iprutils suggests no packages. -- no debconf information
>From 00eaf94dbf9b37e23fa13a1decc7e715283bb1ed Mon Sep 17 00:00:00 2001 From: Breno Leitao <bren...@br.ibm.com> Date: Sat, 15 Aug 2015 11:49:17 -0300 Subject: [PATCH] Fix the daemon script order Currently dh_installinit is being called in the wrong order and causes the iprutil package fail to install due to the following error: Setting up iprutils (2.4.8-1) ... insserv: Service iprinit has to be enabled to start service iprdump insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing package iprutils (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (224-1ubuntu3) ... Errors were encountered while processing: iprutils E: Sub-process /usr/bin/dpkg returned an error code (1) This is because the iprdump daemon is starting before the iprinit, which is conceptually wrong. This patch basically calls dh_installinit first for iprinit, then, iprdump. --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index e98e1da..e27b730 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,7 @@ override_dh_install: chmod +x debian/iprutils/etc/ha.d/resource.d/iprha override_dh_installinit: - set -e; for script in iprdump iprinit iprupdate; do \ + set -e; for script in iprinit iprdump iprupdate; do \ ln -nsf ../init.d/$$script debian/iprutils.$$script.init; \ ln -nsf ../systemd/$$script.service debian/iprutils.$$script.service; \ dh_installinit --name=$$script; \ -- 1.9.3