sqlite-3.7.11

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9840 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Andrew Benton 2012-04-03 13:02:02 +00:00
parent 3f72597292
commit a26f3f8fd3
4 changed files with 88 additions and 54 deletions

View File

@ -566,7 +566,7 @@ $Date$
<!ENTITY db-version "5.2.36"> <!ENTITY db-version "5.2.36">
<!ENTITY mysql-version "5.5.17"> <!ENTITY mysql-version "5.5.17">
<!ENTITY postgresql-version "9.0.6"> <!ENTITY postgresql-version "9.0.6">
<!ENTITY sqlite-version "3.7.10"> <!ENTITY sqlite-version "3.7.11">
<!-- Chapter 22 --> <!-- Chapter 22 -->
<!-- dhcp (chapter 13) --> <!-- dhcp (chapter 13) -->

View File

@ -57,6 +57,9 @@
<listitem> <listitem>
<para>[dj] - Upate to keyutils-1.5.5.</para> <para>[dj] - Upate to keyutils-1.5.5.</para>
</listitem> </listitem>
<listitem>
<para>[abenton] - SQLite 3.7.11.</para>
</listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>

View File

@ -7,7 +7,7 @@
<!ENTITY sqlite-dl-version "3071000"> <!ENTITY sqlite-dl-version "3071000">
<!ENTITY sqlite-download-http "http://sqlite.org/sqlite-autoconf-&sqlite-dl-version;.tar.gz"> <!ENTITY sqlite-download-http "http://sqlite.org/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
<!ENTITY sqlite-download-ftp " "> <!ENTITY sqlite-download-ftp " ">
<!ENTITY sqlite-md5sum "9ed2ca93577b58cfa0d01f64b9312ab9"> <!ENTITY sqlite-md5sum "0552d71bda98ebdcaea305cd6058221b">
<!ENTITY sqlite-size "1.7 MB"> <!ENTITY sqlite-size "1.7 MB">
<!ENTITY sqlite-buildsize "46 MB (includes optional documentation)"> <!ENTITY sqlite-buildsize "46 MB (includes optional documentation)">
<!ENTITY sqlite-time "0.4 SBU"> <!ENTITY sqlite-time "0.4 SBU">
@ -34,31 +34,45 @@
<sect2 role="package"> <sect2 role="package">
<title>Introduction to SQLite</title> <title>Introduction to SQLite</title>
<para>The <application>SQLite</application> package is a software <para>
library that implements a self-contained, serverless, The <application>SQLite</application> package is a software library that
zero-configuration, transactional SQL database engine.</para> implements a self-contained, serverless, zero-configuration, transactional
SQL database engine.
</para>
&lfs71_checked; &lfs71_checked;
<bridgehead renderas="sect3">Package Information</bridgehead> <bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact"> <itemizedlist spacing="compact">
<listitem> <listitem>
<para>Download (HTTP): <ulink url="&sqlite-download-http;"/></para> <para>
Download (HTTP): <ulink url="&sqlite-download-http;"/>
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Download (FTP): <ulink url="&sqlite-download-ftp;"/></para> <para>
Download (FTP): <ulink url="&sqlite-download-ftp;"/>
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Download MD5 sum: &sqlite-md5sum;</para> <para>
Download MD5 sum: &sqlite-md5sum;
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Download size: &sqlite-size;</para> <para>
Download size: &sqlite-size;
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Estimated disk space required: &sqlite-buildsize;</para> <para>
Estimated disk space required: &sqlite-buildsize;
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Estimated build time: &sqlite-time;</para> <para>
Estimated build time: &sqlite-time;
</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
@ -66,51 +80,67 @@
<itemizedlist spacing="compact"> <itemizedlist spacing="compact">
<title>Optional Documentation</title> <title>Optional Documentation</title>
<listitem> <listitem>
<para>Download (HTTP): <ulink url="&sqlite-docs-download;"/></para> <para>
Download (HTTP): <ulink url="&sqlite-docs-download;"/>
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Download MD5 sum: &sqlite-docs-md5sum;</para> <para>
Download MD5 sum: &sqlite-docs-md5sum;
</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Download size: &sqlite-docs-size;</para> <para>
Download size: &sqlite-docs-size;
</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<bridgehead renderas="sect3">SQLite Dependencies</bridgehead> <bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional</bridgehead> <bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><xref linkend="unzip"/> (required to unzip the <para role="optional">
documentation)</para> <xref linkend="unzip"/> (required to unzip the documentation).
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/sqlite"/></para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/sqlite"/>
</para>
</sect2> </sect2>
<sect2 role="installation"> <sect2 role="installation">
<title>Installation of SQLite</title> <title>Installation of SQLite</title>
<para>If you downloaded the optional documentation, issue the following <para>
command to install the documentation into the source tree:</para> If you downloaded the optional documentation, issue the following command
to install the documentation into the source tree:
</para>
<screen><userinput>unzip -q ../sqlite-doc-&sqlite-dl-version;.zip</userinput></screen> <screen><userinput>unzip -q ../sqlite-doc-&sqlite-dl-version;.zip</userinput></screen>
<para>Install <application>SQLite</application> by running the following <para>
commands:</para> Install <application>SQLite</application> by running the following
commands:
</para>
<screen><userinput>./configure --prefix=/usr --disable-static \ <screen><userinput>./configure --prefix=/usr --disable-static \
CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" &amp;&amp; CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" &amp;&amp;
make</userinput></screen> make</userinput></screen>
<para>This package does not come with a test suite.</para> <para>
This package does not come with a test suite.
</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para> <para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen> <screen role="root"><userinput>make install</userinput></screen>
<para>If you downloaded the optional documentation, issue the following <para>
commands as the <systemitem class="username">root</systemitem> user to If you downloaded the optional documentation, issue the following commands
install it:</para> as the <systemitem class="username">root</systemitem> user to install it:
</para>
<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &amp;&amp; <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &amp;&amp;
cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen> cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
@ -119,23 +149,25 @@ cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;
<sect2 role="commands"> <sect2 role="commands">
<title>Command Explanations</title> <title>Command Explanations</title>
<para><parameter>CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
<para>
<parameter>CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1"</parameter>: Applications such as -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"</parameter>: Applications such as
<application>firefox</application> require secure delete and enable unlock <application>Firefox</application> require secure delete and enable unlock
notify to be turned on. The only way to do this is to include them in the notify to be turned on. The only way to do this is to include them in the
CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
specify that to preserve those settings. You may, of course, wish to omit specify that to preserve those settings. You may, of course, wish to omit
the <literal>'-g'</literal> if you do not wish to create debugging the <literal>'-g'</literal> if you do not wish to create debugging
information. For further information on what can be specified see <ulink information. For further information on what can be specified see
url="http://www.sqlite.org/compile.html"/>.</para> <ulink url="http://www.sqlite.org/compile.html"/>.
</para>
<para><parameter>--disable-static</parameter>: This parameter stops it
installing a static version of libsqlite3.</para>
<para><option>-DSQLITE_ENABLE_COLUMN_METADATA</option> : include this in
the CFLAGS if you want to use this as a system version for
<xref linkend="libgda"/>.</para>
<para>
<option>-DSQLITE_ENABLE_COLUMN_METADATA</option>: Add this to the CFLAGS
if you want to use this as a system version for <xref linkend="libgda"/>.
</para>
</sect2> </sect2>
<sect2 role="content"> <sect2 role="content">
@ -144,12 +176,10 @@ cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;
<segmentedlist> <segmentedlist>
<segtitle>Installed Program</segtitle> <segtitle>Installed Program</segtitle>
<segtitle>Installed Library</segtitle> <segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem> <seglistitem>
<seg>sqlite3</seg> <seg>sqlite3</seg>
<seg>libsqlite3.so</seg> <seg>libsqlite3.so</seg>
<seg>None</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -161,9 +191,11 @@ cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;
<varlistentry id="sqlite3"> <varlistentry id="sqlite3">
<term><command>sqlite3</command></term> <term><command>sqlite3</command></term>
<listitem> <listitem>
<para>A terminal-based front-end to the <application>SQLite <para>
</application> library that can evaluate queries interactively A terminal-based front-end to the <application>SQLite</application>
and display the results.</para> library that can evaluate queries interactively and display the
results.
</para>
<indexterm zone="sqlite sqlite3"> <indexterm zone="sqlite sqlite3">
<primary sortas="b-sqlite3">sqlite3</primary> <primary sortas="b-sqlite3">sqlite3</primary>
</indexterm> </indexterm>
@ -173,8 +205,9 @@ cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;
<varlistentry id="libsqlite3"> <varlistentry id="libsqlite3">
<term><filename class='libraryfile'>libsqlite3.so</filename></term> <term><filename class='libraryfile'>libsqlite3.so</filename></term>
<listitem> <listitem>
<para>Contains the <application>SQLite</application> API <para>
functions.</para> contains the <application>SQLite</application> API functions.
</para>
<indexterm zone="sqlite libsqlite3"> <indexterm zone="sqlite libsqlite3">
<primary sortas="c-libsqlite3">libsqlite3.so</primary> <primary sortas="c-libsqlite3">libsqlite3.so</primary>
</indexterm> </indexterm>

View File

@ -188,10 +188,8 @@ make</userinput></screen>
<sect2 role="commands"> <sect2 role="commands">
<title>Command Explanations</title> <title>Command Explanations</title>
<para> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
<option>--disable-static</option>: This prevents the installation of href="../../xincludes/static-libraries.xml"/>
static versions of the libraries.
</para>
<para> <para>
<command>COMMAND</command>: This command does something. <command>COMMAND</command>: This command does something.