bugMHonArc - Bugs: bug #7571, <include> element doesn't...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7571: <include> element doesn't look for resource files in $OUTDIR$

Submitter:  None
Submitted:  Wed 04 Feb 2004 01:32:21 AM UTC
   
 
Category:  Resources Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Behavior
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  All Perl Version:  5.8.0
Component Version:  2.6.8 (Perl 5.008 linux) Fixed Release:  2.6.9

Mon 15 Mar 2004 08:14:31 PM UTC, comment #1: 


There is a bug, but not what you think the bug is.
The looking into OUTDIR is only applicable for OTHERINDEXES
and not INCLUDE.

However, an attempt is to look in the same location the
resource file that is doing the including, which your
patch attempts to fix. But your patch will fail for cases
when $pathhead is empty.

A proper fix has been committed to CVS.

Earl Hood <ehood>
Group administrator
Wed 04 Feb 2004 01:32:21 AM UTC, original submission:  

IIUC, the intended behavior for <include> is to look for the resource files in $OUTDIR$ if no path is specified.  This doesn't work correctly due to a missing directory separator in mhrcfile.pl (example below).  The attached patch fixes the issue.  Thanks.

Example -- the following won't include incfile.rc:

cd /
mkdir -p /tmp/mhonarctest
cat > /tmp/mhonarctest/rcfile.rc << EOF
<include>
incfile.rc
</include>
<title>
$BLAH$
</title>
EOF
cat > /tmp/mhonarctest/incfile.rc << EOF
<definevar>
BLAH
somevalue
</definevar>
EOF
mhonarc -add -rcfile rcfile.rc -outdir /tmp/mhonarctest mbox

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1045:  include_outdir.patch added by None (614B - application/octet-stream - Patch to add a directory separator for include files)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-07 ehood Open/ClosedOpen Closed
    Fixed ReleaseCVS 2.6.9
2004-03-15 ehood StatusNone Fixed
    Fixed Release CVS
2004-02-04 None Attached File- Added include_outdir.patch, #1026

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code