Bug#768286: python{, 3}-zope.interface-dbg: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

Ivo De Decker ivodd at debian.org
Sun Dec 28 12:25:04 UTC 2014


Hi,

On Sat, Dec 13, 2014 at 04:08:44PM +0100, Andreas Beckmann wrote:
> I can still reproduce this issue on this upgrade path:
> 
>   squeeze -> wheezy -> jessie

> Looks like you need to use the absolute path of the link
> target in your .maintscript files:
> 
> -symlink_to_dir /usr/share/doc/python-zope.interface-dbg python-zope.interface 4.1.1-3~
> +symlink_to_dir /usr/share/doc/python-zope.interface-dbg /usr/share/doc/python-zope.interface 4.1.1-4~
> 
> dpkg-maintscript-helper will try both 
>   readlink $SYMLINKTOBECOMEADIRECTORY
> and
>   readlink -f $SYMLINKTOBECOMEADIRECTORY
> and one of the must match the old target for actions to be taken.

It fails when upgrading from squeeze to wheezy to jessie, because the result
from the upgrade from squeeze to wheezy differs from a clean wheezy install.

The wheezy install has:

/usr/share/doc/python-zope.interface-dbg -> python-zope.interface

After the squeeze to wheezy upgrade, the symlink is created by the
python-zope.interface-dbg postinst from wheezy, which creates the symlink
using the full path:

/usr/share/doc/python-zope.interface-dbg -> /usr/share/doc/python-zope.interface


Using the full path in the .maintscript file in the jessie version works in
both cases. I'm preparing an NMU for this.

Cheers,

Ivo



More information about the pkg-zope-developers mailing list