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