[Pkg-mediawiki-devel] Bug#736558: mediawiki-extensions-openid: directory vs. symlink conflict: /var/lib/mediawiki/maintenance

Andreas Beckmann anbe at debian.org
Fri Jan 24 22:24:01 UTC 2014


Package: mediawiki-extensions-openid
Version: 3.5
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package installs files over
an existing symlink shipped or created by another package.

Your package ships:

  ./var/lib/mediawiki/maintenance/
  ./var/lib/mediawiki/maintenance/mediawiki-extensions/
  ./var/lib/mediawiki/maintenance/mediawiki-extensions/openid/
  ./var/lib/mediawiki/maintenance/mediawiki-extensions/openid/optionToTable.php

but package mediawiki ships:

  ./var/lib/mediawiki/maintenance -> /usr/share/mediawiki/maintenance

Installing something over existing symlinks is considered bad practice.
See e.g. http://lists.debian.org/87ehlevcrf.fsf@windlord.stanford.edu

It may break in subtle ways and dpkg cannot detect this as a problem.
* Your package might silently overwrite files installed at the symlink
  destination by other packages.
* If the package shipping the symlink decides to make the link point
  somewhere else (or turn it into a real directory), the files owned
  by your package "will be lost" somewhere in the filesystem.
* Depending on installation order the problematic path will be created
  either as a symlink or a directory: the package installed first will
  "win" and all others have "lost".
  Note that dpkg intentionally does not replace directories with
  symlinks and vice versa, see in particular the end of point 4 in
  http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase
  (Note: Adding Pre-Depends is *not* a solution.)

Please move the files shipped in your package to the "real" location.

>From the attached log (usually somewhere in the middle...):

0m58.6s INFO: dirname part contains a symlink:
  /var/lib/mediawiki/maintenance/mediawiki-extensions (mediawiki-extensions-openid) != /usr/share/mediawiki/maintenance/mediawiki-extensions (?)
  /var/lib/mediawiki/maintenance/mediawiki-extensions/openid (mediawiki-extensions-openid) != /usr/share/mediawiki/maintenance/mediawiki-extensions/openid (?)
  /var/lib/mediawiki/maintenance/mediawiki-extensions/openid/optionToTable.php (mediawiki-extensions-openid) != /usr/share/mediawiki/maintenance/mediawiki-extensions/openid/optionToTable.php (?)


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mediawiki-extensions-openid_3.5.log.gz
Type: application/x-gzip
Size: 24032 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mediawiki-devel/attachments/20140124/227f963c/attachment-0001.bin>


More information about the Pkg-mediawiki-devel mailing list