Hi

Thanks for explaining it to me.

On 14/05/23 14:08, Andreas Beckmann wrote:
On 14/05/2023 10.22, Nilesh Patra wrote:
Could you help explain where exactly the overwriting is happening?

In bullseye libnlopt-dev ships /usr/share/doc/libnlopt-dev as a symlink to libnlopt0
dpkg retains this symlink on upgrades to bookworm
In bookworm libnlopt-dev ships /usr/share/doc/libnlopt-dev as a directory

I've fixed it with a symlink_to_dir

...
libnlopt-dev ships /usr/share/doc/libnlopt-dev/examples/*, too, which ends up as /usr/share/doc/libnlopt0/examples/*, but these could already be files owned by
another package.

And added a preinst to remove examples/ from libnlopt0, as it really should not be there.

Best
Nilesh

Reply via email to