[pkg-uWSGI-devel] Bug#839666: Incorrect usage of prerm

Neil Williams codehelp at debian.org
Tue Oct 4 15:28:23 UTC 2016


The problem appears to come down to the a2dismod being called inside a
check for "purge" in the prerm script.

prerm does not get called for "purge", only "remove".

postrm gets called with "purge" or with "remove".

https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-mscriptsinstact

prerm cannot expect to be called with "purge", that is not Policy
Compliant.

* uwsgi needs to use a2dismod in prerm upon the "remove" (and
  "deconfigure") command as that is when the .so is removed, leaving the
  dangling symlink which trips up Apache. This is how wsgi does it.

* uwsgi may also (like wsgi) choose to use a2dismod upon "purge" in the
  postrm.

So this is a packaging bug in uwsgi - the a2dismod is never called.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-uwsgi-devel/attachments/20161004/e8ac1eec/attachment.sig>


More information about the pkg-uWSGI-devel mailing list