[lfs] branch trunk updated: Add the pcre2 package.

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <175693733711.4269.16275855684901142259@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 04d7d7ed2 Add the pcre2 package.
04d7d7ed2 is described below

commit 04d7d7ed2891b2d78c3b95c10e295cb6608555c6
Author: Bruce Dubbs <[email protected]>
AuthorDate: Wed Sep 3 16:20:08 2025 -0500

    Add the pcre2 package.
---
 appendices/dependencies.xml |  58 +++++++++++---
 chapter01/changelog.xml     |   4 +
 chapter01/whatsnew.xml      |   1 +
 chapter03/packages.xml      |   9 +++
 chapter08/chapter08.xml     |   1 +
 chapter08/pcre.xml          | 185 ++++++++++++++++++++++++++++++++++++++++++++
 packages.ent                |   8 ++
 prologue/why.xml            |  12 ++-
 8 files changed, 266 insertions(+), 12 deletions(-)

diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml
index 038994878..0d69afa46 100644
--- a/appendices/dependencies.xml
+++ b/appendices/dependencies.xml
@@ -1139,7 +1139,7 @@
         <segtitle>&dependencies;</segtitle>
         <seglistitem>
           <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep,
-          Make, Patch, Sed, and Texinfo</seg>
+          Make, Patch, Pcre2, Sed, and Texinfo</seg>
         </seglistitem>
       </segmentedlist>
 
@@ -1168,9 +1168,7 @@
         <segtitle>&external;</segtitle>
         <seglistitem>
           <seg>
-            <ulink url="&blfs-book;general/pcre2.html">PCRE2</ulink>
-            and
-            <ulink url="&blfs-book;general/libsigsegv.html">libsigsegv</ulink>
+            None
           </seg>
         </seglistitem>
       </segmentedlist>
@@ -1584,7 +1582,7 @@
         <segtitle>&dependencies;</segtitle>
         <seglistitem>
           <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make,
-          Ncurses, and Sed</seg>
+          Ncurses, Pcre2, and Sed</seg>
         </seglistitem>
       </segmentedlist>
 
@@ -1613,8 +1611,7 @@
         <segtitle>&external;</segtitle>
         <seglistitem>
           <seg>
-            <ulink url="&blfs-book;general/pcre2.html">PCRE2</ulink> or
-            <ulink url="&blfs-book;general/pcre.html">PCRE</ulink>
+            None
           </seg>
         </seglistitem>
       </segmentedlist>
@@ -1759,7 +1756,7 @@
       <segmentedlist id="libpipeline-testdeps">
         <segtitle>&testsuites;</segtitle>
         <seglistitem>
-          <seg>Check and Pkgconf</seg>
+          <seg>Pkgconf</seg>
         </seglistitem>
       </segmentedlist>
 
@@ -2497,6 +2494,48 @@
         </seglistitem>
       </segmentedlist>
 
+<!-- Begin Pcre2 dependency info -->
+  <bridgehead renderas="sect2" id="pcre2-dep">Pcre2</bridgehead>
+
+      <segmentedlist id="pcre2-depends">
+        <segtitle>&dependencies;</segtitle>
+        <seglistitem>
+          <seg>Bash, Binutils, Bzip2, Coreutils, GCC, Glibc, GZip, Make, and
+          Readline</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist id="pcre2-rundeps">
+        <segtitle>&runtime;</segtitle>
+        <seglistitem>
+          <seg>Glibc</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist id="pcre2-testdeps">
+        <segtitle>&testsuites;</segtitle>
+        <seglistitem>
+          <seg>Grep</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist id="pcre2-before">
+        <segtitle>&before;</segtitle>
+        <seglistitem>
+          <seg>Grep and Less</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist id="pcre2-optdeps">
+        <segtitle>&external;</segtitle>
+        <seglistitem>
+          <seg>
+            <ulink url="&blfs-book;general/valgrind.html">Valgrind</ulink> and 
+            <ulink url="https://thrysoee.dk/editline/">libedit</ulink>
+          </seg>
+        </seglistitem>
+      </segmentedlist>
+
 <!-- Begin Perl dependency info -->
   <bridgehead renderas="sect2" id="perl-dep">Perl</bridgehead>
 
