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

Bug#854576: libreoffice-dev: fails to upgrade libreoffice-dev-doc from jessie with --install-recommends enabled



Hi,

On Wed, Feb 08, 2017 at 01:11:33PM +0100, Andreas Beckmann wrote:
> during a test with piuparts I noticed your package fails to upgrade from
> 'jessie'.
> It installed fine in 'jessie', then the upgrade to 'stretch' fails.
> 
> Reproducible on both amd64 and i386, needs --install-recommends to show up.
>
> >From the attached log (scroll to the bottom...):
>
> [...]
>   Setting up libreoffice-common (1:5.2.5-1) ...
>   Installing new version of config file /etc/libreoffice/sofficerc ...
>   Removing obsolete conffile /etc/bash_completion.d/libreoffice.sh ...
>   Setting up libreoffice-style-galaxy (1:5.2.5-1) ...
>   Setting up libreoffice-core (1:5.2.5-1) ...
>   Setting up libreoffice-dev-common (1:5.2.5-1) ...
>   Setting up libreoffice-dev (1:5.2.5-1) ...
>   mv: cannot stat '/usr/share/doc/libreoffice-dev/sdk/examples': No such file or directory
[...]

How would it be that you actually mentioned that you need -dev-doc in the body
(except just in the end of $SUBJECT and the log which was AFAICS actually
a test for libreoffice-dev-doc, not libreoffice)

# debootstrap jessie jessie http://192.168.1.2
# mount -t proc proc jessie/proc
# chroot jessie
# apt install libreoffice-dev
# sed -i s/jessie/stretch/ /etc/apt/sources.list
# apt update
# apt --install-recommends dist-upgrade

[...]
Setting up libreoffice-common (1:5.2.5-1) ...
Installing new version of config file /etc/libreoffice/sofficerc ...
Removing obsolete conffile /etc/bash_completion.d/libreoffice.sh ...
Setting up libreoffice-style-galaxy (1:5.2.5-1) ...
Setting up libreoffice-core (1:5.2.5-1) ...
Setting up libreoffice-dev-common (1:5.2.5-1) ...
Setting up libreoffice-dev (1:5.2.5-1) ...
Setting up python3 (3.5.3-1) ...
[...]

-> works

to get -dev-doc into the game I did a second run

# debootstrap jessie jessie2 http://192.168.1.2
# mount -t proc proc jessie2/proc
# chroot jessie2
# apt install libreoffice-dev libreoffice-dev-doc
# sed -i s/jessie/stretch/ /etc/apt/sources.list
# apt update
# apt --install-recommends dist-upgrade

That indeed gives what was in the log.

--- snip --
# Automatically added by dh_installdeb
dpkg-maintscript-helper dir_to_symlink /usr/share/doc/libreoffice-dev /usr/share/doc/libreoffice-core 1:5.0.3~rc1-2 $DPKG_MAINTSCRIPT_PACKAGE -- "$@"
# End automatically added section
--- snip ---

THAT is the postinst...

The last time this mess came up was #804317 which changed the path. And you
as the reporter didn't react to the report...

Policy 12.3 says that the docs in /usr/share/doc/libreoffice-dev is preffered:

"Additional documentation included in the package should be installed under /usr/share/doc/package. If the documentation is packaged separately, as package-doc for example, it may be installed under either that path or into the documentation directory for the separate documentation package (/usr/share/doc/package-doc in this example). However, installing the documentation into the documentation directory of the main package is preferred since it is independent of the packaging method and will be easier for users to find."

Hints how to get out of this (without moving the path, besides the policy
above, doing it now with all the symlinks IMHO is too intrusive in the freeze)

Regards,

Rene

P.S.:
That said, I don't believe it will hit many people:
https://qa.debian.org/popcon-graph.php?packages=libreoffice-dev%2Clibreoffice-dev-doc&show_installed=on&want_legend=on&want_ticks=on&from_date=&to_date=&hlght_date=&date_fmt=%25Y-%25m&beenhere=1.
https://qa.debian.org/popcon-graph.php?packages=libreoffice-core&show_installed=on&want_legend=on&want_ticks=on&from_date=&to_date=&hlght_date=&date_fmt=%25Y-%25m&beenhere=1

popcon < 100 (for dev-docs) vs. > 900000 installs of LO :)


Reply to: