Bug#755290: [libreoffice-base] duplicated files with libreoffice-common

2014-07-19 Thread Riccardo Magliocchetti

Package: libreoffice-base
Version: 1:4.3.0~rc3-1
Severity: normal

--- Please enter the report below this line. ---

Hello,

here's the upgrade error:

Unpacking libreoffice-common (1:4.3.0~rc3-1) over (1:4.2.5-1) ...
dpkg: error processing archive 
/var/cache/apt/archives/libreoffice-common_1%3a4.3.0~rc3-1_all.deb 
(--unpack):
 trying to overwrite '/usr/lib/libreoffice/share/basic/script.xlc', 
which is also in package libreoffice-base 1:4.3.0~rc3-1

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

Looking at debian/rules

2283 mv $(PKGDIR)-common/$(OODIR)/share/basic/Access2Base \
2284 $(PKGDIR)-base/$(OODIR)/share/basic
2285 cp $(PKGDIR)-common/$(OODIR)/share/basic/dialog.xlc \
2286 $(PKGDIR)-base/$(OODIR)/share/basic
2287 cp $(PKGDIR)-common/$(OODIR)/share/basic/script.xlc \
2288 $(PKGDIR)-base/$(OODIR)/share/basic

these cp should be mv instead?

--- System information. ---
Architecture: i386
Kernel:   Linux 3.14.2

Debian Release: jessie/sid
  500 unstableftp.de.debian.org
  500 testing ftp.de.debian.org
  500 stable  dl.google.com
1 experimentalftp.de.debian.org

--- Package information. ---
Depends (Version) | Installed
=-+-=
libreoffice-base-core   (= 1:4.3.0~rc3-1) | 1:4.3.0~rc3-1
libreoffice-base-drivers(= 1:4.3.0~rc3-1) | 1:4.3.0~rc3-1
libreoffice-core(= 1:4.3.0~rc3-1) | 1:4.3.0~rc3-1
libc6(= 2.4) | 2.19-4
libgcc1  (= 1:4.1.1) | 1:4.9.1-1
libstdc++6   (= 4.9) | 4.9.1-1
uno-libs3(= 4.1.0~alpha) | 4.3.0~rc3-1
ure   | 4.3.0~rc3-1
fontconfig| 2.11.0-5
fonts-opensymbol  | 2:102.6+LibO4.2.5-1
libreoffice-common   ( 1:4.3.0~rc3) | 1:4.2.5-1
ure (= 4.2~) | 4.3.0~rc3-1
libatk1.0-0   (= 1.12.4) | 2.12.0-1
libboost-date-time1.55.0  | 1.55.0+dfsg-2
libc6   (= 2.16) | 2.19-4
libcairo2  (= 1.2.4) | 1.12.16-2
libclucene-contribs1 (= 2.3.3.4) | 2.3.3.4-4
libclucene-core1 (= 2.3.3.4) | 2.3.3.4-4
libcmis-0.4-4  (= 0.4.0) | 0.4.1-7
libcups2   (= 1.4.0) | 1.7.4-1
libcurl3-gnutls   (= 7.16.2) | 7.37.0-1+b1
libdbus-1-3(= 1.0.2) | 1.8.6-1
libdbus-glib-1-2(= 0.78) | 0.102-1
libeot0   | 0.01-2
libexpat1  (= 2.0.1) | 2.1.0-6
libexttextcat-2.0-0(= 2.2-8) | 3.4.4-1
libfontconfig1  (= 2.11) | 2.11.0-5
libfreetype6   (= 2.3.5) | 2.5.2-1
libgcc1  (= 1:4.1.1) | 1:4.9.1-1
libgdk-pixbuf2.0-0(= 2.22.0) | 2.30.7-1
libgl1-mesa-glx   | 10.2.3-1
 OR libgl1|
libglew1.10   (= 1.10.0) | 1.10.0-3
libglib2.0-0  (= 2.15.0) | 2.40.0-3
libglu1-mesa  | 9.0.0-2
 OR libglu1   |
libgraphite2-3 (= 1.2.2) | 1.2.4-3
libgtk2.0-0   (= 2.24.0) | 2.24.24-1
libharfbuzz-icu0  (= 0.9.18) | 0.9.29-1
libharfbuzz0b (= 0.9.18) | 0.9.29-1
libhunspell-1.3-0  (= 1.3.3) | 1.3.3-1
libhyphen0 (= 2.7.1) | 2.8.7-2
libice6  (= 1:1.0.0) | 2:1.0.8-2
libicu52(= 52~m1-1~) | 52.1-4
libjpeg8  (= 8c) | 8d1-1
liblangtag1(= 0.4.0) | 0.5.1-2
liblcms2-2   (= 2.2+git20110628) | 2.6-3
libldap-2.4-2  (= 2.4.7) | 2.4.39-1
libmythes-1.2-0   | 2:1.2.4-1
libneon27-gnutls  | 0.30.0-3
libnspr4   (= 2:4.9-2~)  | 2:4.10.6-1
 OR libnspr4-0d (= 1.8.0.10) | 2:4.10.6-1
