[pkg-go] Bug#824628: golang-metrics-dev and golang-github-rcrowley-go-metrics-dev: error when trying to install together

2018-03-10 Thread Mpampis Kostas

Hello and thanks Andreas for the bug report,

golang-metrics-dev is outdated for 2.5 years and greatly deviates from 
the package naming convention defined by the pkg-go team in 
https://pkg-go.alioth.debian.org/packaging.html

This naming deviation apparently causes this bug to reoccur.

Instead of removing the up-to-date golang-github-rcrowley-go-metrics-dev 
packace which follows the right naming

convention, me and my sponsor suggest the following actions:

* Revise golang-github-rcrowley-go-metrics-dev using Conflicts: 
golang-metrics-dev & Replaces: golang-metrics-dev.
* Open bug report to the 8 reverse dependencies of golang-metrics-dev 
and suggest to depend on golang-github-rcrowley-go-metrics-dev.
* Request removal of golang-metrics-dev from the archive when it has 
zero reverse dependencies.


We can proceed with the above actions if there are no objections or 
other suggestions.


Mpampis

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


[pkg-go] Bug#824628: golang-metrics-dev and golang-github-rcrowley-go-metrics-dev: error when trying to install together

2018-03-07 Thread Andreas Beckmann
Followup-For: Bug #824628

Same problem as two years ago:

  Selecting previously unselected package golang-github-rcrowley-go-metrics-dev.
  Preparing to unpack 
.../golang-github-rcrowley-go-metrics-dev_0.0~git20180125.8732c61-1_all.deb ...
  Unpacking golang-github-rcrowley-go-metrics-dev (0.0~git20180125.8732c61-1) 
...
  dpkg: error processing archive 
/var/cache/apt/archives/golang-github-rcrowley-go-metrics-dev_0.0~git20180125.8732c61-1_all.deb
 (--unpack):
   trying to overwrite 
'/usr/share/gocode/src/github.com/rcrowley/go-metrics/cmd/metrics-bench/metrics-bench.go',
 which is also in package golang-metrics-dev 0.0~git20150823-3
  Errors were encountered while processing:
   
/var/cache/apt/archives/golang-github-rcrowley-go-metrics-dev_0.0~git20180125.8732c61-1_all.deb


Andreas

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


[pkg-go] Bug#824628: golang-metrics-dev and golang-github-rcrowley-go-metrics-dev: error when trying to install together

2016-05-18 Thread Ralf Treinen
Package: golang-github-rcrowley-go-metrics-dev,golang-metrics-dev
Version: golang-github-rcrowley-go-metrics-dev/0.0~git20160226.0.eeba7bd-1
Version: golang-metrics-dev/0.0~git20150823-1
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2016-05-18
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 bzip2.
(Reading database ... 10961 files and directories currently installed.)
Preparing to unpack .../bzip2_1.0.6-8_amd64.deb ...
Unpacking bzip2 (1.0.6-8) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2.1_amd64.deb ...
Unpacking xz-utils (5.1.1alpha+20120614-2.1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.26-9_amd64.deb ...
Unpacking binutils (2.26-9) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.18.7_all.deb ...
Unpacking libdpkg-perl (1.18.7) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.5-1_amd64.deb ...
Unpacking patch (2.7.5-1) ...
Selecting previously unselected package make.
Preparing to unpack .../archives/make_4.1-9_amd64.deb ...
Unpacking make (4.1-9) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../dpkg-dev_1.18.7_all.deb ...
Unpacking dpkg-dev (1.18.7) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../golang-src_2%3a1.6.1-2_amd64.deb ...
Unpacking golang-src (2:1.6.1-2) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../golang-go_2%3a1.6.1-2_amd64.deb ...
Unpacking golang-go (2:1.6.1-2) ...
Selecting previously unselected package golang-github-stathat-go-dev.
Preparing to unpack 
.../golang-github-stathat-go-dev_0.0~git20130314.0.01d012b-1_all.deb ...
Unpacking golang-github-stathat-go-dev (0.0~git20130314.0.01d012b-1) ...
Selecting previously unselected package golang-github-rcrowley-go-metrics-dev.
Preparing to unpack 
.../golang-github-rcrowley-go-metrics-dev_0.0~git20160226.0.eeba7bd-1_all.deb 
...
Unpacking golang-github-rcrowley-go-metrics-dev (0.0~git20160226.0.eeba7bd-1) 
...
Selecting previously unselected package golang-metrics-dev.
Preparing to unpack .../golang-metrics-dev_0.0~git20150823-1_all.deb ...
Unpacking golang-metrics-dev (0.0~git20150823-1) ...
dpkg: error processing archive 
/var/cache/apt/archives/golang-metrics-dev_0.0~git20150823-1_all.deb (--unpack):
 trying to overwrite 
'/usr/share/gocode/src/github.com/rcrowley/go-metrics/sample_test.go', which is 
also in package golang-github-rcrowley-go-metrics-dev 
0.0~git20160226.0.eeba7bd-1
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/golang-metrics-dev_0.0~git20150823-1_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/rcrowley/go-metrics/cmd/metrics-bench/metrics-bench.go
  
/usr/share/gocode/src/github.com/rcrowley/go-metrics/cmd/metrics-example/metrics-example.go
  
/usr/share/gocode/src/github.com/rcrowley/go-metrics/cmd/never-read/never-read.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/counter.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/counter_test.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/debug.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/debug_test.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/ewma.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/ewma_test.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/gauge.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/gauge_float64.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/gauge_float64_test.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/gauge_test.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/graphite.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/graphite_test.go
  /usr/share/gocode/src/github.com/rcrowley/go-metrics/healthcheck.go