Changeset 81fd230 for chapter06/flex.xml


Ignore:
Timestamp:
02/19/2005 10:16:42 PM (19 years ago)
Author:
Gerard Beekmans <gerard@…>
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, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 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:
3d31fc4
Parents:
2f9131f
Message:

Trunk is now identical to Testing

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/flex.xml

    r2f9131f r81fd230  
    44  %general-entities;
    55]>
    6 <sect1 id="ch-system-flex" xreflabel="Flex" role="wrap">
     6<sect1 id="ch-system-flex" role="wrap">
    77<title>Flex-&flex-version;</title>
    88<?dbhtml filename="flex.html"?>
     
    1111
    1212<sect2 role="package"><title/>
     13<para>The Flex package contains a utility for generating programs that
     14recognize patterns in text.</para>
    1315
    1416<segmentedlist>
     
    1820</segmentedlist>
    1921
     22<segmentedlist>
     23<segtitle>Flex installation depends on</segtitle>
     24<seglistitem><seg>Bash, Binutils, Bison, Coreutils, Diffutils,
     25GCC, Gettext, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
     26</segmentedlist>
    2027</sect2>
    2128
     
    2330<title>Installation of Flex</title>
    2431
    25 <para>Apply a patch:</para>
     32<para>Flex contains several known bugs. Fix these with the following patch:</para>
    2633
    2734<screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen>
    2835
    29 <para>Touch the man-page:</para>
     36<para>The GNU autotools detects that the Flex source code has been
     37modified by the previous patch and tries to update the manual page
     38accordingly. This does not work correctly on many systems, and the
     39default page is fine, so make sure it does not get regenerated:</para>
    3040
    3141<screen><userinput>touch doc/flex.1</userinput></screen>
    3242
    33 <para>Now prepare Flex for compilation:</para>
     43<para>Prepare Flex for compilation:</para>
    3444
    3545<screen><userinput>./configure --prefix=/usr</userinput></screen>
     
    4252<userinput>make check</userinput>.</para>
    4353
    44 <para>Now install the package:</para>
     54<para>Install the package:</para>
    4555
    4656<screen><userinput>make install</userinput></screen>
    4757
    48 <para>Create a symlink:</para>
     58<para>There are some packages that expect to find the
     59<filename class="libraryfile">lex</filename> library in <filename
     60class="directory">/usr/lib</filename>. Create a symlink to account for
     61this:</para>
    4962
    5063<screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen>
    5164
    52 <para>Create a lex script:</para>
     65<para>A few programs do not know about <command>flex</command> yet and
     66try to run its predecessor, <command>lex</command>. To support those
     67programs, create a wrapper script named <filename>lex</filename> that
     68calls <filename>flex</filename> in <command>lex</command> emulation mode:</para>
    5369
    5470<screen><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
     
    6783<sect2 id="contents-flex" role="content"><title>Contents of Flex</title>
    6884
    69 <para>See testing</para>
     85<segmentedlist>
     86<segtitle>Installed programs</segtitle>
     87<segtitle>Installed library</segtitle>
     88<seglistitem><seg>flex, flex++ (link to flex), and lex</seg>
     89<seg>libfl.a</seg></seglistitem>
     90</segmentedlist>
     91
     92<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
     93<?dbfo list-presentation="list"?>
     94
     95<varlistentry id="flex">
     96<term><command>flex</command></term>
     97<listitem>
     98<para>A tool for generating programs that recognize patterns in text;
     99it allows for the versatility to specify the rules for
     100pattern-finding, eradicating the need to develop a specialized
     101program</para>
     102<indexterm zone="ch-system-flex flex"><primary sortas="b-flex">flex</primary></indexterm>
     103</listitem>
     104</varlistentry>
     105
     106<varlistentry id="flex-">
     107<term><command>flex++</command></term>
     108<listitem>
     109<para>Invokes a version of <command>flex</command> that is used exclusively for C++ scanners</para>
     110<indexterm zone="ch-system-flex flex-"><primary sortas="b-flex++">flex++</primary></indexterm>
     111</listitem>
     112</varlistentry>
     113
     114<varlistentry id="lex">
     115<term><command>lex</command></term>
     116<listitem>
     117<para>Script that runs <command>flex</command> in <command>lex</command>
     118emulation mode</para>
     119<indexterm zone="ch-system-flex lex"><primary sortas="b-lex">lex</primary></indexterm>
     120</listitem>
     121</varlistentry>
     122
     123<varlistentry id="libfl.a">
     124<term><filename class="libraryfile">libfl.a</filename></term>
     125<listitem>
     126<para>The <filename class="libraryfile">flex</filename> library</para>
     127<indexterm zone="ch-system-flex libfl.a"><primary sortas="c-libfl.a">libfl.a</primary></indexterm>
     128</listitem>
     129</varlistentry>
     130</variablelist>
    70131
    71132</sect2>
    72133
    73134</sect1>
     135
Note: See TracChangeset for help on using the changeset viewer.