Bug#570452: with mozilla-openoffice.org installed, nspluginscan returns useless relative path
Package: mozilla-openoffice.org
Version: 1:2.4.1+dfsg-1+lenny6
Severity: minor
Hi,
if you run nspluginscan after installation of mozilla-openoffice.org,
you get:
andi@siddhartha:~$ nspluginscan
OpenOffice path is '../../openoffice'
perhaps a few more times. The relative path does not make sense. The
same happens on squeeze. Usually (if not always) this can probably be
ignored. I got attentive because in Debian Edu this behavior caused
the automounter to complain about the missing directory:
http://bugs.skolelinux.org/show_bug.cgi?id=1442
I tried to find the root cause for that and ended with a diff found
in the sources:
openoffice.org-2.4.1+dfsg/ooo-build/patches/src680/nsplugin-path.diff
which contains a patch for
extensions/source/nsplugin/source/so_env.cxx, see line 99 for the
warning and the variable realFileName.
I could not find any file named like so_env.cxx in the source.
It seems that not the absolute path is used in realFileName but the
relative one from the link, which causes the warning i.e. the
triggering of the automounter.
Snipplet of "strace -f -e open,readlink,write -o test nspluginscan":
4980 readlink("/usr/lib/mozilla/plugins/libnpsoplugin.so",
"../../openoffice/program/libnpsoplugin.so".
.., 1023) = 41
4980 write(2, "OpenOffice path is '../../openoff"..., 38) = 38
4980 open("../../openoffice/program/bootstraprc", O_RDONLY) = -1
ENOENT (No such file or directory)
Perhaps for someone familliar with the sources there is an easy fix.
Regards,
Andi
-- System Information:
Debian Release: 5.0.4
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mozilla-openoffice.org depends on:
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii libstlport4.6ldbl 4.6.2-3.2 STLport C++ class library
ii openoffice.org-cor 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite archit
Versions of packages mozilla-openoffice.org recommends:
ii iceweasel 3.0.6-3 lightweight web browser based on M
ii konqueror-nsplugin 4:3.5.9.dfsg.1-6 Netscape plugin support for Konque
ii openoffice.org-bas 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite - data
ii openoffice.org-cal 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite - spre
ii openoffice.org-dra 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite - draw
ii openoffice.org-imp 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite - pres
ii openoffice.org-mat 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite - equa
ii openoffice.org-wri 1:2.4.1+dfsg-1+lenny6 OpenOffice.org office suite - word
mozilla-openoffice.org suggests no packages.
-- no debconf information
Reply to: