Source: caffe
Version: 1.0.0+git20180821.99bd997-6
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'sid' to 'experimental'.
It installed fine in 'sid', then the upgrade to 'experimental' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.

See policy 7.6 at
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces

>From the attached log (scroll to the bottom...):

  Unpacking libcaffe1:amd64 (1.0.0+git20180821.99bd997-6) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libcaffe1_1.0.0+git20180821.99bd997-6_amd64.deb 
(--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libcaffe.so.1.0.0', which is 
also in package libcaffe-cpu1:amd64 1.0.0+git20180821.99bd997-5+b5
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../libcaffe-dev_1.0.0+git20180821.99bd997-6_amd64.deb ...
  Unpacking libcaffe-dev:amd64 (1.0.0+git20180821.99bd997-6) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libcaffe-dev_1.0.0+git20180821.99bd997-6_amd64.deb 
(--unpack):
   trying to overwrite '/usr/include/caffe/blob.hpp', which is also in package 
libcaffe-cpu-dev:amd64 1.0.0+git20180821.99bd997-5+b5
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/libcaffe1_1.0.0+git20180821.99bd997-6_amd64.deb
   /var/cache/apt/archives/libcaffe-dev_1.0.0+git20180821.99bd997-6_amd64.deb

  Preparing to unpack .../libcaffe1_1.0.0+git20180821.99bd997-6_amd64.deb ...
  Unpacking libcaffe1:amd64 (1.0.0+git20180821.99bd997-6) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libcaffe1_1.0.0+git20180821.99bd997-6_amd64.deb 
(--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libcaffe.so.1.0.0', which is 
also in package libcaffe-cpu1:amd64 1.0.0+git20180821.99bd997-5+b5
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../caffe_1.0.0+git20180821.99bd997-6_amd64.deb ...
  Unpacking caffe (1.0.0+git20180821.99bd997-6) ...
  dpkg: error processing archive 
/var/cache/apt/archives/caffe_1.0.0+git20180821.99bd997-6_amd64.deb (--unpack):
   trying to overwrite '/usr/bin/caffe', which is also in package 
caffe-tools-cpu 1.0.0+git20180821.99bd997-5+b5
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/libcaffe1_1.0.0+git20180821.99bd997-6_amd64.deb
   /var/cache/apt/archives/caffe_1.0.0+git20180821.99bd997-6_amd64.deb

Since the packages have been renamed in experimental without providing
transitional packages, the B+R can be unversioned.

Would a transitional package for caffe-tools-cpu be useful?
Then use versioning (<< 1.0.0+git20180821.99bd997-6).
(A Provides will not help upgrades to switch to the new name,
a real package is needed in that case.)


cheers,

Andreas

Attachment: libcaffe-cpu1=1.0.0+git20180821.99bd997-5+b5_libcaffe1=1.0.0+git20180821.99bd997-6.log.gz
Description: application/gzip

Reply via email to