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

gregor herrmann gregoa at debian.org
Sat Jan 5 15:50:54 UTC 2013


On Sat, 05 Jan 2013 15:08:25 +0000, Dominic Hargreaves wrote:

> 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.

Maybe something like what Andreas proposed in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688435#27

Cheers,
gregor
 
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Uriah Heep: July Morning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20130105/58b3d8d8/attachment.pgp>


More information about the pkg-perl-maintainers mailing list