mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
Add an optional patch to glib to allow user supression of
unwanted warning messages. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19330 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
d6aa5ce982
commit
a9c0e8dfec
174
archive/libffi.xml
Normal file
174
archive/libffi.xml
Normal file
@ -0,0 +1,174 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!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 libffi-download-http "https://sourceware.org/ftp/libffi/libffi-&libffi-version;.tar.gz">
|
||||
<!ENTITY libffi-download-ftp "ftp://sourceware.org/pub/libffi/libffi-&libffi-version;.tar.gz">
|
||||
<!ENTITY libffi-md5sum "83b89587607e3eb65c70d361f13bab43">
|
||||
<!ENTITY libffi-size "920 KB">
|
||||
<!ENTITY libffi-buildsize "6.1 MB (additional 1.7 MB for the tests)">
|
||||
<!ENTITY libffi-time "less than 0.1 SBU (additional 0.4 SBU for the tests)">
|
||||
]>
|
||||
|
||||
<sect1 id="libffi" xreflabel="libffi-&libffi-version;">
|
||||
<?dbhtml filename="libffi.html"?>
|
||||
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
|
||||
<title>libffi-&libffi-version;</title>
|
||||
|
||||
<indexterm zone="libffi">
|
||||
<primary sortas="a-libffi">libffi</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect2 role="package">
|
||||
<title>Introduction to libffi</title>
|
||||
|
||||
<para>
|
||||
The <application>libffi</application> library provides a portable,
|
||||
high level programming interface to various calling conventions. This
|
||||
allows a programmer to call any function specified by a call interface
|
||||
description at run time.
|
||||
</para>
|
||||
|
||||
&lfs81_checked;
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&libffi-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&libffi-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download MD5 sum: &libffi-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download size: &libffi-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated disk space required: &libffi-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated build time: &libffi-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">libffi Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||
<para role="optional">
|
||||
<xref linkend="dejagnu"/> (required to run the testsuite)
|
||||
</para>
|
||||
|
||||
<para condition="html" role="usernotes">
|
||||
User Notes: <ulink url="&blfs-wiki;/libffi"/>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of libffi</title>
|
||||
|
||||
<para>
|
||||
Install <application>libffi</application> by running the following
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
|
||||
-i include/Makefile.in &&
|
||||
|
||||
sed -e '/^includedir/ s/=.*$/=@includedir@/' \
|
||||
-e 's/^Cflags: -I${includedir}/Cflags:/' \
|
||||
-i libffi.pc.in &&
|
||||
|
||||
./configure --prefix=/usr --disable-static &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>
|
||||
To test the results, issue: <command>make check</command>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make install</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>sed ... include/Makefile.in</command> and
|
||||
<command>sed ... libffi.pc.in</command>: Makes the package install headers
|
||||
into the standardized <filename class="directory">/usr/include</filename>
|
||||
instead of
|
||||
<filename class="directory">/usr/lib/libffi-&libffi-version;/include.</filename>.</para>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/static-libraries.xml"/>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Library</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>
|
||||
None
|
||||
</seg>
|
||||
<seg>
|
||||
libffi.so
|
||||
</seg>
|
||||
<seg>
|
||||
None
|
||||
</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="libffi-lib">
|
||||
<term><filename class="libraryfile">libffi.so</filename></term>
|
||||
<listitem>
|
||||
<para>
|
||||
contains the <application>libffi</application> API
|
||||
functions.
|
||||
</para>
|
||||
<indexterm zone="libffi libffi-lib">
|
||||
<primary sortas="c-libffi">libffi.so</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
@ -72,8 +72,17 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
||||
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Optional patch:
|
||||
<ulink url="&patch-root;/glib-&glib2-version;-skip_warnings-1.patch"/>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
||||
<!--
|
||||
<bridgehead renderas="sect4">Required</bridgehead>
|
||||
<para role="required">
|
||||
@ -118,6 +127,28 @@
|
||||
<sect2 role="installation">
|
||||
<title>Installation of GLib</title>
|
||||
|
||||
<para>If desired, appy the optional patch. In many cases, applications that
|
||||
use this library, either directly or indirectly via other libraries such
|
||||
as <xref linkend="gtk3"/>, output numerous warnings when run from the
|
||||
command line. This patch enables the use of an environment variable,
|
||||
GLIB_LOG_LEVEL, that supresses unwanted messages. The value of the
|
||||
variable is a digit that corresponds to:</para>
|
||||
|
||||
<simplelist>
|
||||
<member>1 Alert</member>
|
||||
<member>2 Critical</member>
|
||||
<member>3 Error</member>
|
||||
<member>4 Warning</member>
|
||||
<member>5 Notice</member>
|
||||
</simplelist>
|
||||
|
||||
<para>For instance GLIB_LOG_LEVEL=4 will skip output of Warning and
|
||||
Notice messages (and Info/Debug messages if they are turned on).
|
||||
If GLIB_LOG_LEVEL is not defined, normal message output will not
|
||||
be affected.</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../glib-&glib2-version;-skip_warnings-1.patch</userinput></screen>
|
||||
|
||||
<para>
|
||||
Install <application>GLib</application> by running the following
|
||||
commands:
|
||||
|
@ -45,6 +45,10 @@
|
||||
<listitem>
|
||||
<para>October 15th, 2017</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Add an optional patch to glib to allow
|
||||
user supression of unwanted warning messages.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[pierre] - Update to sddm-0.16.0. Fixes
|
||||
<ulink url="&blfs-ticket-root;9865">#9865</ulink>.</para>
|
||||
|
@ -321,6 +321,9 @@ div.important em, div.warning em, div.caution em {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.simplelist {
|
||||
margin-left: 5em;
|
||||
}
|
||||
|
||||
/* table */
|
||||
.table p.title {
|
||||
|
@ -41,9 +41,9 @@
|
||||
<para>
|
||||
<application>QtWebEngine</application> integrates
|
||||
<application>chromium</application>"s web capabilities into Qt. It
|
||||
ships with its own copy of ninja which it uses for the
|
||||
build, and various copies of libraries from ffmpeg, icu, libvpx, and zlib
|
||||
(including libminizip) which have been forked by the
|
||||
ships with its own copy of ninja which it uses for the build if it cannot
|
||||
find a system copy, and various copies of libraries from ffmpeg, icu,
|
||||
libvpx, and zlib (including libminizip) which have been forked by the
|
||||
<application>chromium</application> developers.
|
||||
</para>
|
||||
|
||||
|
@ -123,7 +123,6 @@
|
||||
<xref linkend="hicolor-icon-theme"/>,
|
||||
<xref linkend="mitkrb"/>,
|
||||
<xref linkend="mesa"/>,
|
||||
<xref linkend="ninja"/>,
|
||||
<xref linkend="nodejs"/>,
|
||||
<xref linkend="nss"/>,
|
||||
<xref linkend="python2"/>,
|
||||
|
Loading…
Reference in New Issue
Block a user