[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Backporting shibboleth-sp2 2.6.0+dfsg1-4 to jessie: dh-systemd, piuparts and lintian errors



Hello mentors,

Since shibboleth-sp2 2.6.0+dfsg1-4 migrated to testing during the
holidays, I'm now backporting it to jessie. So far there is nothing to
change, however piuparts gives me the following error (which does not
appear on stretch):

> 0m34.6s ERROR: FAIL: Package purging left files on system:
>   /etc/systemd/system/multi-user.target.wants/shibd.service -> /lib/systemd/system/shibd.service	 not owned
>   /etc/systemd/system/shibd.service -> /dev/null	 not owned
>   /var/lib/systemd/deb-systemd-helper-enabled/	 not owned
>   /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/	 not owned
>   /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/shibd.service	 not owned
>   /var/lib/systemd/deb-systemd-helper-enabled/shibd.service.dsh-also	 not owned
>   /var/lib/systemd/deb-systemd-helper-masked/	 not owned
>   /var/lib/systemd/deb-systemd-helper-masked/shibd.service	 not owned

It looked like dh-systemd wasn't properly cleaning up despite
shibboleth-sp2-utils's postrm script looking like it would:

> #!/bin/sh
> 
> set -e
> 
> if [ "$1" = purge ]; then
>     for dir in /var/cache/shibboleth /var/log/shibboleth; do
>         if dpkg-statoverride --list "$dir" >/dev/null 2>&1; then
>             dpkg-statoverride --remove "$dir"
>         fi
>         rm -rf "$dir"
>     done
> fi
> 
> # Automatically added by dh_installinit
> if [ "$1" = "purge" ] ; then
>         update-rc.d shibd remove >/dev/null
> fi
> 
> 
> # In case this system is running systemd, we make systemd reload the unit files
> # to pick up changes.
> if [ -d /run/systemd/system ] ; then
>         systemctl --system daemon-reload >/dev/null || true
> fi
> # End automatically added section
> # Automatically added by dh_systemd_enable
> if [ "$1" = "remove" ]; then
>         if [ -x "/usr/bin/deb-systemd-helper" ]; then
>                 deb-systemd-helper mask shibd.service >/dev/null
>         fi
> fi
> 
> if [ "$1" = "purge" ]; then
>         if [ -x "/usr/bin/deb-systemd-helper" ]; then
>                 deb-systemd-helper purge shibd.service >/dev/null
>                 deb-systemd-helper unmask shibd.service >/dev/null
>         fi
> fi
> # End automatically added section

So I bumped the build-dep up a bit to: dh-systemd (>= 9.20160709). But
then a get a lintian error

> E: libshibsp7: postinst-must-call-ldconfig usr/lib/x86_64-linux-gnu/libshibsp.so.7.0.0

that I don't understand because the postinst script in
libshibsp7_2.6.0+dfsg1-4~bpo8+1_amd64.deb contains:

> #!/bin/sh
> set -e
> # Automatically added by dh_makeshlibs
> if [ "$1" = "configure" ]; then
> 	ldconfig
> fi
> # End automatically added section

So hmm... any clues? Who's wrong? me, piuparts, lintian or debhelper?

My source package is available at
https://mentors.debian.net/package/shibboleth-sp2 if you want to take a
look at it.

  Etienne

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: