Bug#773059: ogre-doc: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2014-12-13 Thread Andreas Beckmann
Package: ogre-doc
Version: 1.7.4+dfsg1-7
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts
Control: affects -1 + ogre-doc-nonfree

Hi,

an upgrade test with piuparts revealed that your package installs files
over existing symlinks and possibly overwrites files owned by other
packages. This usually means an old version of the package shipped a
symlink but that was later replaced by a real (and non-empty)
directory. This kind of overwriting another package's files cannot be
detected by dpkg.

This was observed on the following upgrade paths:

  lenny (ogre-doc-nonfree) - squeeze - wheezy - jessie

For /usr/share/doc/PACKAGE this may not be problematic as long as both
packages are installed, ship byte-for-byte identical files and are
upgraded in lockstep. But once one of the involved packages gets
removed, the other one will lose its documentation files, too,
including the copyright file, which is a violation of Policy 12.5:
https://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile

For other overwritten locations anything interesting may happen.

Note that dpkg intentionally does not replace directories with symlinks
and vice versa, you need the maintainer scripts to do this.
See in particular the end of point 4 in
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase

It is recommended to use the dpkg-maintscript-helper commands
'dir_to_symlink' and 'symlink_to_dir' (available since dpkg 1.17.2)
to perform the conversion, ideally using d/$PACKAGE.mainstscript.
See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.

Since ogre-doc seems to have reintegrated the content from
ogre-doc-nonfree after lenny, it is also missing

  Breaks+Replaces: ogre-doc-nonfree


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

2m54.6s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/ogre-doc/api/html (ogre-doc) != 
/usr/share/doc/ogre-doc-nonfree/api/html (ogre-doc-nonfree)
  /usr/share/doc/ogre-doc/api/html/GLX_2OgreConfigDialogImp_8h.html (ogre-doc) 
!= /usr/share/doc/ogre-doc-nonfree/api/html/GLX_2OgreConfigDialogImp_8h.html 
(ogre-doc-nonfree)
  /usr/share/doc/ogre-doc/api/html/GLX_2OgreConfigDialogImp_8h_source.html 
(ogre-doc) != 
/usr/share/doc/ogre-doc-nonfree/api/html/GLX_2OgreConfigDialogImp_8h_source.html
 (?)
  /usr/share/doc/ogre-doc/api/html/GLX_2OgreErrorDialogImp_8h.html (ogre-doc) 
!= /usr/share/doc/ogre-doc-nonfree/api/html/GLX_2OgreErrorDialogImp_8h.html 
(ogre-doc-nonfree)



cheers,

Andreas


ogre-doc-nonfree_None.log.gz
Description: application/gzip


Bug#773059: ogre-doc: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2014-12-13 Thread Manuel A. Fernandez Montecelo
2014-12-13 20:08 GMT+00:00 Andreas Beckmann a...@debian.org:
 Package: ogre-doc
 Version: 1.7.4+dfsg1-7
 Severity: serious
 User: debian...@lists.debian.org
 Usertags: piuparts
 Control: affects -1 + ogre-doc-nonfree

 Hi,

 an upgrade test with piuparts revealed that your package installs files
 over existing symlinks and possibly overwrites files owned by other
 packages. This usually means an old version of the package shipped a
 symlink but that was later replaced by a real (and non-empty)
 directory. This kind of overwriting another package's files cannot be
 detected by dpkg.

 This was observed on the following upgrade paths:

   lenny (ogre-doc-nonfree) - squeeze - wheezy - jessie

Hi Andreas,

ogre-doc-nonfree was removed from unstable in mid 2010 due to ROM;
superceded by ogre 1.6.4.dfsg1-1, and 1.6.4.dfsg1-1 was uploaded in
October 2009, and was the version shipped with squeeze (oldstable, at
this moment), released in Feb 2011.  ogre-doc-nonfree did not even
ship in squeeze.

On the other hand, ogre-doc is not going to be released in Jessie
(removed from testing and unstable), so this would be only fixable
with an upload to the next point release for wheezy.

Lenny was first released in Feb 2009, last point release and security
updates discontinued happened in Feb/March 2012.

https://packages.qa.debian.org/o/ogre-doc-nonfree/news/20100610T185814Z.html
https://packages.qa.debian.org/o/ogre/news/20091001T152940Z.html
http://www.debian.org/releases/lenny/


I don't know if I understand this correctly, but it seems that when
this breakage did happen was in the upgrade lenny-squeeze; and
support for both of these distributions is discontinued already,
right?


Cheers.
-- 
Manuel A. Fernandez Montecelo manuel.montez...@gmail.com


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org