libnss3 (= 2:3.13.4-2~)  | 2:3.16.3-1
 OR libnss3-1d  (= 3.12.0~1.9b1) | 2:3.16.3-1
libodfgen-0.1-1   | 0.1.1-1
libpango-1.0-0(= 1.14.0) | 1.36.3-1
libpangocairo-1.0-0   (= 1.14.0) | 1.36.3-1
libpangoft2-1.0-0 (= 1.14.0) | 1.36.3-1
libpng12-0  (= 1.2.13-4) | 1.2.50-1
librevenge-0.0-0 

Bug#755290: [libreoffice-base] duplicated files with libreoffice-common

2014-07-19 Thread Rene Engelhard
severity 755290 important
tag 755290 + moreinfo
thanks

Hi,

On Sat, Jul 19, 2014 at 06:08:13PM +0200, Riccardo Magliocchetti wrote:
 Unpacking libreoffice-common (1:4.3.0~rc3-1) over (1:4.2.5-1) ...
 dpkg: error processing archive
 /var/cache/apt/archives/libreoffice-common_1%3a4.3.0~rc3-1_all.deb
 (--unpack):
  trying to overwrite '/usr/lib/libreoffice/share/basic/script.xlc',
 which is also in package libreoffice-base 1:4.3.0~rc3-1
 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

What did you do to upgrade? All dist-upgrade attempts I did work fine.

 Looking at debian/rules
 
 2283 mv $(PKGDIR)-common/$(OODIR)/share/basic/Access2Base \
 2284 $(PKGDIR)-base/$(OODIR)/share/basic
 2285 cp $(PKGDIR)-common/$(OODIR)/share/basic/dialog.xlc \
 2286 $(PKGDIR)-base/$(OODIR)/share/basic
 2287 cp $(PKGDIR)-common/$(OODIR)/share/basic/script.xlc \
 2288 $(PKGDIR)-base/$(OODIR)/share/basic
 
 these cp should be mv instead?

No, they shouldn't.

You didn't look at the part exactly after that part:

t=`mktemp -q`; grep -v Access2Base 
$(PKGDIR)-common/$(OODIR)/share/basic/dialog.xlc  \
$$t  mv $$t $(PKGDIR)-common/$(OODIR)/share/basic/dialog.xlc 
 rm -f $$t
t=`mktemp -q`; grep -v Access2Base 
$(PKGDIR)-common/$(OODIR)/share/basic/script.xlc  \
$$t  mv $$t $(PKGDIR)-common/$(OODIR)/share/basic/script.xlc 
 rm -f $$t

-common has that Basic scripts registry without Access2Base, -base the copy
with Access2Base. Thus the cp of the original (with Access2Base) and then
fixing up the other one.

And -base diverts it away.

So *something* doesn't work with the diversions in some cases but I followed
the instructions 1:1 afaics.

I see if [ upgrade != $1 ] || dpkg --compare-versions $2 lt 1:4.2.5~rc1-1; 
then in preinst, the version is probably wrong (did in in 4.2.5 first then
reverted that and did it in 4.3 only. Maybe fixing that fixes this bug, although
reading https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html it
seems the version check is just for cosmetics...)

Regards,

Rene


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#755290: [libreoffice-base] duplicated files with libreoffice-common

2014-07-19 Thread Rene Engelhard
Hi,

On Sat, Jul 19, 2014 at 07:03:48PM +0200, Rene Engelhard wrote:
 I see if [ upgrade != $1 ] || dpkg --compare-versions $2 lt 
 1:4.2.5~rc1-1; then in preinst, the version is probably wrong (did in in 
 4.2.5 first then
 reverted that and did it in 4.3 only. Maybe fixing that fixes this bug, 
 although
 reading https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html it
 seems the version check is just for cosmetics...)

Thst said I missed the error handling part there; adding, but I doubt
that will fix your issue - as -common is somehow unpacked before -base had
the chance to do the diversion...

Regards,
 
Rene


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#755290: [libreoffice-base] duplicated files with libreoffice-common

2014-07-19 Thread Rene Engelhard
severity 755290 serious
retitle 755290 [libreoffice-base] duplicated files with libreoffice-common; 
diversion not working on upgrades
thanks

