emacs and /etc/alternatives

Matthias Clasen mclasen at redhat.com
Thu Mar 8 17:35:44 UTC 2007


On Thu, 2007-03-08 at 12:02 -0500, Chip Coldwell wrote:
> Currently, there are two versions of GNU emacs that can be installed:
> emacs and emacs-nox.  The latter runs in a terminal emulator, the
> former uses X windows.  I'm cleaning up the emacs spec file to meet
> the Fedora review requirements, and I think the right thing to do
> would be to have
> 
> /usr/bin/emacs-22.0.95
> /usr/bin/emacs-22.0.95-nox
> /usr/bin/emacs -> /etc/alternatives/emacs
> /etc/alternatives/emacs -> /usr/bin/emacs-22.0.95[-nox]
> 
> In other words, let the /etc/alternatives symlink select which of the
> two versions runs by default.
> 
> Is this the right thing to do?
> If so, should the emacs-nox package have a "Conflicts: emacs" and
> vice-versa?
> 

If the two packages conflict, they cannot be installed in parallel, and
thus you don't need the alternatives mechanism to pick one...

But thats probably the best solution: just let the two packages
conflict. 




More information about the Fedora-maintainers mailing list