Ask Your Question
0

Manually include as dependencies programs not installed by Fedora

asked 2013-10-15 17:17:03 -0600

Woland gravatar image

updated 2014-03-18 17:08:17 -0600

mether gravatar image

So I like to compile my Emacs from source, but I am quite happy with using Git from the Fedora repositories. However, if I try to install the git-all.noarch metapackage, I have two Emacs packages popping up as dependencies:

 emacs-common            x86_64       1:24.3-13.fc20         fedora        21 M
 emacs-git               noarch       1.8.3.1-3.fc20         fedora        48 k
 emacs-nox

What is the proper way to solve this problem? Is there a switch I can sent to RPM or yum so these packages get ignored? Or do I have to write a "dummy package" and install that?

edit retag flag offensive close merge delete

Comments

1

Do you use emacs-git? If not, just install git and whatever subpackages you need, instead of git-all.

randomuser gravatar imagerandomuser ( 2013-10-16 11:18:36 -0600 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2013-10-15 23:20:59 -0600

remi gravatar image

This is not possible.

RPM Dependencies always refer to something provided by another RPM and registered in the RPM database.

While I don't really understand why you want the compile emacs from sources, the better solution for this is probably to use the Fedora sources RPM and update it to suite your needs.

edit flag offensive delete link more

Comments

Je vous remercie beaucoup pour votre réponse. I compile Emacs from source because I periodically pull new sources from the Emacs git repository probably considerably more frequently than a source RPM might be updated. Are you suggesting that I modify the source RPM so that compiles the code I have in my src/emacs directory? Could you perhaps point me to such an .srpm ? Also, is it really so uncommon to have such a "mixed" Fedora system? I've been doing it on other distributions forever, just telling package managers to ignore dependencies.

Woland gravatar imageWoland ( 2013-10-16 00:21:10 -0600 )edit
1

Of course RPM have an option to ignore dependencies. This is just a very bad idea, or a good way to break your system consistency.

Yes, I'm suggesting to modify the source RPM and regenerate the binary RPM which you will be able to used instead off the default ones.

To download a source RPM: yumdownloader --source <pkgname>

remi gravatar imageremi ( 2013-10-16 01:06:17 -0600 )edit
0

answered 2013-10-16 00:27:48 -0600

hmaarrfk gravatar image

Try to install the package straight with RPM

http://yum.baseurl.org/wiki/NoDeps

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-15 17:17:03 -0600

Seen: 326 times

Last updated: Oct 16 '13