#1148748 golang-github-cespare-xxhash-v2-dev: missing Breaks/Replaces on golang-github-cespare-xxhash-dev and missing transitional package

#1148748#5
Date:
2026-09-23 00:07:29 UTC
From:
To:
Dear Maintainer,

The newly introduced binary package golang-github-cespare-xxhash-v2-dev ships
files under /usr/share/gocode/src/github.com/cespare/xxhash/v2/.

However, the existing package golang-github-cespare-xxhash-dev (source
golang-github-cespare-xxhash, version 2.3.0-3) already ships the v2 import
path under the exact same directory hierarchy.

Because golang-github-cespare-xxhash-v2-dev does not declare Breaks or Replaces
against golang-github-cespare-xxhash-dev, attempting to co-install both packages
(for instance, when building or testing packages that depend on the new -v2-dev
package while other dependencies like grpc-dev still depend on xxhash-dev)
fails with a dpkg file overwrite error:

  dpkg: error processing archive .../golang-github-cespare-xxhash-v2-dev_2.3.0-1_all.deb (--unpack):
   trying to overwrite '/usr/share/gocode/src/github.com/cespare/xxhash/v2/bench_test.go', which is also in package golang-github-cespare-xxhash-dev (2.3.0-3)

To fix this and provide a smooth migration path across the archive:

1. In package golang-github-cespare-xxhash-v2-dev, declare:

     Breaks: golang-github-cespare-xxhash-dev (<< 2.3.0-4~)
     Replaces: golang-github-cespare-xxhash-dev (<< 2.3.0-4~)

2. In source package golang-github-cespare-xxhash-v2, add a transitional dummy
   package in debian/control:

     Package: golang-github-cespare-xxhash-dev
     Architecture: all
     Section: oldlibs
     Depends:
      golang-github-cespare-xxhash-v2-dev (= ${binary:Version}),
      ${misc:Depends},
     Description: Go implementation of the 64-bit xxHash algorithm (transitional dummy package)
      This is a transitional dummy package to ease upgrades to
      golang-github-cespare-xxhash-v2-dev. It can safely be removed.

Building the transitional binary directly from golang-github-cespare-xxhash-v2
takes over the binary package in DAK (per Developer's Reference § 5.9.3), allowing
the old source package to be retired automatically while preserving support for
the ~30 packages in unstable that currently Build-Depend on the legacy package name.

#1148748#10
Date:
2026-09-23 11:04:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
golang-github-cespare-xxhash-v2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1148748@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrew Lee (李健秋) <ajqlee@debian.org> (supplier of updated golang-github-cespare-xxhash-v2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 23 Sep 2026 12:44:34 +0200
Source: golang-github-cespare-xxhash-v2
Architecture: source
Version: 2.3.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Andrew Lee (李健秋) <ajqlee@debian.org>
Closes: 1148748
Changes:
 golang-github-cespare-xxhash-v2 (2.3.0-2) unstable; urgency=medium
 .
   * Team upload.
   * debian/salsa-ci.yml: replace test archive gitlab-ci.
   * debian/control: added Breaks and Replaces in golang-github-cespare-
     xxhash-v2-dev.
   * debian/control: provide transitional package for golang-github-
     cespare-xxhash-dev (Closes: #1148748)
   * debian/golang-github-cespare-xxhash-v2-dev.install: ship files in this
     binary package.
   * debian/source/lintian-overrides: override lintian warning for the
     dummy transitional package.
Checksums-Sha1:
 cc7b2e5874453996d705675a5b18c006a299144b 2429 golang-github-cespare-xxhash-v2_2.3.0-2.dsc
 d819e1b3ca0f860913fd8affdacccf13cd31bf40 11588 golang-github-cespare-xxhash-v2_2.3.0.orig.tar.xz
 539833b14c8418b401fbf09830c01dcada5db820 3660 golang-github-cespare-xxhash-v2_2.3.0-2.debian.tar.xz
 827fc4badbcd77565ebc1921b1b7ebc5a382f203 6242 golang-github-cespare-xxhash-v2_2.3.0-2_source.buildinfo
Checksums-Sha256:
 ae93e3a962cc2ac8bc94fc9a7d3e06896109dfcba2c9c4457d82ca7fd19dfab3 2429 golang-github-cespare-xxhash-v2_2.3.0-2.dsc
 0b273e95ca07b95dd694a7db0dfafdd8ec871d45d015252d5762d7f2281773d6 11588 golang-github-cespare-xxhash-v2_2.3.0.orig.tar.xz
 087c9a83918c9143284a77a0c5787e7fc89039c45e011975bff56e0022a23580 3660 golang-github-cespare-xxhash-v2_2.3.0-2.debian.tar.xz
 669f3cc72db1f25890f4dbf8c0b798b7d4749f7947098d2428f7a6558057f95b 6242 golang-github-cespare-xxhash-v2_2.3.0-2_source.buildinfo
Files:
 1428abf10d0d6b10353cf5a08392c12c 2429 golang optional golang-github-cespare-xxhash-v2_2.3.0-2.dsc
 73ecdad8a1ae1b7fd950fd0786275e8d 11588 golang optional golang-github-cespare-xxhash-v2_2.3.0.orig.tar.xz
 3f591c8806510b8bd953722d5240998f 3660 golang optional golang-github-cespare-xxhash-v2_2.3.0-2.debian.tar.xz
 73c6b10c55a6ccf69ff2e864e51f6f79 6242 golang optional golang-github-cespare-xxhash-v2_2.3.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE703UlH90QYpfEyJV58vhUqwX+XMFAmqzricACgkQ58vhUqwX
+XOv0g/9FJhAne5PLFMcjOgMQL3Rgv10kKSABQgARwub/1/UTCErRGQFz7kArXj1
MmdnPoynXnIrUHHnZy8bjBDh7qbpO71G28yGFeMBRfvM7kej/WHUCjZFLx2GzX5P
zD7EG/pROAth4Fr/dXCqNfDvIFkxEs7JNRPTgbLeCnXBI6HVUr2ByZeM5mr13sOH
mBLfDFe3ZZ/chKKnBCvXZfIlvGLCG/Gl4xPRkFX9dJ2mOnnefelr1HVwaYF2fC/3
+Eumo95+SyImQdvLCe7KYA302OlXEEoSpWS/9FWxKKD2ptn92obpBhqz+VNTMNXb
/Zhm9iS28vyFZwrChbsgIFGfg1J0UOXwNHx0uQuUYEfiseilCVHnnxlAWWXoy23f
tS+Kw+w7RWJ3XFzbtAjFcCcqK0PQO26prKo/3MqMAr0h0GOnE5Sk5AZn4xRTVsp6
sK9N0Ro3sYy7ebRlCzpNZaUIHW3m6CEeDjgIFOo/vgntdiFEF0uIufpF9afnXQMn
qnM0ot2zw9dDjx1b28hV0UkAST8kthB6Q+SCRNa4u2DxfuLqxGe0qHrCGVULRJYx
y44kvVOaYAAztDUmMiF9SNKq/1E71eJekKPFKRNbtdquPaleGGNRtblgQilaMFeI
IpjH55jakwLLFYHcekXlCP3kMLj/IEezI26q7kXe25tCB7Zvvd8=
=2mDM
-----END PGP SIGNATURE-----