Package: golang-etcd-dev,golang-github-coreos-go-etcd-dev
Version: golang-etcd-dev/2.0.0-2
Version: golang-github-coreos-go-etcd-dev/2.0.0-3
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2017-07-17
Architecture: amd64
Distribution: sid

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:


Selecting previously unselected package golang-etcd-dev.
(Reading database ... 11006 files and directories currently installed.)
Preparing to unpack .../golang-etcd-dev_2.0.0-2_all.deb ...
Unpacking golang-etcd-dev (2.0.0-2) ...
Selecting previously unselected package golang-github-coreos-go-etcd-dev.
Preparing to unpack .../golang-github-coreos-go-etcd-dev_2.0.0-3_all.deb ...
Unpacking golang-github-coreos-go-etcd-dev (2.0.0-3) ...
dpkg: error processing archive 
/var/cache/apt/archives/golang-github-coreos-go-etcd-dev_2.0.0-3_all.deb 
(--unpack):
 trying to overwrite 
'/usr/share/gocode/src/github.com/coreos/go-etcd/etcd/add_child.go', which is 
also in package golang-etcd-dev 2.0.0-2
Errors were encountered while processing:
 /var/cache/apt/archives/golang-github-coreos-go-etcd-dev_2.0.0-3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/add_child.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/add_child_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/client.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/client_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/cluster.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/compare_and_delete.go
  
/usr/share/gocode/src/github.com/coreos/go-etcd/etcd/compare_and_delete_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/compare_and_swap.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/compare_and_swap_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/debug.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/debug_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/delete.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/delete_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/error.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/get.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/get_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/member.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/member_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/options.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/requests.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/requests_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/response.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/set_curl_chan_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/set_update_create.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/set_update_create_test.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/version.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/watch.go
  /usr/share/gocode/src/github.com/coreos/go-etcd/etcd/watch_test.go

This bug has been filed against both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may then
also register in the BTS that the other package is affected by the bug.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://qa.debian.org/dose/file-overwrites.html.

_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to