1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 uses extensible hashing and works like 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>
|
---|
79 | One test, <filename>version</filename>, is known to fail.
|
---|
80 | </para>
|
---|
81 | -->
|
---|
82 | <para>Install the package:</para>
|
---|
83 |
|
---|
84 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
85 |
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <!-- - - - - - - - - - -->
|
---|
89 | <!-- Multilib - 32bit -->
|
---|
90 | <!-- - - - - - - - - - -->
|
---|
91 |
|
---|
92 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
93 | <title>Installation of GDBM - 32bit</title>
|
---|
94 |
|
---|
95 | <para>Clean previous build:</para>
|
---|
96 |
|
---|
97 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
98 |
|
---|
99 | <para>Prepare GDBM for compilation:</para>
|
---|
100 |
|
---|
101 | <screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" ./configure \
|
---|
102 | --host=i686-pc-linux-gnu \
|
---|
103 | --prefix=/usr \
|
---|
104 | --libdir=/usr/lib32 \
|
---|
105 | --disable-static \
|
---|
106 | --enable-libgdbm-compat</userinput></screen>
|
---|
107 |
|
---|
108 | <para>Compile the package:</para>
|
---|
109 |
|
---|
110 | <screen><userinput remap="make">make</userinput></screen>
|
---|
111 |
|
---|
112 | <para>Install the package:</para>
|
---|
113 |
|
---|
114 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
115 | cp -Rv DESTDIR/usr/lib32/* /usr/lib32/
|
---|
116 | rm -rf DESTDIR</userinput></screen>
|
---|
117 |
|
---|
118 | </sect2><!-- m32 -->
|
---|
119 |
|
---|
120 | <!-- - - - - - - - - - -->
|
---|
121 | <!-- Multilib - x32bit -->
|
---|
122 | <!-- - - - - - - - - - -->
|
---|
123 |
|
---|
124 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
125 | <title>Installation of GDBM - x32bit</title>
|
---|
126 |
|
---|
127 | <para>Clean previous build:</para>
|
---|
128 |
|
---|
129 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
130 |
|
---|
131 | <para>Prepare GDBM for compilation:</para>
|
---|
132 |
|
---|
133 | <screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" ./configure \
|
---|
134 | --host=x86_64-pc-linux-gnux32 \
|
---|
135 | --prefix=/usr \
|
---|
136 | --libdir=/usr/libx32 \
|
---|
137 | --disable-static \
|
---|
138 | --enable-libgdbm-compat</userinput></screen>
|
---|
139 |
|
---|
140 | <para>Compile the package:</para>
|
---|
141 |
|
---|
142 | <screen><userinput remap="make">make</userinput></screen>
|
---|
143 |
|
---|
144 | <para>Install the package:</para>
|
---|
145 |
|
---|
146 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
147 | cp -Rv DESTDIR/usr/libx32/* /usr/libx32/
|
---|
148 | rm -rf DESTDIR</userinput></screen>
|
---|
149 |
|
---|
150 | </sect2><!-- mx32 -->
|
---|
151 |
|
---|
152 | <sect2 id="contents-gdbm" role="content">
|
---|
153 | <title>Contents of GDBM</title>
|
---|
154 |
|
---|
155 | <segmentedlist>
|
---|
156 | <segtitle>Installed programs</segtitle>
|
---|
157 | <segtitle>Installed libraries</segtitle>
|
---|
158 |
|
---|
159 | <seglistitem>
|
---|
160 | <seg>gdbm_dump, gdbm_load, and gdbmtool</seg>
|
---|
161 | <seg>libgdbm.so and libgdbm_compat.so</seg>
|
---|
162 | </seglistitem>
|
---|
163 | </segmentedlist>
|
---|
164 |
|
---|
165 | <variablelist>
|
---|
166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
167 | <?dbfo list-presentation="list"?>
|
---|
168 | <?dbhtml list-presentation="table"?>
|
---|
169 |
|
---|
170 | <varlistentry id="gdbm_dump">
|
---|
171 | <term><command>gdbm_dump</command></term>
|
---|
172 | <listitem>
|
---|
173 | <para>Dumps a GDBM database to a file</para>
|
---|
174 | <indexterm zone="ch-system-gdbm gdbm_dump">
|
---|
175 | <primary sortas="b-gdbm_dump">gdbm_dump</primary>
|
---|
176 | </indexterm>
|
---|
177 | </listitem>
|
---|
178 | </varlistentry>
|
---|
179 |
|
---|
180 | <varlistentry id="gdbm_load">
|
---|
181 | <term><command>gdbm_load</command></term>
|
---|
182 | <listitem>
|
---|
183 | <para>Recreates a GDBM database from a dump file</para>
|
---|
184 | <indexterm zone="ch-system-gdbm gdbm_load">
|
---|
185 | <primary sortas="b-gdbm_load">gdbm_load</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | <varlistentry id="gdbmtool">
|
---|
191 | <term><command>gdbmtool</command></term>
|
---|
192 | <listitem>
|
---|
193 | <para>Tests and modifies a GDBM database</para>
|
---|
194 | <indexterm zone="ch-system-gdbm gdbmtool">
|
---|
195 | <primary sortas="b-gdbmtool">gdbmtool</primary>
|
---|
196 | </indexterm>
|
---|
197 | </listitem>
|
---|
198 | </varlistentry>
|
---|
199 |
|
---|
200 | <varlistentry id="libgdbm">
|
---|
201 | <term><filename class="libraryfile">libgdbm</filename></term>
|
---|
202 | <listitem>
|
---|
203 | <para>Contains functions to manipulate a hashed database</para>
|
---|
204 | <indexterm zone="ch-system-gdbm libgdbm">
|
---|
205 | <primary sortas="c-libgdbm">libgdbm</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="libgdbm_compat">
|
---|
211 | <term><filename class="libraryfile">libgdbm_compat</filename></term>
|
---|
212 | <listitem>
|
---|
213 | <para>Compatibility library containing older DBM functions</para>
|
---|
214 | <indexterm zone="ch-system-gdbm libgdbm_compat">
|
---|
215 | <primary sortas="c-libgdbm_compat">libgdbm_compat</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | </variablelist>
|
---|
221 |
|
---|
222 | </sect2>
|
---|
223 |
|
---|
224 | </sect1>
|
---|