emacs and /etc/alternatives

Jesse Keating jkeating at redhat.com
Fri Mar 9 19:12:29 UTC 2007


On Friday 09 March 2007 14:02:13 Toshio Kuratomi wrote:
> I don't believe circular depenencies per se are problems.  Certain
> instances are.  (Someone please correct me if I'm wrong, here.)  In this
> case, breaking out the dependency into a virtual provides would be the
> standard way to show that emacs-common requires one of /usr/bin/emacs-x
> or /usr/bin/emacs-nox.
>
> ### Main package is old emacs-common
> Requires: binemacs = %{version}-%{release}
>
> %package x
> Provides: binemacs = %{version}-%{release}
> Requires: %{name} = %{version}-%{release}
>
> %package nox
> Provides: binemacs = %{version}-%{release}
> Requires: %{name} = %{version}-%{release}
>
> s/binemacs/WhateverVirtualProvideStrikesYourFancy/

I thought about this, but what stopped me was I kept thinking that one would 
want to set a preference in the /usr/bin/emacs file, and that would require 
modification of the file, or an /etc/ file to set preference which led be 
back to well, we have alternatives....

Of course, if we don't give a care what /usr/bin/emacs runs, so long as it 
runs, then we could keep the script as is and use this Provides method and 
move on.

-- 
Jesse Keating
Release Engineer: Fedora
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-maintainers/attachments/20070309/4c4b2cb9/attachment.sig>


More information about the Fedora-maintainers mailing list