On 02/07/2017 03:33 AM, Kunal Mehta wrote:
> Hi,
> 
> On 02/06/2017 02:28 AM, Dana Johnson wrote:
>> Package: mediawiki
>> Version: 1:1.27.1-3
>> <snip>
>>
>> is trying to configure a dangling link:
>>
>> /etc/apache2/conf-available/mediawiki.conf -> /etc/mediawiki/apache.conf
>>
>> but apache.conf is installed instead as
>>
>> /etc/mediawiki/mediawiki.conf
>>
>> setting /etc/mediawiki/apache.conf to mediawiki.conf allows the install
>> to finish.
>>
> 
> I cannot reproduce this. I created a new chroot of stretch, and ran "apt
> install mediawiki --no-install-recommends".
> 
> root@DebianStretch:~# ls -l /etc/mediawiki
> total 4
> -rw-r--r--. 1 root root 1033 Aug 22 19:52 mediawiki.conf
> root@DebianStretch:~# ls -l /etc/apache2/conf-enabled/ | grep wiki
> lrwxrwxrwx. 1 root root 32 Feb  7 03:20 mediawiki.conf ->
> ../conf-available/mediawiki.conf
> root@DebianStretch:~# ls -l /etc/apache2/conf-available/ | grep wiki
> -rw-r--r--. 1 root root 1033 Sep 13 04:17 mediawiki.conf
> 
> 
> Could you please provide some more details on whether you had MediaWiki
> installed before, any other apache2 config you might have that could
> help with reproducing?
> 
> Thanks,
> -- Kunal
> 
Kunal,

Thanks so much for looking into this. I had a previous install from
wheezy. To answer you, I setup a wheezy system today with mediawiki:

wheezy

apt-get install -t=wheezy --no-install-recommends apache2
apt-get install -t=wheezy --no-install-recommends mediawiki

/etc/apache2/conf.d/mediawiki.conf -> /etc/mediawiki/apache.conf

upgraded to jessie

In jessie  apache 2.2 to 2.4 there was the new

new conf.d -> conf-available I diverted to:

/apache2/config.d/mediawiki.conf to /apache2/config-available

a2enconf mediawiki

apt-mark hold mediawiki

upgraded to stretch

apt-mark unhold mediawiki
apt-get remove --purge mediawiki
dpkg-divert --remove /etc/apache2/conf.d/mediawiki.conf

at this point we should be a clean install
*but the diverted link is still in place*
/etc/apache2/conf-available/mediawiki.conf -> /etc/mediawiki/apache.conf

apt-get install -t=stretch --no-install-recommends mediawiki

and we blow up as before.

The odd thing is because this is a link the is no conffile prompt.
A new mediawiki.conf.dpkg-new is silently dropped in
/etc/apache/conf-available

If I remove the link and just touch
 /etc/apache2/conf-available/mediawiki.conf

The conffile dialog comes up as expected.

I guess this is why dh $@ --with apache2 is making a separate copy
of mediawiki.conf in /etc/apache2/config-available.

I certainly violates the principle of least surprise to have it
and /etc/mediawiki/mediawiki.conf not be linked otherwise.

So I think this is a perfect storm of edge case behaviors. Not much you
need to do. I would close this with maybe an upgrade note to a2disconf
and remove the link.

Thank again for looking into this and for your work packaging wikimedia.

Dana


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to