From 47045599e69241222a0288069cd76dc1614aed4d Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Sun, 22 May 2011 22:21:37 +0000 Subject: Upgrade to Pkg-config-0.26 and add PCRE and Glib as required dependencies. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9547 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 4 +- chapter06/glib.xml | 172 +++++++++++++++++++++++++++++++++++++++++++ chapter06/pcre.xml | 187 +++++++++++++++++++++++++++++++++++++++++++++++ chapter06/pkg-config.xml | 8 +- 4 files changed, 369 insertions(+), 2 deletions(-) create mode 100644 chapter06/glib.xml create mode 100644 chapter06/pcre.xml (limited to 'chapter06') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index f4b21b449..899ab5446 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -29,6 +29,9 @@ + + + @@ -47,7 +50,6 @@ - diff --git a/chapter06/glib.xml b/chapter06/glib.xml new file mode 100644 index 000000000..ee5297676 --- /dev/null +++ b/chapter06/glib.xml @@ -0,0 +1,172 @@ + + + %general-entities; +]> + + + + + + glib + &glib-version; +
&glib-url;
+
+ + Glib-&glib-version; + + + Glib + + + + + + <para>The GLib package contains a low-level core library. This is useful + for providing data structure handling for C, portability wrappers and + interfaces for such runtime functionality as an event loop, threads, + dynamic loading, and an object system.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&glib-ch6-sbu;</seg> + <seg>&glib-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Glib + + Prepare Glib for compilation: + +PCRE_LIBS="-L/usr/lib -lpcre" PCRE_CFLAGS="-I/usr/include" ./configure --prefix=/usr --with-pcre=system + + + The meaning of the configure options: + + + --with-pcre=system + + This parameter causes the build to use a system-provided + version of the PCRE library instead of an internal version. + + + + + Compile the package: + +make + + Due to dependencies on additional Perl modules and other packages not yet present + (e.g. desktop-file-utils and DBus), it is not possible to run Glib's test suite. + + Install the package: + +make install + + + + + Contents of Glib + + + Installed programs + Installed libraries + Installed directories + + + gio-querymodules, glib-genmarshal, glib-gettextize, + glib-mkenums, gobject-query, gtester and gtester-report + libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so, + libgobject-2.0.so, and libgthread-2.0.so + /usr/include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}}, + /usr/lib/{gio/modules,glib-2.0/include}, + /usr/share/{gdb/auto-load,glib-2.0/{gdb, gettext/po},gtk-doc/html/{gio,glib,gobject}} + + + + + Short Descriptions + + + + + gio-querymodules + + is a C code marshaller generation utility for GLib + closures. + + gio-querymodules + + + + + + glib-gettextize + + is a variant of the gettext internationalization + utility. + + glib-gettextize + + + + + + glib-mkenums + + is a C language enum description generation utility. + + glib-mkenums + + + + + + gobject-query + + Is a small utility that draws a tree of types. + + gobject-query + + + + + + gtester + + Is a test running utility. + + gtester + + + + + + gtester-report + + Is a test report formatting utility. + + gtester-report + + + + + + Glib libraries + + contain a general purpose low-level core library. + + + + + + + +
diff --git a/chapter06/pcre.xml b/chapter06/pcre.xml new file mode 100644 index 000000000..5d04a7f38 --- /dev/null +++ b/chapter06/pcre.xml @@ -0,0 +1,187 @@ + + + %general-entities; +]> + + + + + + pcre + &pcre-version; +
&pcre-url;
+
+ + PCRE-&pcre-version; + + + PCRE + + + + + + <para>The PCRE package contains Perl Compatible Regular Expression + libraries. These are useful for implementing regular expression pattern + matching using the same syntax and semantics as Perl 5.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&pcre-ch6-sbu;</seg> + <seg>&pcre-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of PCRE + + Prepare PCRE for compilation: + +./configure --prefix=/usr \ + --docdir=/usr/share/doc/pcre-8.10 \ + --enable-utf8 \ + --enable-unicode-properties \ + --enable-pcregrep-libz \ + --enable-pcregrep-libbz2 + + + The meaning of the configure options: + + + --enable-utf8 + + This switch includes the code for handling UTF-8 character + strings in the library. + + + + --enable-unicode-properties + + This switch enables Unicode properties support. + + + + --enable-pcregrep-lib* + + These switches enable the PCRE library to read files compressed + with gzip and bzip2. + + + + + Compile the package: + +make + + To test the results, issue: + +make check + + Install the package: + +make install + + The grep binary will be installed in /bin and will link against the PCRE library; as such, +move the library to /lib: + +mv -v /usr/lib/libpcre.so.* /lib/ && +ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so + + + + + Contents of PCRE + + + Installed programs + Installed libraries + Installed directories + + + pcregrep, pcretest, and pcre-config + libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a} + /usr/share/doc/pcre-&pcre-version; + + + + + Short Descriptions + + + + + pcregrep + + A grep that understands Perl compatible regular + expressions. + + pcregrep + + + + + + pcretest + + Tests a Perl compatible regular expression. + + pcretest + + + + + + pcre-config + + Used during the compilation process of programs linking to the + PCRE libraries. + + pcre-config + + + + + + libpcre + + Provides functions useful for working with regular + expressions. + + libpcre* + + + + + + libpcrecpp + + Provides C++ wrapper functions for the libpcre library. + + libpcrecpp* + + + + + + libpcreposix + + Provides wrapper functions based on the POSIX regular expression + API. + + libpcreposix* + + + + + + + + +
diff --git a/chapter06/pkg-config.xml b/chapter06/pkg-config.xml index 444a30c9a..12498d289 100644 --- a/chapter06/pkg-config.xml +++ b/chapter06/pkg-config.xml @@ -48,9 +48,15 @@ url="&blfs-root;view/svn/general/popt.html">BLFS Popt build instructions before installing Pkg-config. + + Fix a problem with one of Pkg-config's tests: + +sed -i -e '21s/EXPECT_RETURN=1/EXPECT_RETURN=0/' check/check-cmd-options + Prepare Pkg-config for compilation: -./configure --prefix=/usr +GLIB_LIBS="-L/usr/lib -lglib-2.0" \ + GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" ./configure --prefix=/usr Compile the package: -- cgit v1.2.3-54-g00ecf