← Back to team overview

openjdk team mailing list archive

Bug#919790: openjdk-12-dbg: file conflict with openjdk-11-dbg: /usr/lib/debug/.build-id/37/f4d49104d24279b3c0275df2f763e95c9964fd.debug

 

Package: openjdk-12-dbg
Version: 12~28-1
Severity: serious
User: debian-qa@xxxxxxxxxxxxxxxx
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install
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...):

  Selecting previously unselected package openjdk-12-jre-headless:amd64.
  Preparing to unpack .../openjdk-12-jre-headless_12~28-1_amd64.deb ...
  Unpacking openjdk-12-jre-headless:amd64 (12~28-1) ...
  Selecting previously unselected package openjdk-12-dbg:amd64.
  Preparing to unpack .../openjdk-12-dbg_12~28-1_amd64.deb ...
  Unpacking openjdk-12-dbg:amd64 (12~28-1) ...
  dpkg: error processing archive /var/cache/apt/archives/openjdk-12-dbg_12~28-1_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/debug/.build-id/37/f4d49104d24279b3c0275df2f763e95c9964fd.debug', which is also in package openjdk-11-dbg:amd64 11.0.2+7-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/openjdk-12-dbg_12~28-1_amd64.deb

Either add Breaks+Replaces or change the build process s.t.
openjdk-11 and openjdk-12 cannot produce the same build ids.


cheers,

Andreas

Attachment: openjdk-11-dbg=11.0.2+7-1_openjdk-12-dbg=12~28-1.log.gz
Description: application/gzip