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

Bug#1005832: more info



[ Your mail never appeared to me wither in my mailbox nor in  the
mailing list archives. Probably eaten by a spamfilter ]

Hi,

sorry for the late answer.

Am Sat, Jun 25, 2022 at 04:50:40PM -0700 schrieb Mark A. Hershberger:
> Found this bug because this is the only hit I found on search engines for the error I was seeing. I have a Debian system. 

Obviously, since you wouldn't report here ;-)

> The problem is apparently because /usr/lib/libreoffice/share/extensions is (in my case) a 0-byte file and installing an extension resolves the issue. 

Wow the f*? ...

> mah@gabriel:~$ sudo rm /usr/lib/libreoffice/share/extensions 
> mah@gabriel:~$ sudo mkdir /usr/lib/libreoffice/share/extensions 
> mah@gabriel:~$ libreoffice 
> Warning: failed to launch javaldx - java may not function correctly 
> mah@gabriel:~$ dpkg -S /usr/lib/libreoffice/share/extensions 
> dpkg-query: no path found matching pattern /usr/lib/libreoffice/share/extensions 
> mah@gabriel:~$ apt-file search /usr/lib/libreoffice/share/extensions | cut -d : -f 1 | sort -u | xargs dpkg -l 
> Desired=Unknown/Install/Remove/Purge/Hold 
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend 
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) 
> ||/ Name Version Architecture Description 
> +++-==========================-=====================-============-=================================================== 
> ii libreoffice-common 1:7.3.4~rc2-1~bpo11+1 all office productivity suite -- arch-independent files 
> un libreoffice-wiki-publisher <none> <none> (no description available) 
> un libreoffice-writer2latex <none> <none> (no description available) 
> un libreoffice-writer2xhtml <none> <none> (no description available) 
> dpkg-query: no packages found matching eyes17 
> dpkg-query: no packages found matching libreoffice-canzeley-client 
> dpkg-query: no packages found matching libreoffice-dmaths 
> dpkg-query: no packages found matching libreoffice-grammalecte 
> dpkg-query: no packages found matching libreoffice-lightproof-en 
> dpkg-query: no packages found matching libreoffice-lightproof-hu 
> dpkg-query: no packages found matching libreoffice-lightproof-pt-br 
> dpkg-query: no packages found matching libreoffice-lightproof-ru-ru 
> dpkg-query: no packages found matching libreoffice-nlpsolver 
> dpkg-query: no packages found matching libreoffice-numbertext 
> dpkg-query: no packages found matching libreoffice-parlatype 
> dpkg-query: no packages found matching libreoffice-texmaths 
> dpkg-query: no packages found matching libreoffice-voikko 

... sigh. I think I see what goes wrong here. How did it appear not in
earlier times (the problematic code is in there since 3.x!).

libreoffice-common has a trigger which is supposed to run
make_lo_sync_extensions to do what it says when a extension is
installed/removed by touching the dir:

$ cat libreoffice-common.postinst
#!/bin/sh

set -e

[...]
validate_extensions() {
  INSTDIR=`mktemp -d`
  if HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg list --bundled >/dev/null 2>/dev/null; then
	HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg validate -v --bundled
  fi
}

make_lo_sync_extensions() {
	touch /usr/lib/libreoffice/share/extensions
}

if [ "$1" = "triggered" ]; then
        for triggername in $2; do
                case "$triggername" in
                        # new "bundled" extensions (since 3.3)
                        "/usr/lib/libreoffice/share/extensions")
                          make_lo_sync_extensions
                        ;;
[...]
                esac
        done
fi

[...]
$

So I guess dpkg removes /usr/lib/libreoffice/share/extensions i(it is
still "owned" by libreoffice-common though. Should it happen?) and
nevertheless libreoffice-common is triggered the touch is fired and you
end up with that 0 byte file :/

Regards,

Rene


Reply to: