"unopkg" utility removes language modules with "list --shared" option

Bug #31965 reported by Teemu Likonen
8
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Matthias Klose
openoffice.org2 (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

OpenOffice.org's "unopkg" utility (which is used to register and unregister modules for OpenOffice.org) behaves strangely with "list --shared" options. It actually removes any possible previously registered modules. This does not happen with Ubuntu Breezy's OpenOffice.org2.

Here's a real life example:

root@ubuntu:~# cd /var/spool/openoffice2/
root@ubuntu:/var/spool/openoffice2# ls -l
total 0

[ Now I register certain language module with "unopkg add --shared". ]

root@ubuntu:/var/spool/openoffice2# /usr/lib/openoffice2/program/unopkg add --shared -v
  /usr/lib/openoffice.org2-soikko/oo2-soikko-Linux_x86-1.0.1.uno.pkg
Copying Package: oo2-soikko-Linux_x86-1.0.1.uno.pkg
Enabling package: oo2-soikko-Linux_x86-1.0.1.uno.pkg
 Enabling package: config.xcs
 Enabling package: oo2-soikko.so
 Enabling package: config.xcu

unopkg done.

[ This works fine, and also in OpenOffice.org. "oo2-soikko" is a Finnish spell-checker and hyphenation module. Here's the directory listing: ]

root@ubuntu:/var/spool/openoffice2# find
.
./uno_packages
./uno_packages/cache
./uno_packages/cache/stamp
./uno_packages/cache/log.txt
./uno_packages/cache/registry
./uno_packages/cache/registry/com.sun.star.comp.deployment.sfwk.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/schema
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/schema/soikko
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/schema/soikko/Config.xcs
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data/soikko
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data/soikko/Config.xcu
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registered_packages.db
./uno_packages/cache/registry/com.sun.star.comp.deployment.script.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/Linux_x86rc
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/common.rdb
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/Linux_x86.rdb
./uno_packages/cache/uno_packages
./uno_packages/cache/uno_packages/cmmbM3
./uno_packages/cache/uno_packages/cmmbM3_
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/Linux_x86
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/Linux_x86/oo2-soikko.so
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/Linux_x86/libsoikko.so
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/META-INF
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/META-INF/manifest.xml
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/shared
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/shared/soikko-sp.fi_FI.dic
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/shared/soikko-hy.fi_FI.dic
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/config.xcs
./uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/config.xcu
./uno_packages/cache/uno_packages.db

[ Problem occurs when one tries "unopkg list --shared" command: ]

root@ubuntu:/var/spool/openoffice2# /usr/lib/openoffice2/program/unopkg
  list --shared -v

ERROR: Error binding package: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg
       Cause: (com.sun.star.ucb.InteractiveAugmentedIOException) { { { { Message = "an error occured during file opening", Context = (com.sun.star.uno.XInterface) 0x355bdf9c (ImplementationName = "com.sun.star.comp.ucb.FileContent") }, Classification = (com.sun.star.task.InteractionClassification) ERROR }, Code = (com.sun.star.ucb.IOErrorCode) NOT_EXISTING }, Arguments = ([]any) { { (com.sun.star.beans.PropertyValue) { Name = "Uri", Handle = (long) -1, Value = (any) { "file:///var/spool/openoffice2/uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg" }, State = (com.sun.star.beans.PropertyState) DIRECT_VALUE } }, { (com.sun.star.beans.PropertyValue) { Name = "ResourceName", Handle = (long) -1, Value = (any) { "/var/spool/openoffice2/uno_packages/cache/uno_packages/cmmbM3_/oo2-soikko-Linux_x86-1.0.1.uno.pkg" }, State = (com.sun.star.beans.PropertyState) DIRECT_VALUE } } } }

unopkg failed.

[ It shows that certain files are missing--which is true. Here's the directory listing again: ]

root@ubuntu:/var/spool/openoffice2# find
.
./uno_packages
./uno_packages/cache
./uno_packages/cache/stamp
./uno_packages/cache/log.txt
./uno_packages/cache/registry
./uno_packages/cache/registry/com.sun.star.comp.deployment.sfwk.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/schema
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/schema/soikko
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/schema/soikko/Config.xcs
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data/soikko
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data/soikko/Config.xcu
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registered_packages.db
./uno_packages/cache/registry/com.sun.star.comp.deployment.script.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/Linux_x86rc
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/common.rdb
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/Linux_x86.rdb
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/common_.rdb
./uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/Linux_x86_.rdb
./uno_packages/cache/uno_packages
./uno_packages/cache/uno_packages/cmmbM3
./uno_packages/cache/uno_packages.db

[ The ./uno_packages/cache/uno_packages/cmmbM3_/ directory is gone! This should not happen with "unopkg list --shared". ]

[ Here's the previous procedure again but now the "unopkg list --shared" with "strace" command's output: ]

root@ubuntu:/var/spool/openoffice2# rm -r uno_packages/
root@ubuntu:/var/spool/openoffice2# /usr/lib/openoffice2/program/unopkg add --shared /usr/lib/openoffice.org2-soikko/oo2-soikko-Linux_x86-1.0.1.uno.pkg

[ Success and the module is working fine. ]

root@ubuntu:/var/spool/openoffice2# strace -f -q -e trace=unlink -e signal=none /usr/lib/openoffice2/program/unopkg list --shared >/dev/null
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/stamp") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/Linux_x86/oo2-soikko.so") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/Linux_x86/libsoikko.so") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/META-INF/manifest.xml") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/shared/soikko-sp.fi_FI.dic") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/shared/soikko-hy.fi_FI.dic") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/config.xcs") = 0
[pid 6497] unlink("/var/spool/openoffice2/uno_packages/cache/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg/config.xcu") = 0

ERROR: Error binding package: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/Rmtb1C_/oo2-soikko-Linux_x86-1.0.1.uno.pkg
       Cause: an error occured during file opening

unopkg failed.
[pid 6497] unlink("/root/.openoffice.org2/.lock") = 0

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper-updates
  APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-15-386
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)

Versions of packages openoffice.org2-common depends on:
ii dictionaries-common [open 0.62.5ubuntu2 Common utilities for spelling dict
ii openoffice.org2-core 2.0.1-0ubuntu4 OpenOffice.org office suite archit
ii openoffice.org2-l10n-en-u 2.0.1-0ubuntu4 English_american language package
ii python 2.4.2-0ubuntu3 An interactive high-level object-o
ii python-minimal 2.4.2-0ubuntu3 A minimal subset of the Python lan
ii xml-core 0.09 XML infrastructure and XML catalog

openoffice.org2-common recommends no packages.

-- no debconf information

Revision history for this message
Teemu Likonen (dtw) wrote :

It seems that this bug has disappeared with Dapper's newest OpenOffice.org update.

Revision history for this message
Matthias Klose (doko) wrote :

Teemu Likonen wrote:
> It seems that this bug has disappeared with Dapper's newest
> OpenOffice.org update.

thanks for the feedback, fixed in 2.0.1oob680m5.

Changed in openoffice.org2:
assignee: nobody → doko
status: Unconfirmed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

not upstream, packaging bug

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.