emacs package is version 23 but depends on the older version emacs22

Bug #462936 reported by IRIE Shinsuke
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
emacs22 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: emacs

Summary: the "emacs" metapackage has a confusing version number, and some users expect it to pull in emacs23 rather than emacs22. In particular, packages which depend on the "emacs" metapackage will pull in emacs22 even if emacs23 is already installed. Perhaps the description of the "emacs" package should be clearer about its being a metapackage, and perhaps point to information about main vs. universe.

Original description follows.

After installation of Ubuntu 9.10RC, I installed emacs23 package but not emacs package, and was additionally going to install w3m-el-snapshot package which depends on emacs package. However, I stopped installing w3m-el-snapshot because emacs package required to install emacs22 package by its dependencies:

$ sudo apt-get install w3m-el-snapshot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apel emacs emacs22-bin-common emacs22-common emacs22-gtk flim metamail sharutils
Suggested packages:
  emacs22-el semi wl wl-beta mule-ucs imagemagick wv xlhtml ppthtml libmoe1.5 namazu2
The following NEW packages will be installed:
  apel emacs emacs22-bin-common emacs22-common emacs22-gtk flim metamail sharutils w3m-el-snapshot
0 upgraded, 9 newly installed, 0 to remove and 42 not upgraded.
Need to get 22.3MB of archives.
After this operation, 71.5MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

It seems as if the installation candidate of emacs package is the latest version 23, but this package strangely depends on the older version 22:

$ apt-cache policy emacs
emacs:
  Installed: (none)
  Candidate: 23.1+1-4ubuntu2+22.2+0ubuntu6
  Version table:
     23.1+1-4ubuntu2+22.2+0ubuntu6 0
        500 http://jp.archive.ubuntu.com karmic/main Packages
$ apt-cache depends emacs
emacs
 |Depends: emacs22-gtk
 |Depends: emacs22
    emacs22-gtk
    emacs22-nox
  Depends: emacs22-nox

emacs package is described as follows:

Description: The GNU Emacs editor (metapackage)
 GNU Emacs is the extensible self-documenting text editor.
 This is a metapackage which will always depend on the latest Emacs
 release.

I have read Bug #433397 and understand why emacs22 is installed prior to emacs23. But I think the version number of emacs package and this package description are very confusing.

Revision history for this message
IRIE Shinsuke (irie) wrote :

Sorry, I read Bug #433397 and realized why emacs22 is installed prior to emacs23. Before that, I'd been unaware of the fact that emacs23 is in universe. But I think the version number of emacs package (23.1+1-4ubuntu2+22.2+0ubuntu6) and the above description are very confusing.

IRIE Shinsuke (irie)
summary: - emacs package depends on the older version emacs22
+ emacs package is version 23 but depends on the older version emacs22
Revision history for this message
IRIE Shinsuke (irie) wrote :

I think it is necessary to correct the description of emacs metapackage in order that we can understand the reason why emacs22 will be installed instead of the latest version 23.

IRIE Shinsuke (irie)
description: updated
Revision history for this message
Jeremy Nickurak (nickurak) wrote :

Yeah, this seems bizarre to me as well.

Why does the emacs package have both 23.1 and 22.2 both listed in its version string? It took me a long time to realise that it wasn't 23.1, becase 23.1 comes first.

The package description says:

"GNU Emacs is the extensible self-documenting text editor. This is a
metapackage which will always depend on the latest Emacs release."

This seems incorrect, since ubuntu universe includes emacs23...

Revision history for this message
Jeremy Nickurak (nickurak) wrote :

The emacs changelog's latest entry is:

emacs22 (22.2-0ubuntu6.1) karmic-proposed; urgency=low

  * backport patch from emacs23 to ensure that dynamic menus get updated properly
    Closes: #550541, LP: #415101
 -- Reinhard Tartler <email address hidden> Mon, 09 Nov 2009 12:03:17 +0100

but apt-cache policy emacs says:

emacs:
  Installed: 23.1+1-4ubuntu2+22.2+0ubuntu6.1
  Candidate: 23.1+1-4ubuntu2+22.2+0ubuntu6.1
  Version table:
 *** 23.1+1-4ubuntu2+22.2+0ubuntu6.1 0
        500 http://mirror.cpsc.ucalgary.ca karmic-updates/main Packages
        100 /var/lib/dpkg/status
     23.1+1-4ubuntu2+22.2+0ubuntu6 0
        500 http://mirror.cpsc.ucalgary.ca karmic/main Packages

Why did 23.1 end up in the version string when apt got to it?

Revision history for this message
era (era) wrote :

Confirmed from duplicates etc. Will update description.

affects: emacs23 (Ubuntu) → emacs22 (Ubuntu)
Revision history for this message
era (era) wrote :

(Quoting Launchpad:)

'emacs' is a binary package. This bug has been assigned to its source package 'emacs22' instead.

The bug supervisor for emacs22 (Ubuntu) has been subscribed to this bug.

Changed in emacs22 (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Alex Wauck (awauck) wrote :

This bug hasn't been touched in a while, and I'm guessing it's not a problem in more recent releases (emacs depends on emacs23 | emacs23-lucid | emacs23-nox in Ubuntu 11.10). Perhaps this bug should be closed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.