[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 02:14:56 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 02:14 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. 

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                          
======================================================================



More information about the Lunar-bugs mailing list