Bug#620822: mod_perl is not re-enabled when removing and re-installing the same version

Dominic Hargreaves dom at earth.li
Sat Jan 5 15:08:25 UTC 2013


Control: tags -1 + confirmed

On Mon, Apr 04, 2011 at 02:39:06PM +0200, David Cho-Lerat wrote:
> libapache2-mod-perl2.postinst says :
> 
> if [ "$1" = "configure" ] && [ -z "$2" ]; then
>         a2enmod perl || true
> fi
> 
> so if one removes (without purging) the package and then
> re-installs it with the same version, $2 is not empty -
> hence "a2enmod perl" is not be called, and mod_perl is
> not automatically re-enabled.

I agree that this is a bug.

> I suggest that
> 
> && [ -z "$2" ]
> 
> be removed, as "a2enmod perl || true" should be called
> in any case.

But I don't agree with this fix, as it will cause upgrades to always
enable the module, even if was previously disabled by the system
administrator. I don't see OTTOMH what the correct fix is, although I
expect that it will be easily discovered by looking at similar postinst
scripts.

Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)



More information about the pkg-perl-maintainers mailing list