Bug#985339: nauty: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE
Andrius Merkys
merkys at debian.org
Fri Mar 26 10:51:13 GMT 2021
Hi Andreas,
On 2021-03-25 09:39, Andreas Beckmann wrote:
> On 24/03/2021 22.59, Andrius Merkys wrote:
>> However, I am not sure how to proceed next. In principle I could tinker
>> with maintscripts, but I am not sure how to instruct piuparts to pick my
>> .deb instead of what is already present in bullseye.
>
> There is '--distupgrade-to-testdebs-from /path/to/Packages-and-.debs'
I managed to figure out a working set of command line options myself,
but thanks :)
> I see you applied the fix I suggested ;-) Sorry, didn't find time yet to
> look at this and try something.
No problem - I got an opportunity to learn something new.
> dpkg stating that both relative and absolute values work as $old_target
> is correct in most cases. Simplified, the check is
>
> if [ $(readlink $pathname) = $old_target ] || [ $(readlink -f $pathname)
> = $old_target ]; then ... fi
> which did not work in your case because readlink returned the absolute
> path in both cases, but $old_target was relative and thus never matched.
> (But I vaguely remember a case where the relative link gave better
> results as well, so absolute is not the perfect solution.)
This sounds complicated. It would be nice to have the logic documented
somewhere, for example dpkg-maintscript-helper(1), also explaining the
use case for relative link.
> BTW: every time you add more information to a bug it will reset the
> AUTORM timer.
I came to this conclusion purely from a bunch of observations, but thank
you for confirming this!
Many thanks,
Andrius
More information about the debian-science-maintainers
mailing list