Weird bug in nALFS 1.1.7

Neven Has haski at sezampro.yu
Fri Aug 15 02:00:19 PDT 2003


On Thu, Aug 14, 2003 at 03:31:40PM -0700, Kevin P. Fleming wrote:
> Each profile in the base-lfs/stage1 directory has the following 
> stageinfo (slightly modified):
> 
> <stageinfo>
>   <environment>
>      <variable name="LC_ALL">POSIX</variable>
>      <variable name="PATH">...</variable>
>   </environment>
>   <user>&lfs-user;</user>
> </stageinfo>
> 
> As it stands, this works fine. However, I'd like to move this common 
> block of stuff into a separate file, and just include it into each 
> profile that needs it. So, I did that, and here is the new include file:
> 
> <!DOCTYPE alfs SYSTEM "nalfs.dtd" [
> <!ENTITY % entities SYSTEM "../../entities.ent">
> %entities;
> ]>
> 
> <alfs version="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
> 
> <environment>
> 	<variable name="LC_ALL">POSIX</variable>
> 	<variable name="PATH">...</variable>
> </environment>
> <user>&lfs-user;</user>
> 
> </alfs>
> 
> I then modified a few of the profiles to look like this:
> 
> <stageinfo>
>   <xi:include href="stage1-common-stageinfo.xml"/>
> </stageinfo>

Make <alfs> element visible from the program ('o' -> 'a') and check
the structure then.  <environment> and <user> are parts of <stageinfo>
and they have to be just under it.

However, this should work:

===[ main.xml ]=======================================================

<stage>
  <xi:include href="stage1-common-stageinfo.xml"/>
</stage>

===[ stage1-common-stageinfo.xml ]====================================

<!DOCTYPE alfs SYSTEM "nalfs.dtd" [
<!ENTITY % entities SYSTEM "../../entities.ent">
%entities;
]>

<stageinfo>

<environment>
  <variable name="LC_ALL">POSIX</variable>
  <variable name="PATH">...</variable>
</environment>
<user>&lfs-user;</user>

</stageinfo>

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

Although for including only the profile parts like this, I would
personally use parameter entities instead.


Neven




More information about the alfs-discuss mailing list