Control: tags -1 + patch

On 2018-09-05 01:18 +0200, Axel Beckert wrote:

> Hi again,
>
> Axel Beckert wrote:
>> I'm sorry, but the Breaks/Replaces headers still seem incomplete. I just
>> experienced the following upgrade failure when I wanted to switch from
>> emacs25 to emacs-lucid on a Raspberry Pi running Buster/Testing arm64:
> […]
>> dpkg: error processing archive 
>> /var/cache/apt/archives/emacs-lucid_1%3a25.2+1-11_arm64.deb (--unpack):
>>  trying to overwrite '/usr/share/emacs/25.2/etc/DOC', which is also in 
>> package emacs25 25.2+1-6+b2
>
> This is more or less the same issue as https://bugs.debian.org/904957
> which either hasn't been fixed correctly or the fix has been removed
> already again.

The former.  The attached patch should fix that, but I have not tested
it at all.

Cheers,
       Sven

>From c17bb8a334d3fded3f9e88fa37ada55f9cb80efb Mon Sep 17 00:00:00 2001
From: Sven Joachim <svenj...@gmx.de>
Date: Fri, 7 Sep 2018 09:52:49 +0200
Subject: [PATCH] Correct the Replaces in emacs-{gtk,lucid,nox}

The predecessors of emacs-gtk, emacs-lucid and emacs-nox in
src:emacs25 were called emacs25, emacs25-lucid and emacs25-nox
respectively, so replace those rather than the new variants.

Closes: 907997
---
 debian/control | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 6d4a533ea20..1dcd6a2a00a 100644
--- a/debian/control
+++ b/debian/control
@@ -42,7 +42,7 @@ Provides: emacs, emacsen, editor, info-browser, mail-reader, news-reader
 Suggests: emacs-common-non-dfsg
 Conflicts: emacs-gtk, emacs-nox
 Replaces: emacs-gtk, emacs-nox,
-  emacs-gtk (<< 1:25), emacs-lucid (<< 1:25), emacs-nox (<< 1:25)
+  emacs25 (<< 1:25), emacs25-lucid (<< 1:25), emacs25-nox (<< 1:25)
 Description: GNU Emacs editor (with Lucid GUI support)
  GNU Emacs is the extensible self-documenting text editor.  This
  package contains a version of Emacs with support for a graphical user
@@ -74,7 +74,7 @@ Provides: emacs, emacsen, editor, info-browser, mail-reader, news-reader
 Suggests: emacs-common-non-dfsg
 Conflicts: emacs-gtk, emacs-lucid
 Replaces: emacs-gtk, emacs-lucid,
-  emacs-gtk (<< 1:25), emacs-lucid (<< 1:25), emacs-nox (<< 1:25)
+  emacs25 (<< 1:25), emacs25-lucid (<< 1:25), emacs25-nox (<< 1:25)
 Description: GNU Emacs editor (without GUI support)
  GNU Emacs is the extensible self-documenting text editor.  This
  package contains a version of Emacs compiled without support for X,
@@ -100,7 +100,7 @@ Provides: emacs, emacsen, editor, info-browser, mail-reader, news-reader
 Suggests: emacs-common-non-dfsg
 Conflicts: emacs-lucid, emacs-nox
 Replaces: emacs-lucid, emacs-nox,
-  emacs-gtk (<< 1:25), emacs-lucid (<< 1:25), emacs-nox (<< 1:25)
+  emacs25 (<< 1:25), emacs25-lucid (<< 1:25), emacs25-nox (<< 1:25)
 Description: GNU Emacs editor (with GTK+ GUI support)
  GNU Emacs is the extensible self-documenting text editor.  This
  package contains a version of Emacs with a graphical user interface
-- 
2.19.0.rc2

Reply via email to