View previous topic :: View next topic |
Author |
Message |
Martial
Joined: 26 Feb 2006 Posts: 23
|
Posted: Fri Oct 20, 2006 12:02 am Post subject: why does emacs require XOrg7?? |
|
|
I have XOrg installed in a fresh lunar installation. I went "lin emacs," and it proceeds to try to install XOrg7. I tried to install XOrg7 on this Pentium 2 laptop, and I could not.
Would someone please tell me why the emacs install scripts make emacs depend on XOrg7? I am perfectly certain emacs will work with other Xs. |
|
Back to top |
|
 |
ElAngelo
Joined: 10 Aug 2005 Posts: 77
|
Posted: Fri Oct 20, 2006 7:55 am Post subject: |
|
|
Obviously your story is not complete...
First of all if you would have checked the DEPENDS file of emacs you would have seen (lvu DEPENDS emacs) that it tells you it depends on %X. %X is, as you can see in /var/lib/lunar/moonbase/aliases, an alias for XOrg, XOrg-test, and XOrg7.
SO
or, before you installed XOrg you have tried to install XOrg7 or you did something else to mess up your install...
Anyway this is the way to fix it:
lrm emacs (in case you would have had it installed already)
lunar fixdepends
lin -cr emacs
and NO it DOES NOT help spamming in other posts. |
|
Back to top |
|
 |
Martial
Joined: 26 Feb 2006 Posts: 23
|
Posted: Thu Oct 26, 2006 1:24 am Post subject: |
|
|
Thank you, and I do not see why emacs should depend on X. It should be possible to have emacs from the console.
I wasn't spamming in other posts; I have a build problem with XOrg7. I will post it there, since it isn't about emacs. |
|
Back to top |
|
 |
ElAngelo
Joined: 10 Aug 2005 Posts: 77
|
Posted: Thu Oct 26, 2006 7:28 am Post subject: |
|
|
Martial,
Emacs *optionally* depends on XOrg
When you lin emacs it will have to ask which XOrg you want to install. After that it will ask you *if* it needs to install XOrg... So first you choose which XOrg and after that you say you don't want XOrg... I know that is a bit confusing and a bit (kuch) counterintuitive but it is how the stuff gets parsed right now in the package manager. |
|
Back to top |
|
 |
Martial
Joined: 26 Feb 2006 Posts: 23
|
Posted: Thu Oct 26, 2006 10:58 am Post subject: |
|
|
ElAngelo wrote: | Martial,
Emacs *optionally* depends on XOrg
When you lin emacs it will have to ask which XOrg you want to install. After that it will ask you *if* it needs to install XOrg... So first you choose which XOrg and after that you say you don't want XOrg... I know that is a bit confusing and a bit (kuch) counterintuitive but it is how the stuff gets parsed right now in the package manager. |
Thank you for this reply. However actually when I went "lin emacs," with XOrg already installed, it did not appear to recognize XOrg but instead proceeded to add XOrg7 to the dependencies list. At that point, I broke out of the script.
That was really my initial question -- why emacs needs >XOrg7< and not just any X. |
|
Back to top |
|
 |
ElAngelo
Joined: 10 Aug 2005 Posts: 77
|
Posted: Thu Oct 26, 2006 2:27 pm Post subject: |
|
|
In lunar we have aliases...
So instead of ppl requiring to install XOrg or XOrg7 we add the alias %X to the depends file.
in /var/lib/lunar/moonbase/aliases you will find that the %X thing can mean XOrg, XOrg7 and XOrg-test (it used to include XFree86 and several others)
So the moment somebody installs a module that require the alias %X this variable is stored. The problem is if you interrupt the proces and suddenly decide that you made a wrong choice:
SO...
1. You want to install a module that require %X (let's take vim or emacs as an example) ==> You tell it to install XOrg7 as the %X variable. After that you tell it not to install XOrg7 as you will only use the text based vim/emacs...
2. In the next stadium you want to install XOrg... So instead of requiring XOrg7 (like you have choosen before) you tell lunar to install XOrg.... And then we get a problem...
In the dependency tree lunar will fill XOrg7 whenever a module requires %X. While actually XOrg is installed...
Pretty much the situation that you have now...
to check this you can do the following:
will tell you which %X alias you have choosen for %X
Most likely (but i am assuming here) it will tell you that you have choosen XOrg7 . While you installed XOrg... which kind of conflicts a bit
Solution : lunar fixdepends will clean up the mess you have ended in or it is supposed to clean it...
What you could do if it doesn't get fixed:
grep XOrg7 /var/state/lunar/depends
that will show you which modules still have XOrg7 listed as a dependency....
Now "just" relin those with the -r thing on.... |
|
Back to top |
|
 |
|