Ignore:
Timestamp:
06/07/2020 08:16:00 PM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
595ff03
Parents:
d53fefa
Message:

Initial commit of alternative cross LFS

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/bison.xml

    rd53fefa rfcc02767  
    66]>
    77
    8 <sect1 id="ch-system-bison" role="wrap">
     8<sect1 id="ch-tools-bison" role="wrap">
    99  <?dbhtml filename="bison.html"?>
    1010
     
    1717  <title>Bison-&bison-version;</title>
    1818
    19   <indexterm zone="ch-system-bison">
     19  <indexterm zone="ch-tools-bison">
    2020    <primary sortas="a-Bison">Bison</primary>
     21    <secondary>tools</secondary>
    2122  </indexterm>
    2223
     
    2425    <title/>
    2526
    26     <para>The Bison package contains a parser generator.</para>
     27    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     28    href="../chapter08/bison.xml"
     29    xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
    2730
    2831    <segmentedlist>
     
    3134
    3235      <seglistitem>
    33         <seg>&bison-ch6-sbu;</seg>
    34         <seg>&bison-ch6-du;</seg>
     36        <seg>&bison-ch5-sbu;</seg>
     37        <seg>&bison-ch5-du;</seg>
    3538      </seglistitem>
    3639    </segmentedlist>
     
    4043  <sect2 role="installation">
    4144    <title>Installation of Bison</title>
    42 <!--
    43     <para>First, fix a build problem with the current version:</para>
    4445
    45 <screen><userinput remap="pre">sed -i '9327 s/mv/cp/' Makefile.in</userinput></screen>
    46 -->
    4746    <para>Prepare Bison for compilation:</para>
    4847
    49 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
     48<screen><userinput remap="configure">./configure --prefix=/usr                     \
     49            --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
    5050
    51 <!--  I could not find a race condidtion in the current version.
    52     <para>Compile the package, but work around a race condition in the
    53     current version:</para>
     51    <variablelist>
     52      <title>The meaning of the new configure option:</title>
    5453
    55 <screen><userinput remap="make">make -j1</userinput></screen>-->
     54      <varlistentry>
     55        <term><parameter>--docdir=/usr/share/doc/bison-&bison-version;</parameter></term>
     56        <listitem>
     57          <para>This tells the build system to install bison documentation
     58          into a versioned directory.</para>
     59        </listitem>
     60      </varlistentry>
     61
     62    </variablelist>
    5663
    5764    <para>Compile the package:</para>
    5865
    5966<screen><userinput remap="make">make</userinput></screen>
    60 
    61     <para>To test the results (about 5.5 SBU), issue:</para>
    62 
    63 <screen><userinput remap="test">make check</userinput></screen>
    64 
    65     <para>Fourteen tests fail in the "Diagnostics" section, probably because of
    66     missing locales.</para>
    67 
    68 <!--
    69     <para>There is a circular dependency between bison and flex with regard to
    70     the checks.  If desired, after installing flex in the next section, the
    71     bison package can be rebuilt and the bison checks can be run with
    72     <command>make check</command>.</para>
    73 -->
    7467
    7568    <para>Install the package:</para>
     
    7972  </sect2>
    8073
    81   <sect2 id="contents-bison" role="content">
    82     <title>Contents of Bison</title>
     74  <sect2 role="content">
     75    <title/>
    8376
    84     <segmentedlist>
    85       <segtitle>Installed programs</segtitle>
    86       <segtitle>Installed library</segtitle>
    87       <segtitle>Installed directory</segtitle>
    88 
    89       <seglistitem>
    90         <seg>bison and yacc</seg>
    91         <seg>liby.a</seg>
    92         <seg>/usr/share/bison</seg>
    93       </seglistitem>
    94     </segmentedlist>
    95 
    96     <variablelist>
    97       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
    98       <?dbfo list-presentation="list"?>
    99       <?dbhtml list-presentation="table"?>
    100 
    101       <varlistentry id="bison">
    102         <term><command>bison</command></term>
    103         <listitem>
    104           <para>Generates, from a series of rules, a program for analyzing the
    105           structure of text files; Bison is a replacement for Yacc (Yet Another
    106           Compiler Compiler)</para>
    107           <indexterm zone="ch-system-bison bison">
    108             <primary sortas="b-bison">bison</primary>
    109           </indexterm>
    110         </listitem>
    111       </varlistentry>
    112 
    113       <varlistentry id="yacc">
    114         <term><command>yacc</command></term>
    115         <listitem>
    116           <para>A wrapper for <command>bison</command>, meant for programs that
    117           still call <command>yacc</command> instead of <command>bison</command>;
    118           it calls <command>bison</command> with the <parameter>-y</parameter>
    119           option</para>
    120           <indexterm zone="ch-system-bison yacc">
    121             <primary sortas="b-yacc">yacc</primary>
    122           </indexterm>
    123         </listitem>
    124       </varlistentry>
    125 
    126       <varlistentry id="liby">
    127         <term><filename class="libraryfile">liby</filename></term>
    128         <listitem>
    129           <para>The Yacc library containing implementations of Yacc-compatible
    130           <function>yyerror</function> and <function>main</function> functions;
    131           this library is normally not very useful, but POSIX requires it</para>
    132           <indexterm zone="ch-system-bison liby">
    133             <primary sortas="c-liby">liby</primary>
    134           </indexterm>
    135         </listitem>
    136       </varlistentry>
    137 
    138     </variablelist>
     77    <para>Details on this package are located in
     78    <xref linkend="contents-bison" role="."/></para>
    13979
    14080  </sect2>
Note: See TracChangeset for help on using the changeset viewer.