[Lunar-bugs] [Lunar Linux 0000474]: can't use in_depends in POST_INSTALL

Lunar bug reports list lunar-bugs at lunar-linux.org
Mon Apr 25 22:08:11 CEST 2011


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.lunar-linux.org/view.php?id=474 
====================================================================== 
Reported By:                wookietreiber
Assigned To:                sofar
====================================================================== 
Project:                    Lunar Linux
Issue ID:                   474
Category:                   lunar-tools
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
lvu installed moonbase:     20110425.17 
Core Tools:                 Theedge 
lvu installed [lunar|theedge]: 20110419 
====================================================================== 
Date Submitted:             2011-04-25 21:30 CEST
Last Modified:              2011-04-25 22:08 CEST
====================================================================== 
Summary:                    can't use in_depends in POST_INSTALL
Description: 
We can't use in_depends in POST_INSTALL because of some issues with
/var/state/lunar/depends* (engelsman will explain later).

The example is concerning vim and perl:

perl/POST_INSTALL (old):

if module_installed vim; then
	lin -c vim
fi


which should better be (new, which does not work):

if module_installed vim ; then
	if in_depends vim perl ; then
		verbose_msg "Rebuilding vim ..."
		lin -c vim
	fi
fi

====================================================================== 

---------------------------------------------------------------------- 
 (0001088) engelsman (developer) - 2011-04-25 22:08
 http://bugs.lunar-linux.org/view.php?id=474#c1088 
---------------------------------------------------------------------- 
As far as I understand it, the 'lin perl' triggers an 'lrm perl' to remove
the old version just before the new one is finally installed. As a result,
all lines in the /var/state/lunar/depends file that show perl's
dependencies
are removed AND ALSO the lines where other modules depend on perl. Then
the
new perl's dependencies are appended to the end of the file, but the other
modules' dependencies are lost until the next lunar fixdepend is run.

So, to summarize (and I hope it doesn't get reformatted):

root#  cd /var/state/lunar
root#  lsh create_module_index ; lsh create_depends_cache ; lunar
fixdepend
root#
root#  grep vim:perl depends depends.cache
depends:vim:perl:on:optional:--enable-perlinterp:--disable-perlinterp
depends.cache:vim:perl:optional:--enable-perlinterp::to enable Perl
interpreter support
depends.cache:vim:perl:optional:--enable-perlinterp:--disable-perlinterp:for
Perl interpreter support

root#  cp depends depends.original

root#  lin -rc perl
...

root#  grep vim:perl depends depends.cache
depends.cache:vim:perl:optional:--enable-perlinterp::to enable Perl
interpreter support
depends.cache:vim:perl:optional:--enable-perlinterp:--disable-perlinterp:for
Perl interpreter support

root# diff depends.original depends
383d382
< glibc:perl:on:optional::
737d735
< libproxy:perl:on:optional:-DWITH_PERL=ON
-DPERL_VENDORINSTALL=ON:-DWITH_PERL=OFF
1082,1083d1079
< perl:db:on:optional::
< perl:gdbm:off:optional::
1267d1262
< vim:perl:on:optional:--enable-perlinterp:--disable-perlinterp
1499a1495,1496
> perl:db:on:optional::
> perl:gdbm:off:optional:: 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-25 21:30 wookietreiber  New Issue                                    
2011-04-25 21:30 wookietreiber  Status                   new => assigned     
2011-04-25 21:30 wookietreiber  Assigned To               => sofar           
2011-04-25 21:30 wookietreiber  lvu installed moonbase    => 20110425.17     
2011-04-25 21:30 wookietreiber  Core Tools                => Theedge         
2011-04-25 21:30 wookietreiber  lvu installed [lunar|theedge] => 20110419       

2011-04-25 21:31 wookietreiber  File Added: POST_INSTALL                     
2011-04-25 21:32 wookietreiber  File Added: POST_INSTALL.new                    
2011-04-25 22:08 engelsman      Note Added: 0001088                          
======================================================================



More information about the Lunar-bugs mailing list