[Pkg-mediawiki-devel] Bug#388616: Upgrade

Frank Küster frank at kuesterei.ch
Fri Feb 16 21:47:20 CET 2007


[cc shortened]

Romain Beauxis <toots at rastageeks.org> wrote:

> Le jeudi 8 février 2007 22:17, Steve Langasek a écrit :
>> > I think the bug #388616 should be granted this etc-ignore. The
>> > configuration file is never shiped with the package nor generated by the
>> > software. It is generated in config/ directory, and happen normaly only
>> > at first install.
>>
>> My question here is, if the software looks for the config in /var/lib out
>> of necessity, 

No, it doesn't.

> why does the package ship a symlink under /etc/ when that
>> symlink a) will overwrite any attempts by the user to turn this into a real
>> file (for whatever reason), and b) will complicate upgrades in the future
>> when mediawiki's FHS bug is fixed so that the conffile *can* be moved to
>> /etc?
>
> Yes we could just remove the link and add a file like README.mediawiki or any 
> other name in which we just explain where the user can find the confile...
>
> Indeed, that would propably be enought to close the two other bug for a small 
> amount of change this time.

Alternatively, you could just as well fix it.  I have never used
mediawiki before, but I gave it a try.  It works very well with a
symlink in the other direction and LocalSettings.php in
/etc/mediawiki1.7/, conforming with policy.  The only change that needs
to be made is that $IP must be set to /var/lib/mediawiki1.7 in
/etc/mediawiki1.7/LocalSettings.php 

For packaging the following changes need to be made:

- mediawiki.1.7.links changed

- the instructions in config/index.php and README.Debian must be changed
  to reflect the new location, 

- the same needs to be done with AdminSettings.php (and it's handling in
  postinst and config must be rewritten).  

All nothing that requires magic.

I just didn't write a complete patch because I am not sure of the
purpose of the upgrade code in config/postinst.   

Regards, Frank

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)




More information about the Pkg-mediawiki-devel mailing list