emacs and /etc/alternatives

Toshio Kuratomi a.badger at gmail.com
Fri Mar 9 19:02:13 UTC 2007


On Fri, 2007-03-09 at 13:11 -0500, Chip Coldwell wrote:
> On Fri, 9 Mar 2007, Toshio Kuratomi wrote:
> > 
> > Ugh.  Is that the rpmlint warning that this is all about?  You already
> > have an emacs-common package for files shared between emacs with x and
> > emacs without x.  Move the /usr/bin/emacs script into the emacs-common
> > package and have done already.
> 
> That leads to a circular dependency.  The shell script requires that one 
> of the two "emacs" and "emacs-nox" packages be installed.  If emacs-common 
> requires one of those two, and they each require emacs-common ....
> 
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/

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-maintainers/attachments/20070309/7461e941/attachment.sig>


More information about the Fedora-maintainers mailing list