[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#156463: dpkg: Doesn't replace obsolete dirs with symlinks on upgrade

Wichert Akkerman wrote:

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.

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!

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: http://lists.debian.org/debian-arm/2002/debian-arm-200208/msg00017.html

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.


-Adam P.

GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe! <http://lyre.mit.edu/%7Epowell/The_Best_Stuff_In_The_World_Today_Cafe.ogg>

Reply to: