[Lunar-bugs] [Lunar Linux 0000277]: mquery() related bug

Lunar bug reports list lunar-bugs at lunar-linux.org
Tue Sep 4 11:25:36 CEST 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.lunar-linux.org/view.php?id=277 
====================================================================== 
Reported By:                ratler
Assigned To:                sofar
====================================================================== 
Project:                    Lunar Linux
Issue ID:                   277
Category:                   theedge
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     assigned
Moonbase Version:           20070827.07 
Core Tools:                 Theedge 
Core Tools Version:         20070623 
====================================================================== 
Date Submitted:             09-04-2007 11:25 CEST
Last Modified:              09-04-2007 11:25 CEST
====================================================================== 
Summary:                    mquery() related bug
Description: 
The problem reveil it self in two ways. One is that you sometime notice in
the output during a lin that grep couldn't find /tmp/xxxxx file but then
continues as nothing happend.

The second problem is a lot more alarming though. If you do lin -cr on a
module that use MQUERY those OPTS will not be passed on properly to $OPTS
during that lin. It will however write the correct options to
/etc/lunar/local/depends/$MODULE. So the next time you do lin -c (without
-r) $MODULE it will actually pick up your MQUERY settings properly. 

Apache2 is a great module to test this with, simply run lin -cr apache2
and make some random choices. Then abort the lin after the ./configure
step and examine config.log and you will notice that the options are
missing. Then run lin -c apache2 again and do the above steps again and
the options are there.

I have located where the problem occur in /sbin/lin in this section of the
code:

  # different approaches for multiple modules (start up downloads first)
  # and single modules (plain install)
  if [ -z "$SINGLE_MODULE" ] ; then

    if [ -z "$TEMP_DOWNLOAD_PIDS" ] ; then
      export TEMP_DOWNLOAD_PIDS=$(temp_create "download-pids")
      export TEMP_PREPAREDDEPS=$(temp_create "prepared-depends")
      export TEMP_CONFIGOPTS=$(temp_create "configopts")
    fi

----- snip -----
    
If you move the line  "export TEMP_CONFIGOPTS=$(temp_create "configopts")"
outside that if-statement everything work just fine. But since I'm not
entirely sure where the correct place for that line would be I will leave
it for you to fix (sofar) ;)

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-04-07 11:25  ratler         New Issue                                    
09-04-07 11:25  ratler         Status                   new => assigned     
09-04-07 11:25  ratler         Assigned To               => sofar           
09-04-07 11:25  ratler         Moonbase Version          => 20070827.07     
09-04-07 11:25  ratler         Core Tools                => Theedge         
09-04-07 11:25  ratler         Core Tools Version        => 20070623        
======================================================================



More information about the Lunar-bugs mailing list