[Pkg-samba-maint] Bug#647429: libpam-smbpass: prerm is not multiarch-safe

Jakub Wilk jwilk at debian.org
Mon May 28 14:16:35 UTC 2012


* Ivo De Decker <ivo.dedecker at ugent.be>, 2012-05-28, 14:48:
>>libpam-smbpass is marked as "Multi-Arch: same", but does this in prerm:
>>| if [ "$1" = "remove" ]; then
>>|       pam-auth-update --package --remove smbpasswd-migrate
>>| fi
>>
>>This won't do the right thing if multiple copies of the library are 
>>installed and one of them is being removed.
>
>Jakub,
>
>Do you have an example of a package that does 'the right thing'?

No, sorry.

>What should the package do? The manpage of pam-auth-update says that 
>pam-auth-update --remove should be called before removing the module, 
>but this isn't correct if the module remains for another architecture.
>
>Should pam-auth-update be made multiarch-aware and handle this 
>automatically?
>
>If binaries from multiple architectures call pam on the same system, 
>and a pam-module is installed for one of these architectures, but not 
>for the other one, the pam configuration cannot be correct for both of 
>them.

Unfortunately, I have no idea what a proper fix would like either.

>Are these issues documented somewhere?

I'm not aware of such documentation.

I tried to bring up this topic on debian-devel once, but there were no 
answers: http://lists.debian.org/20120211115057.GA8401@jwilk.net

-- 
Jakub Wilk





More information about the Pkg-samba-maint mailing list