Package: libtesseract3,libtesseract4
Version: libtesseract3/3.4.1-3
Version: libtesseract4/3.4.1-2+b1
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2016-02-26
Architecture: amd64
Distribution: sid

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:


Selecting previously unselected package libjbig0:amd64.
(Reading database ... 10938 files and directories currently installed.)
Preparing to unpack .../libjbig0_2.1-3.1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1) ...
Selecting previously unselected package gcc-5-base:amd64.
Preparing to unpack .../gcc-5-base_5.3.1-10_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.3.1-10) ...
Setting up gcc-5-base:amd64 (5.3.1-10) ...
(Reading database ... 10950 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.3.1-10_amd64.deb ...
Unpacking libstdc++6:amd64 (5.3.1-10) over (4.8.2-19) ...
Processing triggers for libc-bin (2.21-9) ...
Setting up libstdc++6:amd64 (5.3.1-10) ...
Processing triggers for libc-bin (2.21-9) ...
Selecting previously unselected package libgif7:amd64.
(Reading database ... 10964 files and directories currently installed.)
Preparing to unpack .../libgif7_5.1.2-0.2_amd64.deb ...
Unpacking libgif7:amd64 (5.1.2-0.2) ...
Selecting previously unselected package libjpeg62-turbo:amd64.
Preparing to unpack .../libjpeg62-turbo_1%3a1.4.2-2_amd64.deb ...
Unpacking libjpeg62-turbo:amd64 (1:1.4.2-2) ...
Selecting previously unselected package libopenjp2-7:amd64.
Preparing to unpack .../libopenjp2-7_2.1.0-2.1_amd64.deb ...
Unpacking libopenjp2-7:amd64 (2.1.0-2.1) ...
Selecting previously unselected package libpng12-0:amd64.
Preparing to unpack .../libpng12-0_1.2.54-3_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-3) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../libtiff5_4.0.6-1_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.6-1) ...
Selecting previously unselected package libwebp5:amd64.
Preparing to unpack .../libwebp5_0.4.4-1+b1_amd64.deb ...
Unpacking libwebp5:amd64 (0.4.4-1+b1) ...
Selecting previously unselected package liblept5.
Preparing to unpack .../liblept5_1.73-1+b1_amd64.deb ...
Unpacking liblept5 (1.73-1+b1) ...
Selecting previously unselected package libtesseract3.
Preparing to unpack .../libtesseract3_3.04.01-3_amd64.deb ...
Unpacking libtesseract3 (3.04.01-3) ...
Selecting previously unselected package libtesseract4.
Preparing to unpack .../libtesseract4_3.04.01-2+b1_amd64.deb ...
Unpacking libtesseract4 (3.04.01-2+b1) ...
dpkg: error processing archive 
/var/cache/apt/archives/libtesseract4_3.04.01-2+b1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/tesseract-ocr/tessdata/pdf.ttf', which is also 
in package libtesseract3 3.04.01-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.21-9) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libtesseract4_3.04.01-2+b1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/lib/libtesseract.so.3
  /usr/lib/libtesseract.so.3.0.4
  /usr/share/tesseract-ocr/tessdata/configs/ambigs.train
  /usr/share/tesseract-ocr/tessdata/configs/api_config
  /usr/share/tesseract-ocr/tessdata/configs/bigram
  /usr/share/tesseract-ocr/tessdata/configs/box.train
  /usr/share/tesseract-ocr/tessdata/configs/box.train.stderr
  /usr/share/tesseract-ocr/tessdata/configs/digits
  /usr/share/tesseract-ocr/tessdata/configs/hocr
  /usr/share/tesseract-ocr/tessdata/configs/inter
  /usr/share/tesseract-ocr/tessdata/configs/kannada
  /usr/share/tesseract-ocr/tessdata/configs/linebox
  /usr/share/tesseract-ocr/tessdata/configs/logfile
  /usr/share/tesseract-ocr/tessdata/configs/makebox
  /usr/share/tesseract-ocr/tessdata/configs/pdf
  /usr/share/tesseract-ocr/tessdata/configs/quiet
  /usr/share/tesseract-ocr/tessdata/configs/rebox
  /usr/share/tesseract-ocr/tessdata/configs/strokewidth
  /usr/share/tesseract-ocr/tessdata/configs/unlv
  /usr/share/tesseract-ocr/tessdata/pdf.ttf
  /usr/share/tesseract-ocr/tessdata/tessconfigs/batch
  /usr/share/tesseract-ocr/tessdata/tessconfigs/batch.nochop
  /usr/share/tesseract-ocr/tessdata/tessconfigs/matdemo
  /usr/share/tesseract-ocr/tessdata/tessconfigs/msdemo
  /usr/share/tesseract-ocr/tessdata/tessconfigs/nobatch
  /usr/share/tesseract-ocr/tessdata/tessconfigs/segdemo

This bug has been filed against both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may then
also register in the BTS that the other package is affected by the bug.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://qa.debian.org/dose/file-overwrites.html.

Reply via email to