Package: openoffice.org-writer2latex Version: 1.0-12 Severity: normal Tags: patch
Hi there!
Upgrading from lenny to squeeze produce the following error (the output
is in italian, but it should be easy to understand what is going on):
=====
debian:/home/luca# apt-get dist-upgrade
[...]
397 aggiornati, 469 installati, 36 da rimuovere e 0 non aggiornati.
È necessario prendere 823MB di archivi.
Dopo quest'operazione, verranno occupati 767MB di spazio su disco.
[...]
Preparativi per sostituire openoffice.org-writer2latex v.0.5-8 (utilizzando
.../openoffice.org-writer2latex_1.0-12_all.deb)...
/var/lib/dpkg/tmp.ci/preinst: 64: /usr/lib/openoffice/program/unopkg: not found
/var/lib/dpkg/tmp.ci/preinst: 64: /usr/lib/openoffice/program/unopkg: not found
Estrazione del sostituto di openoffice.org-writer2latex...
[...]
Configurazione di openoffice.org-writer2latex (1.0-12)...
Copying: writer2latex.oxt
Enabling: Writer2LaTeX export filters
Enabling: writer2latex.rdb
Enabling: W2LDialogs
Enabling: Options.xcs
Enabling: writer2latex-filter.jar
libgcj failure: gcj linkage error.
Incorrect library ABI version detected. Aborting.
ERROR: URP_Bridge : disposed
(tid=5) Unexpected connection closure
Exception details:
(com.sun.star.lang.DisposedException) { { { Message = "URP_Bridge :
disposed\X000a(tid=5) \
Unexpected connection closure", Context = (com.sun.star.uno.XInterface) @0 } }
}
unopkg failed.
=====
I can reproduce it on a cowbuilder lenny chroot, but the output seems a
bit different:
=====
(lenny)r...@gismo:/# apt-get install openoffice.org-writer2latex
[...]
(lenny)r...@gismo:/# sed -i -e 's/lenny/squeeze/g' /etc/apt/sources.list
(lenny)r...@gismo:/# apt-get update
(lenny)r...@gismo:/# apt-get install openoffice.org-writer2latex
[...]
dpkg: openoffice.org-common: dependency problems, but removing anyway as you
request:
openoffice.org-java-common depends on openoffice.org-common.
(Reading database ... 17033 files and directories currently installed.)
Removing openoffice.org-common ...
(Reading database ... 14217 files and directories currently installed.)
Preparing to replace openoffice.org-writer2latex 0.5-8 (using
.../openoffice.org-writer2latex_1.0-12_all.deb) ...
/var/lib/dpkg/tmp.ci/preinst: line 58: /usr/lib/openoffice/program/unopkg: No
such file or directory
/var/lib/dpkg/tmp.ci/preinst: line 43: /usr/lib/openoffice/program/unopkg: No
such file or directory
Unpacking replacement openoffice.org-writer2latex ...
Selecting previously deselected package openoffice.org-common.
Unpacking openoffice.org-common (from
.../openoffice.org-common_1%3a3.2.1-9_all.deb) ...
Selecting previously deselected package ure.
Unpacking ure (from .../ure_1.6.1+OOo3.2.1-9_amd64.deb) ...
Replacing files in old package openoffice.org-java-common ...
[...]
Setting up openoffice.org-writer2latex (1.0-12) ...
Disabling: writer2latex.uno.pkg
Disabling: w2l_filters.xcu
Disabling: w2l_types.xcu
Disabling: writer2latex.jar
ERROR: (com.sun.star.deployment.DeploymentException) { { Message = "An error
occurred \
while disabling: writer2latex.jar", Context = (com.sun.star.uno.XInterface)
@cf8820 }, \
Cause = (any) { (com.sun.star.registry.CannotRegisterImplementationException)
{ { \
Message = "", Context = (com.sun.star.uno.XInterface) @0 } } } }
unopkg done.
Copying: writer2latex.oxt
Enabling: Writer2LaTeX export filters
Enabling: writer2latex.rdb
Enabling: W2LDialogs
Enabling: Options.xcs
Enabling: writer2latex-filter.jar
ERROR: (com.sun.star.deployment.DeploymentException) { { Message = "An error
occurred \
while enabling: writer2latex-filter.jar", Context =
(com.sun.star.uno.XInterface) @1437800 }, \
Cause = (any) { (com.sun.star.registry.CannotRegisterImplementationException)
{ { \
Message = "", Context = (com.sun.star.uno.XInterface) @0 } } } }
rollback...
Disabling: Options.xcs
Disabling: W2LDialogs
Disabling: writer2latex.rdb
rollback finished.
An error occurred while enabling: writer2latex-filter.jar
(lenny)r...@gismo:/#
=====
It seems there are two problems, the 'unopkg' binary not found (which
should be #468202) and the writer2latex extension not installed.
This latter should be caused by openoffice.org-java-common not being
upgraded as well, given that openoffice.org-writer2latex:
Depends: openoffice.org-core (>= 1:2.3.0~oog680m1),
openoffice.org-java-common (>= 1:2.3.0~oog680m1)
According to openoffice.org-writer2latex changelog:
--8<---------------cut here---------------start------------->8---
writer2latex (1.0-12) unstable; urgency=medium
* hack: remove Pre-Depends on openoffice.org-java-common again, add
to Depends: instead (see #571771). The gack from 1.0-6 also still
needed
-- Rene Engelhard <[email protected]> Sun, 25 Apr 2010 23:56:47 +0200
--8<---------------cut here---------------end--------------->8---
However, I am quite sure this is the cause for the bug I experienced:
while I still think a Pre-Depends: should be the right way (but
remember, I am not a OO.o expert nor a Java one), it seems that simply
bumping the Depends: on openoffice.org-java-common (and thus on
openoffice.org-common) to the same version as the Build-Depends: is OK.
I tested the following NMU against the version in squeeze and everything
works as expected. amd64 packages are available at:
deb http://people.debian.org/~gismo/debian unstable/
--8<---------------cut here---------------start------------->8---
diff -u writer2latex-1.0/debian/changelog writer2latex-1.0/debian/changelog
--- writer2latex-1.0/debian/changelog
+++ writer2latex-1.0/debian/changelog
@@ -1,3 +1,12 @@
+writer2latex (1.0-12.1) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * debian/control:
+ + bump openoffice.org-common and openoffice.org-java-common Depends:
+ to the same version in Build-Depends: (Closes: #NNNNNN).
+
+ -- Luca Capello <[email protected]> Wed, 08 Dec 2010 01:59:13 +0100
+
writer2latex (1.0-12) unstable; urgency=medium
* hack: remove Pre-Depends on openoffice.org-java-common again, add
diff -u writer2latex-1.0/debian/control writer2latex-1.0/debian/control
--- writer2latex-1.0/debian/control
+++ writer2latex-1.0/debian/control
@@ -86,7 +86,7 @@
Package: openoffice.org-writer2latex
Architecture: all
Pre-Depends: debconf (>= 0.5) | debconf-2.0, procps, default-jre | gcj-jre |
java-gcj-compat | openjdk-6-jre | sun-java5-jre | sun-java6-jre | java5-runtime
| jre
-Depends: openoffice.org-core (>= 1:2.3.0~oog680m1), openoffice.org-java-common
(>= 1:2.3.0~oog680m1), ${misc:Depends}
+Depends: openoffice.org-core (>= 1:3.1.0~), openoffice.org-java-common (>=
1:3.1.0~), ${misc:Depends}
Enhances: openoffice.org-writer, openoffice.org-calc
Conflicts: openoffice.org-core (<< 1:3.0.0~), openoffice.org-common (<<
1:3.0.1-10), ure (<< 1.5.1+OOo3.1.1-15)
Description: Writer/Calc to LaTeX converter extension for OpenOffice.org
@@ -110,7 +110,7 @@
Package: openoffice.org-writer2xhtml
Architecture: all
Pre-Depends: debconf (>= 0.5) | debconf-2.0, procps, default-jre | gcj-jre |
java-gcj-compat | openjdk-6-jre | sun-java5-jre | sun-java6-jre | java5-runtime
| jre
-Depends: openoffice.org-core (>= 1:2.3.0~oog680m1), openoffice.org-java-common
(>= 1:2.3.0~oog680m1), ${misc:Depends}
+Depends: openoffice.org-core (>= 1:3.1.0~), openoffice.org-java-common (>=
1:3.1.0~), ${misc:Depends}
Enhances: openoffice.org-writer, openoffice.org-calc
Conflicts: openoffice.org-core (<< 1:3.0.0~), openoffice.org-common (<<
1:3.0.1-10), ure (<< 1.5.1+OOo3.1.1-15)
Description: Writer/Calc to XHTML converter extension for OpenOffice.org
--8<---------------cut here---------------end--------------->8---
Here the chroot output:
=====
(lenny)r...@gismo:/# apt-get install openoffice.org-writer2latex
[...]
(lenny)r...@gismo:/# sed -i -e 's/lenny/squeeze/g' /etc/apt/sources.list
(lenny)r...@gismo:/# echo "deb http://people.debian.org/~gismo/debian
unstable/" >>/etc/apt/sources.list
(lenny)r...@gismo:/# apt-get update
(lenny)r...@gismo:/# apt-get install openoffice.org-writer2latex
[...]
Preparing to replace openoffice.org-java-common 1:2.4.1+dfsg-1+lenny8 (using
.../openoffice.org-java-common_1%3a3.2.1-9_all.deb) ...
Unpacking replacement openoffice.org-java-common ...
dpkg: dictionaries-common: dependency problems, but removing anyway as you
request:
openoffice.org-common depends on dictionaries-common (>= 0.10) |
openoffice.org-updatedicts; however:
Package dictionaries-common is to be removed.
Package openoffice.org-updatedicts is not installed.
Package dictionaries-common which provides openoffice.org-updatedicts is to
be removed.
openoffice.org-common depends on dictionaries-common (>= 0.10) |
openoffice.org-updatedicts; however:
Package dictionaries-common is to be removed.
Package openoffice.org-updatedicts is not installed.
Package dictionaries-common which provides openoffice.org-updatedicts is to
be removed.
(Reading database ... 16096 files and directories currently installed.)
Removing dictionaries-common ...
Removing `diversion of /usr/share/dict/words to
/usr/share/dict/words.pre-dictionaries-common by dictionaries-common'
(Reading database ... 16033 files and directories currently installed.)
Preparing to replace openoffice.org-core 1:2.4.1+dfsg-1+lenny8 (using
.../openoffice.org-core_1%3a3.2.1-9_amd64.deb) ...
Unpacking replacement openoffice.org-core ...
Preparing to replace openoffice.org-style-andromeda 1:2.4.1+dfsg-1+lenny8
(using .../openoffice.org-style-andromeda_1%3a3.2.1-9_all.deb) ...
Unpacking replacement openoffice.org-style-andromeda ...
Setting up libncursesw5 (5.7+20100313-4) ...
Setting up procps (1:3.2.8-9) ...
************************************
All rc.d operations denied by policy
************************************
(Reading database ... 16009 files and directories currently installed.)
Removing openoffice.org-common ...
(Reading database ... 13191 files and directories currently installed.)
Preparing to replace openoffice.org-writer2latex 0.5-8 (using
.../openoffice.org-writer2latex_1.0-12.1_all.deb) ...
/var/lib/dpkg/tmp.ci/preinst: line 58: /usr/lib/openoffice/program/unopkg: No
such file or directory
/var/lib/dpkg/tmp.ci/preinst: line 43: /usr/lib/openoffice/program/unopkg: No
such file or directory
Unpacking replacement openoffice.org-writer2latex ...
Selecting previously deselected package openoffice.org-common.
Unpacking openoffice.org-common (from
.../openoffice.org-common_1%3a3.2.1-9_all.deb) ...
Selecting previously deselected package uno-libs3.
Unpacking uno-libs3 (from .../uno-libs3_1.6.1+OOo3.2.1-9_amd64.deb) ...
Selecting previously deselected package ure.
Unpacking ure (from .../ure_1.6.1+OOo3.2.1-9_amd64.deb) ...
Selecting previously deselected package libraptor1.
Unpacking libraptor1 (from .../libraptor1_1.4.21-2_amd64.deb) ...
Selecting previously deselected package librasqal2.
Unpacking librasqal2 (from .../librasqal2_0.9.20-1_amd64.deb) ...
Selecting previously deselected package librdf0.
Unpacking librdf0 (from .../librdf0_1.0.10-3_amd64.deb) ...
Setting up ttf-opensymbol (1:3.2.1-9) ...
Setting up libc-dev-bin (2.11.2-7) ...
Setting up binutils (2.20.1-15) ...
Setting up libc6-dev (2.11.2-7) ...
Setting up libgpg-error0 (1.6-1) ...
Setting up libgcrypt11 (1.4.5-2) ...
Setting up libtasn1-3 (2.7-1) ...
Setting up libgnutls26 (2.8.6-1) ...
Setting up libkrb5support0 (1.8.3+dfsg-3) ...
Setting up libk5crypto3 (1.8.3+dfsg-3) ...
Setting up libkrb5-3 (1.8.3+dfsg-3) ...
Setting up libgssapi-krb5-2 (1.8.3+dfsg-3) ...
Setting up libkrb53 (1.8.3+dfsg-3) ...
Setting up libidn11 (1.15-2) ...
Setting up libcurl3-gnutls (7.21.0-1) ...
Setting up libdb4.8 (4.8.30-2) ...
Setting up libgraphite3 (1:2.3.1-0.2) ...
Setting up libhunspell-1.2-0 (1.2.11-1) ...
Setting up libicu44 (4.4.1-7) ...
Setting up libjpeg62 (6b1-1) ...
Setting up libmythes-1.2-0 (2:1.2.1-1) ...
Setting up libxml2 (2.7.8.dfsg-1) ...
Setting up libneon27-gnutls (0.29.3-3) ...
Setting up libssl0.9.8 (0.9.8o-3) ...
Setting up libxslt1.1 (1.1.26-6) ...
Setting up uno-libs3 (1.6.1+OOo3.2.1-9) ...
Setting up ure (1.6.1+OOo3.2.1-9) ...
Setting up libraptor1 (1.4.21-2) ...
Setting up librasqal2 (0.9.20-1) ...
Setting up librdf0 (1.0.10-3) ...
Setting up openoffice.org-style-andromeda (1:3.2.1-9) ...
Setting up openoffice.org-common (1:3.2.1-9) ...
Installing new version of config file /etc/bash_completion.d/ooffice.sh ...
Installing new version of config file /etc/openoffice/sofficerc ...
Setting up openoffice.org-java-common (1:3.2.1-9) ...
Setting up openoffice.org-core (1:3.2.1-9) ...
Setting up openoffice.org-writer2latex (1.0-12.1) ...
Disabling: writer2latex.uno.pkg
Disabling: w2l_filters.xcu
Disabling: w2l_types.xcu
Disabling: writer2latex.jar
unopkg done.
Copying: writer2latex.oxt
Enabling: Writer2LaTeX export filters
Enabling: writer2latex.rdb
Enabling: W2LDialogs
Enabling: Options.xcs
Enabling: writer2latex-filter.jar
Enabling: w2l_types.xcu
Enabling: w2l_filters.xcu
Enabling: Options.xcu
unopkg done.
(lenny)r...@gismo:/#
=====
Thx, bye,
Gismo / Luca
-- Package-specific info:
all deployed shared packages:
<none>
-- System Information:
Debian Release: 5.0.7
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.36-rc6-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages openoffice.org-writer2latex depends on:
ii debconf [debconf-2 1.5.24 Debian configuration management sy
ii java-gcj-compat [j 1.0.78-2 Java runtime environment using GIJ
ii openoffice.org-cor 1:3.2.1-9 office productivity suite -- arch-
ii openoffice.org-jav 1:2.4.1+dfsg-1+lenny8 OpenOffice.org office suite Java s
ii procps 1:3.2.8-9 /proc file system utilities
openoffice.org-writer2latex recommends no packages.
openoffice.org-writer2latex suggests no packages.
-- debconf information:
shared/openofficeorg-running:
pgpc4kz14OpGo.pgp
Description: PGP signature

