On Saturday, 25. August 2012 14:29:27 Jakub Wilk wrote:
> * Martin-Éric Racine <martin-eric.rac...@iki.fi>, 2012-08-25, 11:21:
> >"adequate" (a tool by Jakub Wilk) reports that several packages that
> >have been trickling into Testing have a missing
> >/usr/share/doc/*/copyright,
>
> You're most likely observing the (mis)feature of dpkg, which maintainers
> of the affected packages didn't take into account:
>
> A directory will never be replaced by a symbolic link to a directory or
> vice versa; instead, the existing state (symlink or not) will be left
> alone and `dpkg' will follow the symlink if there is one.

Since we had quite some upgrade bugs with this problem, perhaps 
dh_installdocs --link-doc should (in debhelper compat 10) create maintainer 
scripts (postinst) that replace empty directories with links, like this

if [ ! -L /usr/share/doc/$PKG ] && [ -d /usr/share/doc/$PKG ]
then
  rmdir /usr/share/doc/$PKG  # bomb if not empty
  ln -s $TARGET /usr/share/doc/$PKG
fi

so that "manual" fixup can be removed from the maintainer scripts.

piuparts is now capable of detecting missing copyright files, so we can easily 
notice packages doing it "wrong" on upgrades, but currently they all need 
manual fixing (and usually adding yet another variant of the above code)


Andreas


--
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