On Sat, Jul 19, 2014 at 07:13:44PM +0200, Rene Engelhard wrote:
 On Sat, Jul 19, 2014 at 07:03:48PM +0200, Rene Engelhard wrote:
  I see if [ upgrade != $1 ] || dpkg --compare-versions $2 lt 
  1:4.2.5~rc1-1; then in preinst, the version is probably wrong (did in in 
  4.2.5 first then
  reverted that and did it in 4.3 only. Maybe fixing that fixes this bug, 
  although
  reading https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html it
  seems the version check is just for cosmetics...)
 
 Thst said I missed the error handling part there; adding, but I doubt
 that will fix your issue - as -common is somehow unpacked before -base had
 the chance to do the diversion...

Sigh. Even a dist-upgrade fails now..

Vorbereitung zum Entpacken von .../libreoffice-base_4.3.0~rc3-1_amd64.deb ...
Entpacken von libreoffice-base (1:4.3.0~rc3-1) über (1:4.2.5-1+b1) ...
Ersetzen der Dateien im alten Paket libreoffice-common (1:4.2.5-1) .
[...]
Entpacken von libreoffice-common (1:4.3.0~rc3-1) über (1:4.2.5-1) ...
dpkg: Fehler beim Bearbeiten des Archivs 
/var/cache/apt/archives/libreoffice-common_1%3a4.3.0~rc3-1_all.deb (--unpack):
 Versuch, »/usr/lib/libreoffice/share/basic/script.xlc« zu überschreiben, 
welches auch in Paket libreoffice-base 1:4.3.0~rc3-1 ist
dpkg-deb: Fehler: Unterprozess einfügen wurde durch Signal (Datenübergabe 
unterbrochen (broken pipe)) getötet

Apparently -base didn't do the diversions..

Even though:

# dpkg -r libreoffice-base
(Lese Datenbank ... 292101 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von libreoffice-base (1:4.3.0~rc3-1) ...
Keine Umleitung »Umleitung von /usr/lib/libreoffice/share/basic/dialog.xlc zu 
/usr/lib/libreoffice/share/basic/dialog.xlc.noaccess durch libreoffice-base«, 
keine entfernt.
Keine Umleitung »Umleitung von /usr/lib/libreoffice/share/basic/script.xlc zu 
/usr/lib/libreoffice/share/basic/script.xlc.noaccess durch libreoffice-base«, 
keine entfernt.

it tries to remove them fine...

after that after a apt-get -f install does it:

# apt-get -f install
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.   
Statusinformationen werden eingelesen Fertig
Abhängigkeiten werden korrigiert ... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libreoffice-base libreoffice-common
Vorgeschlagene Pakete:
  libreoffice-gcj libreoffice-report-builder libreoffice-style-crystal
  libreoffice-style-hicontrast libreoffice-style-oxygen libreoffice-style-sifr
Empfohlene Pakete:
  xfonts-mathml
Die folgenden NEUEN Pakete werden installiert:
  libreoffice-base
Die folgenden Pakete werden aktualisiert (Upgrade):
  libreoffice-common
1 aktualisiert, 1 neu installiert, 0 zu entfernen und 4 nicht aktualisiert.
42 nicht vollständig installiert oder entfernt.
Es müssen noch 0 B von 22,6 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 8.865 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] 
WARNUNG: Die folgenden Pakete können nicht authentifiziert werden!
  libreoffice-common libreoffice-base
Diese Pakete ohne Überprüfung installieren? [j/N] j
Lese Changelogs... Fertig
E: Can not write log (Is /dev/pts mounted?) - openpty (2: Datei oder 
Verzeichnis nicht gefunden)
(Lese Datenbank ... 292051 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libreoffice-common_1%3a4.3.0~rc3-1_all.deb 
...
Entpacken von libreoffice-common (1:4.3.0~rc3-1) über (1:4.2.5-1) ...
Vormals nicht ausgewähltes Paket libreoffice-base wird gewählt.
Vorbereitung zum Entpacken von .../libreoffice-base_4.3.0~rc3-1_amd64.deb ...
»Umleitung von /usr/lib/libreoffice/share/basic/dialog.xlc zu 
/usr/lib/libreoffice/share/basic/dialog.xlc.noaccess durch libreoffice-base« 
wird hinzugefügt
»Umleitung von /usr/lib/libreoffice/share/basic/script.xlc zu 
/usr/lib/libreoffice/share/basic/script.xlc.noaccess durch libreoffice-base« 
wird hinzugefügt
Entpacken von libreoffice-base (1:4.3.0~rc3-1) ...

So yes, it's probably the broken version check which needs to be fixed anyway.
This fixes the upgrade on a normal upgrade but maybe not with a -t 
experimental
random packages one, but *shrugs*

Regards,
  
Rene


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org