Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266262 - app-emacs/emacs-daemon - pkg_setup(): "This package needs at least Emacs 23."
Summary: app-emacs/emacs-daemon - pkg_setup(): "This package needs at least Emacs 23."
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 263222
  Show dependency tree
 
Reported: 2009-04-15 14:52 UTC by Jeroen Roovers (RETIRED)
Modified: 2009-04-16 01:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2009-04-15 14:52:27 UTC
emerge emacs-daemon starts out installing emacs and ends with installing emacs-daemon:

Tue Apr 14 19:53:25 2009 >>> app-editors/emacs-cvs-23.0.92
Tue Apr 14 19:55:39 2009 >>> virtual/emacs-23
Wed Apr 15 16:27:16 2009 >>> app-emacs/emacs-daemon-0.14

which fails in pkg_setup() because of:

 * This package needs at least Emacs 23.
 * Use "eselect emacs" to select the active version.
 *
 * ERROR: app-emacs/emacs-daemon-0.14 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called pkg_setup
 *               ebuild.sh, line 1264:  Called elisp_pkg_setup
 *            elisp.eclass, line   72:  Called die
 * The specific snippet of code:
 *              die "Emacs version ${have_emacs} is too low."
 *  The die message:
 *   Emacs version 22.3.1 is too low.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/keeps/gentoo/emergelogs/elmer/app-emacs:emacs-daemon-0.14:20090414-175606.log'.
 * The ebuild environment file is located at '/dev/shm/portage/app-emacs/emacs-daemon-0.14/temp/die.env'.
 *

There is no way an unattended (uninteractive) install could prevent this error, which means a default `emerge emacs-daemon' will always fail. Either the emacs-daemon ebuild should know how to find whatever it needs the installed app-editors/emacs-23 for, or it should properly check whether the package app-editors/emacs-23 is installed.
Comment 1 Ulrich Müller gentoo-dev 2009-04-15 15:38:26 UTC
We don't automatically update the selected Emacs version, since users' ~/.emacs initialisation files may be incompatible.

What we could do is to revert this change: <http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-daemon/emacs-daemon-0.13.ebuild?hideattic=0&r1=1.1&r2=1.2>

That would make the emerge succeed, but eventually require manual intervention before Emacs can be started by the rc script. (By using "eselect emacs", or by setting the version in /etc/conf.d/emacs.)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-15 15:46:20 UTC
Would it be a mitigating factor that if no app-editors/emacs SLOT is installed, emacs-23 is automatically (e)selected?
Comment 3 Ulrich Müller gentoo-dev 2009-04-15 15:49:07 UTC
(In reply to comment #2)
> Would it be a mitigating factor that if no app-editors/emacs SLOT is installed,
> emacs-23 is automatically (e)selected?

That's how it's supposed to work. It doesn't do this for you?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-15 17:54:47 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Would it be a mitigating factor that if no app-editors/emacs SLOT is installed,
> > emacs-23 is automatically (e)selected?
> 
> That's how it's supposed to work. It doesn't do this for you?

It was just an educated guess - I already had emacs-21 and -22 and -23 installed when I emerged emacs-daemon.

I would guess that many users who want to use emacs-daemon probably already have one of the earlier SLOTs filled.
Comment 5 Ulrich Müller gentoo-dev 2009-04-15 22:52:09 UTC
(In reply to comment #1)
> What we could do is to revert this change:
> <http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-daemon/emacs-daemon-0.13.ebuild?hideattic=0&r1=1.1&r2=1.2>

I've reverted this change. For installations with Emacs 22 (installed and (e)selected), the emerge should now no longer abort, but output a warning message only. New installations will get Emacs 23 automatically (as before).

Can we consider this bug as fixed?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-16 01:38:29 UTC
It installs fine and it warns about using the correct emacs version. Thanks.