[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[2f7b585] | 7 | <!ENTITY popt-download-http "http://ftp.rpm.org/popt/releases/popt-1.x/popt-1.18.tar.gz">
|
---|
[4dbbc0a9] | 8 | <!ENTITY popt-download-ftp "ftp://ftp.rpm.org/pub/rpm/popt/releases/popt-1.x/popt-&popt-version;.tar.gz">
|
---|
| 9 | <!ENTITY popt-md5sum "450f2f636e6a3aa527de803d0ae76c5a">
|
---|
| 10 | <!ENTITY popt-size "567 kB">
|
---|
| 11 | <!ENTITY popt-buildsize "8.7 MB (includes installing documentation)">
|
---|
[8bc5636f] | 12 | <!ENTITY popt-time "0.1 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[fd680fb] | 15 | <sect1 id="popt" xreflabel="popt-&popt-version;">
|
---|
[36f0d75] | 16 | <?dbhtml filename="popt.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[36f0d75] | 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[8e75f8b9] | 21 |
|
---|
[b3da5f2c] | 22 | <title>Popt-&popt-version;</title>
|
---|
[8e75f8b9] | 23 |
|
---|
[36f0d75] | 24 | <indexterm zone="popt">
|
---|
| 25 | <primary sortas="a-Popt">Popt</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Popt</title>
|
---|
[8e75f8b9] | 30 |
|
---|
[d56e7df] | 31 | <para>
|
---|
| 32 | The <application>popt</application> package contains the
|
---|
| 33 | <application>popt</application> libraries which are used by
|
---|
| 34 | some programs to parse command-line options.
|
---|
| 35 | </para>
|
---|
[8e75f8b9] | 36 |
|
---|
[bfbc72a] | 37 | &lfs101_checked;
|
---|
[bd32b6f] | 38 |
|
---|
[36f0d75] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[d56e7df] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&popt-download-http;"/>
|
---|
| 44 | </para>
|
---|
[36f0d75] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[d56e7df] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&popt-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[36f0d75] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[d56e7df] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &popt-md5sum;
|
---|
| 54 | </para>
|
---|
[36f0d75] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[d56e7df] | 57 | <para>
|
---|
| 58 | Download size: &popt-size;
|
---|
| 59 | </para>
|
---|
[36f0d75] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[d56e7df] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &popt-buildsize;
|
---|
| 64 | </para>
|
---|
[36f0d75] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[d56e7df] | 67 | <para>
|
---|
| 68 | Estimated build time: &popt-time;
|
---|
| 69 | </para>
|
---|
[36f0d75] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
[8e75f8b9] | 72 |
|
---|
[40454cd2] | 73 | <bridgehead renderas="sect3">popt Dependencies</bridgehead>
|
---|
| 74 | <para role="optional">
|
---|
| 75 | <xref linkend="doxygen"/> (for generating documentation)
|
---|
| 76 | </para>
|
---|
| 77 |
|
---|
[1039de3] | 78 | <para condition="html" role="usernotes">User Notes:
|
---|
| 79 | <ulink url="&blfs-wiki;/popt"/></para>
|
---|
| 80 |
|
---|
[36f0d75] | 81 | </sect2>
|
---|
[8e75f8b9] | 82 |
|
---|
[36f0d75] | 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of Popt</title>
|
---|
| 85 |
|
---|
[d56e7df] | 86 | <para>
|
---|
| 87 | Install <application>popt</application> by running the following
|
---|
| 88 | commands:
|
---|
| 89 | </para>
|
---|
[36f0d75] | 90 |
|
---|
[e43015c] | 91 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[36f0d75] | 92 | make</userinput></screen>
|
---|
[8e75f8b9] | 93 |
|
---|
[d56e7df] | 94 | <para>
|
---|
| 95 | If you have <xref linkend="doxygen"/> installed and wish to build
|
---|
| 96 | the API documentation, issue:
|
---|
| 97 | </para>
|
---|
[a42c273] | 98 |
|
---|
[4dbbc0a9] | 99 | <screen remap="doc"><userinput>sed -i 's@\./@src/@' Doxyfile &&
|
---|
| 100 | doxygen</userinput></screen>
|
---|
[189885b] | 101 |
|
---|
[d56e7df] | 102 | <para>
|
---|
| 103 | To test the results, issue: <command>make check</command>.
|
---|
| 104 | </para>
|
---|
[58ff87a] | 105 |
|
---|
[d56e7df] | 106 | <para>
|
---|
| 107 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 108 | </para>
|
---|
[8e75f8b9] | 109 |
|
---|
[756a787] | 110 | <screen role="root"><userinput>make install &&
|
---|
| 111 | mv /usr/lib/libpopt.so.* /lib &&
|
---|
| 112 | ln -sfv ../../lib/$(readlink /usr/lib/libpopt.so) /usr/lib/libpopt.so</userinput></screen>
|
---|
[8e75f8b9] | 113 |
|
---|
[d56e7df] | 114 | <para>
|
---|
| 115 | If you built the API documentation, install it using the following
|
---|
| 116 | commands issued by the <systemitem class="username">root</systemitem>
|
---|
| 117 | user:
|
---|
| 118 | </para>
|
---|
[189885b] | 119 |
|
---|
[a42c273] | 120 | <screen role="root"
|
---|
| 121 | remap="doc"><userinput>install -v -m755 -d /usr/share/doc/popt-&popt-version; &&
|
---|
[189885b] | 122 | install -v -m644 doxygen/html/* /usr/share/doc/popt-&popt-version;</userinput></screen>
|
---|
| 123 |
|
---|
[36f0d75] | 124 | </sect2>
|
---|
[8e75f8b9] | 125 |
|
---|
[e43015c] | 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
| 129 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 130 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 131 |
|
---|
[756a787] | 132 | <para>
|
---|
| 133 | <command>mv /usr/lib/libpopt.so.* /lib</command> and
|
---|
| 134 | <command>ln -sfv ...</command>: Moves the popt library on the root
|
---|
| 135 | filesystem, so it is avaliable in case
|
---|
| 136 | <systemitem class="filesystem">/usr</systemitem> is offline and
|
---|
| 137 | <xref linkend="efibootmgr"/> is installed and linked to popt.
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
[e43015c] | 140 | </sect2>
|
---|
| 141 |
|
---|
[36f0d75] | 142 | <sect2 role="content">
|
---|
| 143 | <title>Contents</title>
|
---|
| 144 |
|
---|
| 145 | <segmentedlist>
|
---|
| 146 | <segtitle>Installed Programs</segtitle>
|
---|
| 147 | <segtitle>Installed Library</segtitle>
|
---|
| 148 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 149 |
|
---|
[36f0d75] | 150 | <seglistitem>
|
---|
| 151 | <seg>None</seg>
|
---|
[bc14bd2c] | 152 | <seg>libpopt.so</seg>
|
---|
[189885b] | 153 | <seg>/usr/share/doc/popt-&popt-version;</seg>
|
---|
[36f0d75] | 154 | </seglistitem>
|
---|
| 155 | </segmentedlist>
|
---|
[8e75f8b9] | 156 |
|
---|
[36f0d75] | 157 | <variablelist>
|
---|
| 158 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 159 | <?dbfo list-presentation="list"?>
|
---|
[0f0ee329] | 160 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 161 |
|
---|
[36f0d75] | 162 | <varlistentry id="libpopt">
|
---|
[4c24eb0a] | 163 | <term><filename class="libraryfile">libpopt.so</filename></term>
|
---|
[36f0d75] | 164 | <listitem>
|
---|
[d56e7df] | 165 | <para>
|
---|
[4c24eb0a] | 166 | is used to parse command-line options
|
---|
[d56e7df] | 167 | </para>
|
---|
[36f0d75] | 168 | <indexterm zone="popt libpopt">
|
---|
[bc14bd2c] | 169 | <primary sortas="c-libpopt">libpopt.so</primary>
|
---|
[36f0d75] | 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 | </variablelist>
|
---|
| 174 |
|
---|
| 175 | </sect2>
|
---|
[f45b1953] | 176 |
|
---|
| 177 | </sect1>
|
---|