On Thu, 21 Aug 2014, Guillem Jover wrote:
> The dpkg-maintscript-helper usage in this package is broken, because
> it's using a relative symlink target. The dpkg-maintscript-helper has
> been doing sanity checks to see if the canonicalized symlink targe
> (from «readlink -f») matches the passed symlink target argument, which
> will just not match, and not perform the switch.

This doesn't match what the documentation still says (as of 1.17.13)[1],
and also seems sort of backwards to me.

The package can control the symlink's target (after all, that's what the
symlink did), but has less control over the place in the filesystem
that the symlink eventually points to. [In the instant case, we've
previously done a /usr/doc to /usr/share/doc migration, which would have
worked seamlessly if the target was checked, but would have required
more changes if the cannonical target was checked.

> Starting with dpkg 1.17.13 the program will error out on such
> parameters (the documentation has been updated too now), so the package
> becomes uninstallable/unremovable. Please switch to use an absolute
> path for the symlink target.

I'll do this for the time being, but either the documentation needs to
be fixed, or the implementation changed. [An easy change would be to
check both readlink -f or just readlink.]

-- 
Don Armstrong                      http://www.donarmstrong.com

Once, our bodies were bells:
Simply moving in the wind
We tolled our names.
 -- Phillis Levin "Poetry in Motion" p55


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

Reply via email to