[Pkg-javascript-devel] Bug#1037234: node-babel7: missing Breaks+Replaces: node-babel-traverse (<< 7)

Andreas Beckmann anbe at debian.org
Thu Jun 8 21:04:56 BST 2023


Package: node-babel7
Version: 7.20.15+ds1+~cs214.269.168-3
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Control: affects -1 + node-babel-eslint

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'buster' to 'bullseye' to 'bookworm'.
It installed fine in 'buster', and upgraded to 'bullseye' successfully,
but then the upgrade to 'bullseye' failed
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

In case the package was not part of an intermediate stable release,
the version from the preceding stable release was kept installed.

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

  Preparing to unpack .../027-node-babel7_7.20.15+ds1+~cs214.269.168-3_all.deb ...
  Unpacking node-babel7 (7.20.15+ds1+~cs214.269.168-3) over (7.12.12+~cs150.141.84-6) ...
  dpkg: error processing archive /tmp/apt-dpkg-install-Dv7Dq8/027-node-babel7_7.20.15+ds1+~cs214.269.168-3_all.deb (--unpack):
   trying to overwrite '/usr/share/doc/node-babel-traverse/README.md', which is also in package node-babel-traverse 6.26.0+dfsg-3

node-babel-traverse (last released as a separate package in buster)
survived the upgrade to bullseye without problems, but causes problems
during the subsequent upgrade to bookworm.

There may be more old packages needing Breaks+Replaces ...
(But I have trouble building the package from git locally (gbp report
local modifications), so cannot easily test that).

You can test that starting with a minimal buster chroot, installing
node-babel-eslint, dist-upgrading to bullseye, distupgrading to bookworm
(fails with file overwrite errors in node-babel7), installing the fixed
node-babel7 package.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node-babel-eslint_None.log.gz
Type: application/gzip
Size: 64895 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20230608/4b6ecd5b/attachment.gz>


More information about the Pkg-javascript-devel mailing list