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.
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.)
Would it be a mitigating factor that if no app-editors/emacs SLOT is installed, emacs-23 is automatically (e)selected?
(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?
(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.
(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?
It installs fine and it warns about using the correct emacs version. Thanks.