Bug#818036: kpartx does not ship multipathd.service but tries to start/stop that service

Ritesh Raj Sarraf rrs at debian.org
Sun Mar 13 10:10:32 UTC 2016


Control: tag -1 +confirmed
Control: tag -1 +help


Hello Michael,


On Sat, 2016-03-12 at 23:52 +0100, Michael Biebl wrote:
> The maintainers scripts of kpartx try to start/stop
> multipathd.service
> That service unit is shipped in the multipath-tools package though.
> So this looks like an error in debian/rules.

It was my bad. For the last upload, I missed to install-test locally.


> Combining -a and -p doesn't really make sense.

Yes. But this workaround is needed for Reporoducible  Builds, until I
migrate them to the newer dh interface.

So my refined debian/rules, that fixes the problem is:

rrs at learner:~/.rrs-home/Community/Packaging/multipath-tools (master)$
git diff
diff --git a/debian/rules b/debian/rules
index 9714d03..d00f71e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -104,9 +104,9 @@ binary-indep: build-indep install-indep
        dh_installchangelogs -i ChangeLog
        dh_installdocs -i
        dh_installexamples -i
-       dh_installinit -i -pmultipath-tools-boot --name=multipath-
tools-boot --no-start -- start 21 S .
-       dh_installinit -i -pmultipath-tools-boot
-       dh_installdebconf -i -pmultipath-tools-boot
+       dh_installinit -pmultipath-tools-boot --name=multipath-tools-
boot --no-start -- start 21 S .
+       dh_installinit -pmultipath-tools-boot
+       dh_installdebconf -pmultipath-tools-boot
        dh_installman -i
        dh_compress -i
        dh_fixperms -i
@@ -123,13 +123,13 @@ binary-arch: build install
        dh_installdocs -a
        dh_installexamples -a
        dh_lintian -a
-       dh_systemd_enable -a -pmultipath-tools multipathd.service
-       dh_installinit -a -pmultipath-tools
-       dh_installudev -a -pkpartx
-       dh_installudev -a -pmultipath-tools --name=multipath
+       dh_systemd_enable -pmultipath-tools multipathd.service
+       dh_installinit -pmultipath-tools
+       dh_installudev -pkpartx
+       dh_installudev -pmultipath-tools --name=multipath
        dh_link -a lib/systemd/system/multipathd.service \
                lib/systemd/system/multipath-tools.service
-       dh_systemd_start -a -pmultipath-tools multipathd.service
+       dh_systemd_start -pmultipath-tools multipathd.service
        dh_installman -a
        dh_makeshlibs -a --add-udeb=multipath-udeb
        dh_link -a
2016-03-13 / 15:37:21 ♒♒♒  ☺  


But I have another problem now.

rrs at learner:/var/tmp/Debian-Build/Result$ sudo dpkg -i --force-all
kpartx_*.deb
Selecting previously unselected package kpartx.
(Reading database ... 429913 files and directories currently
installed.)
Preparing to unpack kpartx_0.5.0+git1.656f8865-6_amd64.deb ...
Failed to stop multipathd.service: Unit multipathd.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit
status 5
dpkg: trying script from the new package instead ...
dpkg: error processing archive kpartx_0.5.0+git1.656f8865-6_amd64.deb
(--install):
 there is no script in the new version of the package - giving up
Failed to get unit file state for multipathd.service: No such file or
directory
multipathd.service is a disabled or a static unit, not starting it.
Errors were encountered while processing:
 kpartx_0.5.0+git1.656f8865-6_amd64.deb
2016-03-13 / 15:17:10 ♒♒♒  ☹  => 1  

Now locally, I've overridden this by fixing the postinst file by hand.

rrs at learner:/var/tmp/Debian-Build/Result$ sudo dpkg -i kpartx_*.deb
(Reading database ... 429913 files and directories currently
installed.)
Preparing to unpack kpartx_0.5.0+git1.656f8865-6_amd64.deb ...
Unpacking kpartx (0.5.0+git1.656f8865-6) over (0.5.0+git1.656f8865-6)
...
Setting up kpartx (0.5.0+git1.656f8865-6) ...
Processing triggers for man-db (2.7.5-1) ...
2016-03-13 / 15:18:51 ♒♒♒  ☺  


But I can't find much documentation on how to do it for others through
the packaging itself. Do you know about how to handle this situation ?



-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20160313/853984ff/attachment.sig>


More information about the pkg-lvm-maintainers mailing list