Files
LFS_Book/chapter06/bison.xml
Anton Maisak 572fb2e26d Revision: 11612
Author: bdubbs
Date: 3 июня 2019 г. 23:17:22
Message:
Update to perl-5.30.0.
Update to linux-5.1.6.
Update to openssl-1.1.1c.
Update to eudev-3.2.8.
Update to bison-3.4.1.
Update to e2fsprogs-1.45.2.

----
Modified : /trunk/BOOK/chapter01/changelog.xml
Modified : /trunk/BOOK/chapter01/whatsnew.xml
Modified : /trunk/BOOK/chapter06/bison.xml
Modified : /trunk/BOOK/general.ent
Modified : /trunk/BOOK/packages.ent
2019-08-10 11:49:38 +03:00

131 lines
4.9 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-system-bison" role="wrap">
<?dbhtml filename="bison.html"?>
<sect1info condition="script">
<productname>bison</productname>
<productnumber>&bison-version;</productnumber>
<address>&bison-url;</address>
</sect1info>
<title>Bison-&bison-version;</title>
<indexterm zone="ch-system-bison">
<primary sortas="a-Bison">Bison</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>Пакет содержит GNU версию yacc (Ещё один компилятор компиляторов) необходимый для сборки некоторых пакетов LFS системы.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&bison-ch6-sbu;</seg>
<seg>&bison-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Установка пакета Bison</title>
<para>First, fix a build problem with the current version:</para>
<screen><userinput remap="pre">sed -i '6855 s/mv/cp/' Makefile.in</userinput></screen>
<para>Подготовьте пакет Bison к компиляции:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
<para>Compile the package, but work around a race condition in the
current version:</para>
<screen><userinput remap="make">make -j1</userinput></screen>
<!--
<para>Для выполнения тестов (about 2.2 SBU), выполните следующую команду:</para>
<screen><userinput remap="test">make check</userinput></screen>
-->
<para>Есть циклическая зависимость между bison и flex при проверке. При желании, после установки пакета flex в следующем разделе,
пакет bison можно пересобрать и наборы тестов можно будет запустить снова командой <command>make check</command>.</para>
<para>Установите пакет:</para>
<screen><userinput remap="install">make install</userinput></screen>
</sect2>
<sect2 id="contents-bison" role="content">
<title>Содержимое пакета Bison</title>
<segmentedlist>
<segtitle>Установленные программы</segtitle>
<segtitle>Установленная библиотека</segtitle>
<segtitle>Каталог установки</segtitle>
<seglistitem>
<seg>bison and yacc</seg>
<seg>liby.a</seg>
<seg>/usr/share/bison</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Краткое описание</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="bison">
<term><command>bison</command></term>
<listitem>
<para>Генерирует из набора правил программу для анализа
структуры текстовых файлов. Bison является заменой Yacc (еще один
компилятор компиляторов )</para>
<indexterm zone="ch-system-bison bison">
<primary sortas="b-bison">bison</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="yacc">
<term><command>yacc</command></term>
<listitem>
<para>Обертка для<command>bison</command>,предназначенная для программ, которые
все еще вызывают <command>yacc</command> вместо <command>bison</command>;
она вызывает <command>bison</command>с аргументом <parameter>-y</parameter>
</para>
<indexterm zone="ch-system-bison yacc">
<primary sortas="b-yacc">yacc</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="liby">
<term><filename class="libraryfile">liby</filename></term>
<listitem>
<para>Библиотека Yacc содержит реализацию Yacc-совместимых функций <function>yyerror</function> и <function>main</function>; Эта библиотека обычно не очень полезна, но POSIX требует её</para>
<indexterm zone="ch-system-bison liby">
<primary sortas="c-liby">liby</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>