gdbm.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <sect1 id="ch-system-gdbm" role="wrap">
  8. <?dbhtml filename="gdbm.html"?>
  9. <sect1info condition="script">
  10. <productname>gdbm</productname>
  11. <productnumber>&gdbm-version;</productnumber>
  12. <address>&gdbm-url;</address>
  13. </sect1info>
  14. <title>GDBM-&gdbm-version;</title>
  15. <indexterm zone="ch-system-gdbm">
  16. <primary sortas="a-Gdbm">GDBM</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The GDBM package contains the GNU Database Manager. It is a library
  21. of database functions that use extensible hashing and work similar to the
  22. standard UNIX dbm. The library provides primitives for storing key/data
  23. pairs, searching and retrieving the data by its key and deleting a key
  24. along with its data. </para>
  25. <segmentedlist>
  26. <segtitle>&buildtime;</segtitle>
  27. <segtitle>&diskspace;</segtitle>
  28. <seglistitem>
  29. <seg>&gdbm-ch6-sbu;</seg>
  30. <seg>&gdbm-ch6-du;</seg>
  31. </seglistitem>
  32. </segmentedlist>
  33. </sect2>
  34. <sect2 role="installation">
  35. <title>Installation of GDBM</title>
  36. <para>First, fix an issue first identified by gcc-10:</para>
  37. <screen><userinput remap="pre">sed -r -i '/^char.*parseopt_program_(doc|args)/d' src/parseopt.c</userinput></screen>
  38. <para>Prepare GDBM for compilation:</para>
  39. <screen><userinput remap="configure">./configure --prefix=/usr \
  40. --disable-static \
  41. --enable-libgdbm-compat</userinput></screen>
  42. <variablelist>
  43. <title>The meaning of the configure option:</title>
  44. <varlistentry>
  45. <term><envar>--enable-libgdbm-compat</envar></term>
  46. <listitem>
  47. <para>This switch enables the libgdbm compatibility library to be
  48. built, as some packages outside of LFS may require the older DBM
  49. routines it provides.</para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. <para>Compile the package:</para>
  54. <screen><userinput remap="make">make</userinput></screen>
  55. <para>To test the results, issue:</para>
  56. <screen><userinput remap="test">make check</userinput></screen>
  57. <para>Install the package:</para>
  58. <screen><userinput remap="install">make install</userinput></screen>
  59. </sect2>
  60. <sect2 id="contents-gdbm" role="content">
  61. <title>Contents of GDBM</title>
  62. <segmentedlist>
  63. <segtitle>Installed programs</segtitle>
  64. <segtitle>Installed libraries</segtitle>
  65. <seglistitem>
  66. <seg>gdbm_dump, gdbm_load, and gdbmtool</seg>
  67. <seg>libgdbm.so and libgdbm_compat.so</seg>
  68. </seglistitem>
  69. </segmentedlist>
  70. <variablelist>
  71. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  72. <?dbfo list-presentation="list"?>
  73. <?dbhtml list-presentation="table"?>
  74. <varlistentry id="gdbm_dump">
  75. <term><command>gdbm_dump</command></term>
  76. <listitem>
  77. <para>Dumps a GDBM database to a file</para>
  78. <indexterm zone="ch-system-gdbm gdbm_dump">
  79. <primary sortas="b-gdbm_dump">gdbm_dump</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="gdbm_load">
  84. <term><command>gdbm_load</command></term>
  85. <listitem>
  86. <para>Recreates a GDBM database from a dump file</para>
  87. <indexterm zone="ch-system-gdbm gdbm_load">
  88. <primary sortas="b-gdbm_load">gdbm_load</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="gdbmtool">
  93. <term><command>gdbmtool</command></term>
  94. <listitem>
  95. <para>Tests and modifies a GDBM database</para>
  96. <indexterm zone="ch-system-gdbm gdbmtool">
  97. <primary sortas="b-gdbmtool">gdbmtool</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="libgdbm">
  102. <term><filename class="libraryfile">libgdbm</filename></term>
  103. <listitem>
  104. <para>Contains functions to manipulate a hashed database</para>
  105. <indexterm zone="ch-system-gdbm libgdbm">
  106. <primary sortas="c-libgdbm">libgdbm</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="libgdbm_compat">
  111. <term><filename class="libraryfile">libgdbm_compat</filename></term>
  112. <listitem>
  113. <para>Compatibility library containing older DBM functions</para>
  114. <indexterm zone="ch-system-gdbm libgdbm_compat">
  115. <primary sortas="c-libgdbm_compat">libgdbm_compat</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. </variablelist>
  120. </sect2>
  121. </sect1>