Bug#156463: dpkg: Doesn't replace obsolete dirs with symlinks on upgrade
Wichert Akkerman wrote:
But when the old package is removed, the dir is removed, so it should
*not* still exist, and *must* be removed. This current behavior causes
breakage during an upgrade!
Previously Adam C Powell IV wrote:
When a package should replace a dir with a symlink on upgrade, it doesn't.
On purpose. When the new package is unpacked the dir still exists and
can't be removed.
In the example provided (bug 151669), the directory
/usr/include/asm/arch should be removed. When the new package is
unpacked, it should not still exist. If it does, the symlink to
arch-ebsa (on ARM) cannot be created during tar x, so
/usr/include/asm/arch is an empty directory, with the result that
#include <asm/param.h> tries to include asm/arch/param.h which doesn't
exist! I don't see how this example fits your above statement.
For details of this example, see the thread on debian-arm I started last
Friday the 9th:
I won't reopen the bug, but *please* reconsider and reopen it yourself,
I'm pretty sure this is not the way it's supposed to work.
GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6
Welcome to the best software in the world today cafe!