Bug#959942: src:caffe: missing (unversioned) Breaks+Replaces: libcaffe-cpu1/libcaffe-cpu-dev/caffe-tools-cpu
Andreas Beckmann
anbe at debian.org
Thu May 7 11:07:02 BST 2020
Source: caffe
Version: 1.0.0+git20180821.99bd997-6
Severity: serious
User: debian-qa at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcaffe-cpu1=1.0.0+git20180821.99bd997-5+b5_libcaffe1=1.0.0+git20180821.99bd997-6.log.gz
Type: application/gzip
Size: 19772 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20200507/74435f41/attachment-0001.gz>
More information about the debian-science-maintainers
mailing list