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$

Submitted by:  None
Submitted on:  Wed 04 Feb 2004 01:32:21 AM UTC  
 
Category: ResourcesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Behavior
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Operating System: AllPerl 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>
Project 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

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 07 May 2004 11:02:11 PM UTCehoodOpen/ClosedOpen=>Closed
  Fixed ReleaseCVS=>2.6.9
Mon 15 Mar 2004 08:14:31 PM UTCehoodStatusNone=>Fixed
  Fixed Release=>CVS
Wed 04 Feb 2004 01:32:21 AM UTCNoneAttached File-=>Added include_outdir.patch, #1026

Back to the top


Powered by Savane 3.1-cleanup1