mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 14:32:13 +08:00
PCRE2: Added for GLib2.
This commit is contained in:
parent
db8d65934a
commit
36d3b5d224
@ -42,6 +42,9 @@
|
||||
<listitem>
|
||||
<para>October 22nd, 2024</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[Zeckmathederg] - PCRE2: Added for GLib2.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[Zeckmathederg] - Mako: 1.3.5 -> 1.3.6.</para>
|
||||
</listitem>
|
||||
|
@ -107,6 +107,7 @@
|
||||
<!ENTITY shadow-version "4.16.0">
|
||||
<!ENTITY elogind-version "255.5">
|
||||
<!ENTITY duktape-version "2.7.0">
|
||||
<!ENTITY pcre2-version "10.44">
|
||||
<!ENTITY glib2-minor "2.82">
|
||||
<!ENTITY glib2-version "&glib2-minor;.2">
|
||||
<!ENTITY gobject-introspection-version "1.82.0">
|
||||
|
@ -21,6 +21,7 @@
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/shadow.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/elogind.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/duktape.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/pcre2.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/glib2.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/icu.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="security/libxml2.xml"/>
|
||||
|
@ -73,6 +73,12 @@
|
||||
<xref linkend="mesonfiles"/> (for lib32)
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para role="required">
|
||||
<xref linkend="pcre2"/> (if not built, Meson will try to fetch a tarball
|
||||
of PCRE2 source code from the internet)
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
||||
<para role="recommended">
|
||||
<xref role="runtime" linkend="shared-mime-info"/> and
|
||||
|
236
shareddeps/security/pcre2.xml
Normal file
236
shareddeps/security/pcre2.xml
Normal file
@ -0,0 +1,236 @@
|
||||
<?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;
|
||||
|
||||
<!ENTITY pcre2-download-http "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-&pcre2-version;/pcre2-&pcre2-version;.tar.bz2">
|
||||
<!ENTITY pcre2-download-ftp " ">
|
||||
]>
|
||||
|
||||
<sect1 id="pcre2" xreflabel="pcre2-&pcre2-version;">
|
||||
<?dbhtml filename="pcre2.html"?>
|
||||
|
||||
|
||||
<title>PCRE2-&pcre2-version;</title>
|
||||
|
||||
<indexterm zone="pcre2">
|
||||
<primary sortas="a-pcre2">PCRE2</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect2 role="package">
|
||||
<title>Introduction to PCRE2</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>
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&pcre2-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&pcre2-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">PCRE2 Dependencies</bridgehead>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of PCRE2</title>
|
||||
|
||||
<para>
|
||||
Install <application>PCRE2</application> by running the following
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>./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 &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make install</userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>32-bit Installation of PCRE2</title>
|
||||
|
||||
<para>
|
||||
First clean the directory:
|
||||
</para>
|
||||
|
||||
<screen><userinput>make distclean</userinput></screen>
|
||||
|
||||
<para>
|
||||
Now install lib32-<application>PCRE2</application> by running the
|
||||
following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
|
||||
PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib32 \
|
||||
--host=i686-pc-linux-gnu \
|
||||
--enable-unicode \
|
||||
--enable-jit \
|
||||
--enable-pcre2-16 \
|
||||
--enable-pcre2-32 \
|
||||
--enable-pcre2grep-libz \
|
||||
--enable-pcre2grep-libbz2 \
|
||||
--enable-pcre2test-libreadline \
|
||||
--disable-static &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install &&
|
||||
cp -vR DESTDIR/usr/lib32/* /usr/lib32 &&
|
||||
rm -rf DESTDIR &&
|
||||
ldconfig</userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-unicode</parameter>: This switch enables Unicode
|
||||
support and includes the functions for handling UTF-8/16/32 character
|
||||
strings in the library.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-pcre2-16</parameter>: This switch enables 16 bit
|
||||
character support.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-pcre2-32</parameter>: This switch enables 32 bit
|
||||
character support.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-pcre2grep-libz</parameter>: This switch adds support
|
||||
for reading .gz compressed files to <application>pcre2grep</application>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-pcre2grep-libbz2</parameter>: This switch adds
|
||||
support for reading .bz2 compressed files to
|
||||
<application>pcre2grep</application>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-pcre2test-libreadline</parameter>: This switch adds
|
||||
line editing and history features to the
|
||||
<application>pcre2test</application> program.
|
||||
</para>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/static-libraries.xml"/>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-jit</parameter>: this option enables Just-in-time
|
||||
compiling, which can greatly speed up pattern matching.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
<title>Contents</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="pcre2 pcre2grep">
|
||||
<primary sortas="b-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="pcre2 pcre2test">
|
||||
<primary sortas="b-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="pcre2 pcre2-config">
|
||||
<primary sortas="b-pcre2-config">pcre2-config</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
Loading…
Reference in New Issue
Block a user