@@ -2916,7 +2955,7 @@
         <seglistitem>
          <seg>Acl, Bash, Binutils, Coreutils, Diffutils, Gawk,
          GCC, Glibc, Gperf, Grep, Jinja2, Libcap, Libxcrypt, Lz4, Meson,
-         OpenSSL, Pkgconf, Sed, Util-linux, and Zstd</seg>
+         OpenSSL, Pcre2, Pkgconf, Sed, Util-linux, and Zstd</seg>
         </seglistitem>
       </segmentedlist>
 
@@ -2983,7 +3022,6 @@
               url="&blfs-book;general/python-modules.html#lxml">lxml</ulink>,
             <ulink url="&blfs-book;postlfs/make-ca.html">make-ca</ulink>,
             <ulink url="&blfs-book;postlfs/p11-kit.html">p11-kit</ulink>,
-            <ulink url="&blfs-book;general/pcre2.html">PCRE2</ulink>,
             <ulink url="&pypi-home;pefile">pefile</ulink>,
             <ulink url="&blfs-book;postlfs/polkit.html">Polkit</ulink>,
             <ulink url='&pypi-home;/pyelftools'>pyelftools</ulink>,
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 081205187..5cd66724b 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -43,6 +43,10 @@
     <listitem>
       <para>2025-09-03</para>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Add the pcre2 package. Fixes
+          <ulink url='&lfs-ticket-root;5782'>#5782</ulink>.</para>
+        </listitem>
         <listitem>
           <para>[bdubbs] - Add a description on how to use a kernel base+patch
           in Chapter 3.  Fixes
diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml
index a91e9cc92..17fb72490 100644
--- a/chapter01/whatsnew.xml
+++ b/chapter01/whatsnew.xml
@@ -292,6 +292,7 @@
   <itemizedlist>
     <title>Added:</title>
     <listitem><para></para></listitem>  <!-- satisfy build -->
+    <listitem><para>pcre2</para></listitem> 
   </itemizedlist>
 
   <itemizedlist>
diff --git a/chapter03/packages.xml b/chapter03/packages.xml
index 79d8972b2..68a1a6f05 100644
--- a/chapter03/packages.xml
+++ b/chapter03/packages.xml
@@ -635,6 +635,15 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Pcre2 (&pcre2-version;) - <token>&pcre2-size;</token>:</term>
+      <listitem>
+        <para>Home page: <ulink url="&pcre2-home;"/></para>
+        <para>Download: <ulink url="&pcre2-url;"/></para>
+        <para>MD5 sum: <literal>&pcre2-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <varlistentry>
       <term>Perl (&perl-version;) - <token>&perl-size;</token>:</term>
       <listitem>
diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml
index bd8571903..4e2d94a98 100644
--- a/chapter08/chapter08.xml
+++ b/chapter08/chapter08.xml
@@ -23,6 +23,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zstd.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcre.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bc.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
diff --git a/chapter08/pcre.xml b/chapter08/pcre.xml
new file mode 100644
index 000000000..d937d8f6c
--- /dev/null
+++ b/chapter08/pcre.xml
@@ -0,0 +1,185 @@
+<?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 pcre2 package contains a new generation of the Perl Compatible 
+    Regular Expression libraries.</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>Prepare pcre2 for compilation:</para>
+
+<screen><userinput remap="configure">./configure --prefix=/usr                       \
+            --docdir=/usr/share/doc/pcre2-10.45 \
+            --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 new configure options:</title>
+
+      <varlistentry>
+        <term><parameter>--enable-unicode</parameter></term>
+        <listitem>
+          <para>
+            This option 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-jit</parameter></term>
+        <listitem>
+          <para>
+            This option enables Just-in-time compiling, which can greatly
+            speed up pattern matching.  
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--enable-pcre2-16</parameter></term>
+        <listitem>
+          <para>
+            This option enables 16 bit character support. 
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--enable-pcre2-32</parameter></term>
+        <listitem>
+          <para>
+            This option enables 32 bit character support. 
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--enable-pcre2grep-libz</parameter></term>
+        <listitem>
+          <para>
+            This option adds support for reading .gz compressed files to pcre2grep.
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--enable-pcre2grep-libbz2</parameter></term>
+        <listitem>
+          <para>
+            This option adds support for reading .bz2 compressed files to pcre2grep.
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--enable-pcre2test-libreadline</parameter></term>
+        <listitem>
+          <para>
+            This option adds line editing and history features to the pcre2test program.
+          </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>Install the package:</para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+  </sect2>
+
+
+  <sect2 id="contents-pcre2" role="content">
+    <title>Contents of Pcre2</title>
+
+    <segmentedlist>
+      <segtitle>Installed programs</segtitle>
+      <segtitle>Installed library</segtitle>
+
+      <seglistitem>
+        <seg>pcre2grep and pcre2test</seg>
+        <seg>libpcre2-8.so, libpcre2-16.so, libpcre2-32.so, and libpcre2-posix.so</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 grep that understands Perl compatible regular 
+          expressions</para>
+          <indexterm zone="ch-system-pcre2 pcre2grep">
+            <primary sortas="b-pcre2grep">pcre2grep</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="pcre2test">
+        <term><command>pcre2test</command></term>
+        <listitem>
+          <para>can test a Perl compatible regular expression</para>
+          <indexterm zone="ch-system-pcre2 pcre2test">
+            <primary sortas="b-pcre2test">pcre2test</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>
diff --git a/packages.ent b/packages.ent
index f098116da..256ea0b15 100644
--- a/packages.ent
+++ b/packages.ent
@@ -565,6 +565,14 @@
 <!ENTITY patch-fin-du "13 MB">
 <!ENTITY patch-fin-sbu "0.2 SBU">
 
+<!ENTITY pcre2-version "10.45">
+<!ENTITY pcre2-size "2,024 KB">
+<!ENTITY pcre2-url "&github;/PCRE2Project/pcre2/releases/download/pcre2-&pcre2-version;/pcre2-&pcre2-version;.tar.bz2">
+<!ENTITY pcre2-md5 "f71abbe1b5adf25cd9af5d26ef223b66">
+<!ENTITY pcre2-home "&github;/PCRE2Project/pcre2/">
+<!ENTITY pcre2-fin-du "20 MB">
+<!ENTITY pcre2-fin-sbu "0.5 SBU">
+
 <!ENTITY perl-version-major "5">
 <!ENTITY perl-version-minor "42">
 <!ENTITY perl-version-patch "0">
diff --git a/prologue/why.xml b/prologue/why.xml
index 287a61635..45874dc51 100644
--- a/prologue/why.xml
+++ b/prologue/why.xml
@@ -91,13 +91,13 @@
         <para>This package contains programs for compressing and decompressing
         files.  It is required to decompress many LFS packages.</para>
       </listitem>
-
+<!--
       <listitem>
         <para>Check</para>
 
         <para>This package provides a test harness for other programs.</para>
       </listitem>
-
+-->
       <listitem>
         <para>Coreutils</para>
 
@@ -480,6 +480,14 @@
         the build procedure for several LFS packages.</para>
       </listitem>
 
+      <listitem>
+        <para>Pcre2</para>
+
+        <para>This package provides a set of functions that implement regular 
+        expression pattern matching using the same syntax and semantics as 
+        Perl 5.</para>
+      </listitem>
+
       <listitem>
         <para>Perl</para>
 

-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.