| Newsgroups |
gmane.linux.lfs.book |
| Message-ID |
<[email protected]> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch prepare-ml-12.5
in repository lfs.
commit e74ec0a6690b0522804394e6ddea4230ef0248f9
Author: Thomas Trepl <[email protected]>
AuthorDate: Mon Aug 18 15:47:23 2025 +0200
Fix misplaced role
---
chapter08/pcre2.xml | 296 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 296 insertions(+)
diff --git a/chapter08/pcre2.xml b/chapter08/pcre2.xml
new file mode 100644
index 000000000..60c7532ef
--- /dev/null
+++ b/chapter08/pcre2.xml
@@ -0,0 +1,296 @@
+<?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-pcre2" role="wrap">
+ <?dbhtml filename="pcre2.html"?>
+
+ <sect1info condition="script">
+ <productname>pcre2</productname>
+ <productnumber>&pcre2-version;</productnumber>
+ <address>&pcre2-url;</address>
+ </sect1info>
+
+ <title>PCRE2-&pcre2-version;</title>
+
+ <indexterm zone="ch-system-pcre2">
+ <primary sortas="a-PCRE2">PCRE2</primary>
+ </indexterm>
+
+ <sect2 role="package">
+ <title/>
+
+ <para>
+ The <application>PCRE2</application> package contains a new generation of
+ the <application>Perl Compatible Regular Expression</application>
+ libraries. These are useful for implementing regular expression pattern
+ matching using the same syntax and semantics as <application>Perl</application>.
+ </para>
+
+ <segmentedlist>
+ <segtitle>&buildtime;</segtitle>
+ <segtitle>&diskspace;</segtitle>
+
+ <seglistitem>
+ <seg>&pcre2-fin-sbu;</seg>
+ <seg>&pcre2-fin-du;</seg>
+ </seglistitem>
+ </segmentedlist>
+
+ </sect2>
+
+ <sect2 role="installation">
+ <title>Installation of PCRE2</title>
+
+ <para>
+ Install <application>PCRE2</application> by running the following
+ commands:
+ </para>
+
+<screen><userinput remap="configure">./configure --prefix=/usr \
+ --docdir=/usr/share/doc/pcre2-&pcre2-version; \
+ --enable-unicode \
+ --enable-jit \
+ --enable-pcre2-16 \
+ --enable-pcre2-32 \
+ --enable-pcre2grep-libz \
+ --enable-pcre2grep-libbz2 \
+ --enable-pcre2test-libreadline \
+ --disable-static</userinput></screen>
+
+ <variablelist>
+ <title>The meaning of the configure parameters:</title>
+
+ <varlistentry>
+ <term><parameter>--enable-unicode</parameter></term>
+ <listitem>
+ <para>This switch enables Unicode
+ support and includes the functions for handling UTF-8/16/32 character
+ strings in the library.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>--enable-pcre2-16</parameter></term>
+ <listitem>
+ <para>This switch enables 16 bit
+ character support.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>--enable-pcre2-32</parameter></term>
+ <listitem>
+ <para>This switch enables 32 bit
+ character support.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>--enable-pcre2grep-libz</parameter></term>
+ <listitem>
+ <para>This switch adds support
+ for reading .gz compressed files to <application>pcre2grep</application>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>--enable-pcre2grep-libbz2</parameter></term>
+ <listitem>
+ <para>This switch adds
+ support for reading .bz2 compressed files to
+ <application>pcre2grep</application>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>--enable-pcre2test-libreadline</parameter></term>
+ <listitem>
+ <para>This switch adds
+ line editing and history features to the
+ <application>pcre2test</application> program.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>--enable-jit</parameter></term>
+ <listitem>
+ <para>this option enables Just-in-time
+ compiling, which can greatly speed up pattern matching.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+
+ <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+ <para>
+ To test the results, issue:
+ </para>
+
+<screen><userinput remap="test">make check</userinput></screen>
+
+ <para>
+ Now, as the <systemitem class="username">root</systemitem> user:
+ </para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+ </sect2>
+
+ <!-- - - - - - - - - - -->
+ <!-- Multilib - 32bit -->
+ <!-- - - - - - - - - - -->
+ <sect2 arch="ml_32,ml_all" role="installation">
+ <title>Installation of PCRE2 - 32bit</title>
+
+ <para>Clean previous build:</para>
+
+<screen><userinput remap="pre">make distclean</userinput></screen>
+
+ <para>Prepare PCRE2 for compilation:</para>
+
+<screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \
+./configure --libdir=/usr/lib32 \
+ --host=i686-pc-linux-gnu \
+ --prefix=/usr \
+ --docdir=/usr/share/doc/pcre2-&pcre2-version; \
+ --enable-unicode \
+ --enable-jit \
+ --enable-pcre2-16 \
+ --enable-pcre2-32 \
+ --enable-pcre2grep-libz \
+ --enable-pcre2grep-libbz2 \
+ --enable-pcre2test-libreadline \
+ --disable-static</userinput></screen>
+
+ <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+ <para>Install the package:</para>
+
+<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
+cp -Rv DESTDIR/usr/lib32/* /usr/lib32
+rm -rf DESTDIR</userinput></screen>
+
+ </sect2><!-- m32 -->
+
+ <!-- - - - - - - - - - -->
+ <!-- Multilib - x32bit -->
+ <!-- - - - - - - - - - -->
+ <sect2 arch="ml_x32,ml_all" role="installation">
+ <title>Installation of PCRE2 - x32bit</title>
+
+ <para>Clean previous build:</para>
+
+<screen><userinput remap="pre">make distclean</userinput></screen>
+
+ <para>Prepare PCRE2 for compilation:</para>
+
+<screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \
+./configure --libdir=/usr/libx32 \
+ --host=x86_64-pc-linux-gnux32 \
+ --prefix=/usr \
+ --docdir=/usr/share/doc/pcre2-&pcre2-version; \
+ --enable-unicode \
+ --enable-jit \
+ --enable-pcre2-16 \
+ --enable-pcre2-32 \
+ --enable-pcre2grep-libz \
+ --enable-pcre2grep-libbz2 \
+ --enable-pcre2test-libreadline \
+ --disable-static</userinput></screen>
+
+ <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+ <para>Install the package:</para>
+
+<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
+cp -Rv DESTDIR/usr/libx32/* /usr/libx32
+rm -rf DESTDIR</userinput></screen>
+
+ </sect2><!-- mx32 -->
+
+ <sect2 id="contents-pcre2" role="content">
+ <title>Contents of PCRE2</title>
+
+ <segmentedlist>
+ <segtitle>Installed Programs</segtitle>
+ <segtitle>Installed Libraries</segtitle>
+ <segtitle>Installed Directory</segtitle>
+
+ <seglistitem>
+ <seg>
+ pcre2-config,
+ pcre2grep,
+ and pcre2test.
+ </seg>
+ <seg>
+ libpcre2-8.so,
+ libpcre2-16.so,
+ libpcre2-32.so,
+ and libpcre2-posix.so
+ </seg>
+ <seg>
+ /usr/share/doc/pcre2-&pcre2-version;
+ </seg>
+ </seglistitem>
+ </segmentedlist>
+
+ <variablelist>
+ <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+ <?dbfo list-presentation="list"?>
+ <?dbhtml list-presentation="table"?>
+
+ <varlistentry id="pcre2grep">
+ <term><command>pcre2grep</command></term>
+ <listitem>
+ <para>
+ is a version of <application>grep</application>
+ that understands
+ <application>Perl compatible regular expressions.</application>
+ </para>
+ <indexterm zone="ch-system-pcre2 pcre2grep">
+ <primary sortas="c-pcre2grep">pcre2grep</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="pcre2test">
+ <term><command>pcre2test</command></term>
+ <listitem>
+ <para>
+ can test a
+ <application>Perl compatible regular expression.</application>
+ </para>
+ <indexterm zone="ch-system-pcre2 pcre2test">
+ <primary sortas="c-pcre2test">pcre2</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="pcre2-config">
+ <term><command>pcre2-config</command></term>
+ <listitem>
+ <para>
+ outputs compilation information to programs linking against the
+ <application>PCRE2</application> libraries
+ </para>
+ <indexterm zone="ch-system-pcre2 pcre2-config">
+ <primary sortas="c-pcre2-config">pcre2-config</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+
+ </sect2>
+
+</sect1>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page