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

Bug#886925: libpsm-infinipath1: leaves alternatives after purge: /etc/alternatives/libpsm_infinipath.so.1 -> /usr/lib/libpsm1/libpsm_infinipath.so.1.16



On 2018-01-14 12:23, Mehdi Dogguy wrote:
>> * 'postinst configure' always installs the alternative
>> * 'prerm remove' removes the alternative
>> * 'postrm remove' and 'postrm disappear' remove the alternative
> 
> Unfortunately, the latter raises the following lintian warning:
> https://lintian.debian.org/tags/maintainer-script-should-not-use-update-alternatives-remove.html
> 
> Are you positive this is needed? If so, is it a bug in lintian?

The bug template probably predates that lintian warning ...
Since dpkg does not allow to explicitly deconfigure a package it's hard
do test these corner cases. It's also unclear how a regular package
could 'disappear', since it either has /usr/share/doc/$pkg/copyright or
a /usr/share/doc/$pkg symlink, and these are very unlikely to be taken
over by another package.

Without a clear policy on handling alternatives it's hard to decide
whether lintian is wrong here ...


Andreas


Reply to: