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

Bug#985297: libreoffice-common: needs Conflicts against all packages shipping files in /usr/lib/libreoffice/share/registry



tag 985297 + moreinfo

tag 985297 + unreproducible

thanks


Hi,

Am 15.03.21 um 15:11 schrieb Andreas Beckmann:
> during a test with piuparts I noticed your package fails to upgrade from
> 'buster'.


In what scenario?

- a clean buster debootstrap + apt install libreoffice

- a clean buster debootstrap + apt install task-desktop task-german-desktop

- a clean buster debootstrap + apt install libreoffice-writer


all upgrade fine in "quick tests"[1]. (if it matters apt dist-upgrade)


> In this complicated upgrade case I don't see a solution to get
> dpkg-maintscript-helper dir_to_symlink to work properly ...

dpkg-maintscript-helper exists for cases like this. If it fails to do
what it does, isn't it a dpkg-maintscript-helper  bug?


> Therefore I'd suggest to not use dir_to_symlink here ... but to
> fixup the link in postinst configure:
>
> if [ ! -L /usr/lib/libreoffice/share/registry ]; then
> 	if [ -d /usr/lib/libreoffice/share/registry ]; then
> 		# this will fail if the directory is not yet empty
> 		rmdir /usr/lib/libreoffice/share/registry
> 	fi
> 	ln -s /etc/libreoffice/registry /usr/lib/libreoffice/share/registry
> fi

I should really work around a dpkg bug in all those maintainer scripts
now in hard freeze?


Regards,


Rene


[1] don't really have time, need to prepare for exams next week...


Reply to: