2014-11-06 01:02 Andreas Beckmann:
Package: gdb-doc
Version: 7.7.1-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'wheezy'.
It installed fine in 'wheezy', then the upgrade to 'jessie' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.

See policy 7.6 at
http://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces

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

 Selecting previously unselected package gdb-doc.
 Unpacking gdb-doc (from .../gdb-doc_7.7.1-1_all.deb) ...
 dpkg: error processing /var/cache/apt/archives/gdb-doc_7.7.1-1_all.deb 
(--unpack):
  trying to overwrite '/usr/share/man/man1/gdb.1.gz', which is also in package 
gdb-minimal 7.4.1+dfsg-0.1
 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
 Errors were encountered while processing:
  /var/cache/apt/archives/gdb-doc_7.7.1-1_all.deb


cheers,

Andreas


Attaching patch with the agreement of Héctor, that he will apply later.


Cheers.
--
Manuel
diff --git a/debian/changelog b/debian/changelog
index 1de22dd..6b4c10b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+gdb-doc (7.7.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * d/control: Adding Breaks+Replaces of the binary package gdb-doc on
+    gdb-minimal (<< 7.7) as well as gdb and gdbserver, man pages were
+    moved across packages.  Thanks Andreas Beckmann for finding the
+    problem (Closes: #768213)
+  * d/control: Add Vcs-* and Homepage fields
+  * d/control: Update Standards-Version to 3.9.6 (no changes required)
+
+ -- Manuel A. Fernandez Montecelo <m...@debian.org>  Sun, 09 Nov 2014 10:05:02 
+0000
+
 gdb-doc (7.7.1-1) unstable; urgency=medium
 
   * Imported Upstream version 7.7.1
diff --git a/debian/control b/debian/control
index f4210f7..f180349 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Maintainer: Héctor Orón Martínez <hector.o...@gmail.com>
 Uploaders: Samuel Bronson <naes...@gmail.com>
 Section: non-free/devel
 Priority: optional
-Standards-Version: 3.9.3
+Standards-Version: 3.9.6
 Build-Depends: debhelper (>= 7),
 # These are just to satisfy the configure scripts ...
  libtinfo-dev
@@ -15,13 +15,16 @@ Build-Depends-Indep:
  texlive-fonts-recommended,
 # ... and the Type1 fonts for "ec" from here
  cm-super
+Vcs-Git: git://anonscm.debian.org/pkg-gdb/gdb-doc.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-gdb/gdb-doc.git
+Homepage: http://www.gnu.org/s/gdb/
 
 Package: gdb-doc
 Architecture: all
 Section: non-free/doc
 Depends: ${misc:Depends}
-Breaks: gdb (<< 7.7), gdbserver (<< 7.7)
-Replaces: gdb (<< 7.7), gdbserver (<< 7.7)
+Breaks: gdb (<< 7.7), gdb-minimal (<< 7.7), gdbserver (<< 7.7)
+Replaces: gdb (<< 7.7), gdb-minimal (<< 7.7), gdbserver (<< 7.7)
 Description: The GNU Debugger Documentation
  GDB is a source-level debugger, capable of breaking programs at
  any specific line, displaying variable values, and determining

Reply via email to