source: chapter08/gdbm.xml@ 37e35d2

multilib-10.1
Last change on this file since 37e35d2 was 37e35d2, checked in by Thomas Trepl <thomas@…>, 17 months ago

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-gdbm" role="wrap">
9 <?dbhtml filename="gdbm.html"?>
10
11 <sect1info condition="script">
12 <productname>gdbm</productname>
13 <productnumber>&gdbm-version;</productnumber>
14 <address>&gdbm-url;</address>
15 </sect1info>
16
17 <title>GDBM-&gdbm-version;</title>
18
19 <indexterm zone="ch-system-gdbm">
20 <primary sortas="a-Gdbm">GDBM</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The GDBM package contains the GNU Database Manager. It is a library
27 of database functions that use extensible hashing and works similar to the
28 standard UNIX dbm. The library provides primitives for storing key/data
29 pairs, searching and retrieving the data by its key and deleting a key
30 along with its data. </para>
31
32 <segmentedlist>
33 <segtitle>&buildtime;</segtitle>
34 <segtitle>&diskspace;</segtitle>
35
36 <seglistitem>
37 <seg>&gdbm-fin-sbu;</seg>
38 <seg>&gdbm-fin-du;</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of GDBM</title>
46
47 <para>First, fix an issue first identified by gcc-10:</para>
48
49<screen><userinput remap="pre">sed -r -i '/^char.*parseopt_program_(doc|args)/d' src/parseopt.c</userinput></screen>
50
51 <para>Prepare GDBM for compilation:</para>
52
53<screen><userinput remap="configure">./configure --prefix=/usr \
54 --disable-static \
55 --enable-libgdbm-compat</userinput></screen>
56
57 <variablelist>
58 <title>The meaning of the configure option:</title>
59
60 <varlistentry>
61 <term><envar>--enable-libgdbm-compat</envar></term>
62 <listitem>
63 <para>This switch enables building the libgdbm compatibility library.
64 Some packages outside of LFS may require the older DBM
65 routines it provides.</para>
66 </listitem>
67 </varlistentry>
68 </variablelist>
69
70 <para>Compile the package:</para>
71
72<screen><userinput remap="make">make</userinput></screen>
73
74 <para>To test the results, issue:</para>
75
76<screen><userinput remap="test">make check</userinput></screen>
77
78 <para>Install the package:</para>
79
80<screen><userinput remap="install">make install</userinput></screen>
81
82 </sect2>
83
84 <sect2 id="contents-gdbm" role="content">
85 <title>Contents of GDBM</title>
86
87 <segmentedlist>
88 <segtitle>Installed programs</segtitle>
89 <segtitle>Installed libraries</segtitle>
90
91 <seglistitem>
92 <seg>gdbm_dump, gdbm_load, and gdbmtool</seg>
93 <seg>libgdbm.so and libgdbm_compat.so</seg>
94 </seglistitem>
95 </segmentedlist>
96
97 <variablelist>
98 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
99 <?dbfo list-presentation="list"?>
100 <?dbhtml list-presentation="table"?>
101
102 <varlistentry id="gdbm_dump">
103 <term><command>gdbm_dump</command></term>
104 <listitem>
105 <para>Dumps a GDBM database to a file</para>
106 <indexterm zone="ch-system-gdbm gdbm_dump">
107 <primary sortas="b-gdbm_dump">gdbm_dump</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="gdbm_load">
113 <term><command>gdbm_load</command></term>
114 <listitem>
115 <para>Recreates a GDBM database from a dump file</para>
116 <indexterm zone="ch-system-gdbm gdbm_load">
117 <primary sortas="b-gdbm_load">gdbm_load</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="gdbmtool">
123 <term><command>gdbmtool</command></term>
124 <listitem>
125 <para>Tests and modifies a GDBM database</para>
126 <indexterm zone="ch-system-gdbm gdbmtool">
127 <primary sortas="b-gdbmtool">gdbmtool</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="libgdbm">
133 <term><filename class="libraryfile">libgdbm</filename></term>
134 <listitem>
135 <para>Contains functions to manipulate a hashed database</para>
136 <indexterm zone="ch-system-gdbm libgdbm">
137 <primary sortas="c-libgdbm">libgdbm</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="libgdbm_compat">
143 <term><filename class="libraryfile">libgdbm_compat</filename></term>
144 <listitem>
145 <para>Compatibility library containing older DBM functions</para>
146 <indexterm zone="ch-system-gdbm libgdbm_compat">
147 <primary sortas="c-libgdbm_compat">libgdbm_compat</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 </variablelist>
153
154 </sect2>
155
156</sect1>
Note: See TracBrowser for help on using the repository browser.