Package: emacs-lucid
Severity: serious
Version: 1:25.2+1-11

Hi Rob,

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:

Preparing to unpack .../emacs_1%3a25.2+1-11_all.deb ...
Unpacking emacs (1:25.2+1-11) over (47.0) ...
Selecting previously unselected package emacs-lucid.
Preparing to unpack .../emacs-lucid_1%3a25.2+1-11_arm64.deb ...
Unpacking emacs-lucid (1:25.2+1-11) ...
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
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/emacs-lucid_1%3a25.2+1-11_arm64.deb
[…]
E: Sub-process /usr/bin/dpkg returned an error code (1)
Processing triggers for mime-support (3.61) ...
dpkg: dependency problems prevent configuration of emacs:
 emacs depends on emacs-gtk (>= 1:25) | emacs-lucid (>= 1:25) | emacs-nox (>= 
1:25); however:
  Package emacs-gtk is not installed.
  Package emacs-lucid is not installed.
  Package emacs-nox is not installed.

dpkg: error processing package emacs (--configure):
 dependency problems - leaving unconfigured
[…]

The package currently has:

Replaces: emacs-gtk, emacs-lucid (<< 1:25), emacs-nox

But it should have (at least):

Replaces: emacs-gtk, emacs-nox, emacs25, emacs25-lucid, emacs25-nox

(I don't see why a package should have a Replaces header against an
earlier, identically named version of itself, so I dropped the
"emacs-lucid (<< 1:25)" part. Feel free to keep it though as it
shouldn't do any harm there.)

Having the same packages listed in Conflicts should be probably done,
too. So please also replace

Conflicts: emacs-gtk, emacs-nox

with

Conflicts: emacs-gtk, emacs-nox, emacs25, emacs25-lucid, emacs25-nox

The same also needs to be done for emacs-gtk and emacs-nox with the
according package being removed from the above examples and emacs-lucid
added instead.

Reply via email to