[Lunar-bugs] [Lunar Linux 0000314]: lunar doesn't correctly calculate zlocal dependencies
Lunar bug reports list
lunar-bugs at lunar-linux.org
Mon Nov 26 08:27:50 CET 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.lunar-linux.org/view.php?id=314
======================================================================
Reported By: Sirocco
Assigned To: sofar
======================================================================
Project: Lunar Linux
Issue ID: 314
Category: lunar
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Moonbase Version: 20071125.00
Core Tools: Lunar
Core Tools Version: 20070623
======================================================================
Date Submitted: 11-25-2007 21:39 CET
Last Modified: 11-26-2007 08:27 CET
======================================================================
Summary: lunar doesn't correctly calculate zlocal
dependencies
Description:
Hi,
The /var/state/lunar/depends.cache file contains the dependencies of all
modules : official and zlocal modules. If a module is in zlocal and
official moonbase, the dependencies are calculated on zlocal and official
module.
zlocal dependencies don't override official depends, zlocal dependencies
are added to official depends.
And this is a problem when you create a zlocal module that contains
DEPENDS which conflicts with official DEPENDS.
How to reproduce :
lvu edit <module>
remove a dependency of /var/lib/lunar/moonbase/zlocal/<module>/DEPENDS
lin -r <module>
=> lunar always compile the dependency you removed.
I rebuilt the depends.cache file with lsh but official dependency is
always added to zlocal dependency.
I tried to modify the function create_depends_cache of depends.lunar but
I'm not good at programming and was unable to find a soluce.
The only way I found to solve this problem is to manually modify the
depends.cache after it has been generated.
======================================================================
----------------------------------------------------------------------
hdw - 11-26-07 02:14
----------------------------------------------------------------------
This problem has long been the biggest annoyance for me.
I asked about this in mailing list months ago, but didn't get much
response,
so I have had no idea whether this is a problem developers aren't aware,
or is a intentional behavior.
>The only way I found to solve this problem is to manually modify the
>depends.cache after it has been generated.
Making "/var/state/lunar/depends.cache" a empty file is a easier way to
(temporary) solve the problem. (mentioned by florin in mailing list)
It's certainly easier, but will work only until your next lunar update
and
lvu tree and some other will be useless ^^;
Anyway, I wanna see this is solved.
----------------------------------------------------------------------
El_Angelo - 11-26-07 08:27
----------------------------------------------------------------------
several ways to fix this:
1. lin moonbase
will rebuild that .cache file... So all you really
need to do after deleting a depends from a DEPENDS file is lin
moonbase... this will solve your problems...
there are other ways but they are not advised for the mortal user:
2. hand edit the /var/state/lunar/depends* files and delete the
entries of the module you are editing. after that lin -cr MODULE
3. "lsh create_depends_cache" and then lin -cr MODULE
AGAIN these 2 last ways are really not recommended and lin moonbase
works just as well ;)
Issue History
Date Modified Username Field Change
======================================================================
11-25-07 21:39 Sirocco New Issue
11-25-07 21:39 Sirocco Status new => assigned
11-25-07 21:39 Sirocco Assigned To => sofar
11-25-07 21:39 Sirocco Moonbase Version => 20071125.00
11-25-07 21:39 Sirocco Core Tools => Lunar
11-25-07 21:39 Sirocco Core Tools Version => 20070623
11-26-07 02:14 hdw Note Added: 0000708
11-26-07 08:27 El_Angelo Note Added: 0000709
======================================================================
More information about the Lunar-bugs
mailing list