[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[57f7cfa] | 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 |
|
---|
[6ef4408] | 7 | <!ENTITY libarchive-download-http "https://github.com/libarchive/libarchive/releases/download/v&libarchive-version;/libarchive-&libarchive-version;.tar.xz">
|
---|
[57f7cfa] | 8 | <!ENTITY libarchive-download-ftp " ">
|
---|
[87e81412] | 9 | <!ENTITY libarchive-md5sum "1bab4c1b443ecf4f23ff9881665e680a">
|
---|
[a8586f30] | 10 | <!ENTITY libarchive-size "5.2 MB">
|
---|
| 11 | <!ENTITY libarchive-buildsize "42 MB (add 32 MB for tests)">
|
---|
| 12 | <!ENTITY libarchive-time "0.4 SBU (add 0.6 SBU for tests)">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libarchive" xreflabel="libarchive-&libarchive-version;">
|
---|
| 16 | <?dbhtml filename="libarchive.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libarchive-&libarchive-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libarchive">
|
---|
| 22 | <primary sortas="a-libarchive">libarchive</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libarchive</title>
|
---|
| 27 |
|
---|
[5b38e37] | 28 | <para>
|
---|
| 29 | The <application>libarchive</application> library provides a single
|
---|
| 30 | interface for reading/writing various compression formats.
|
---|
| 31 | </para>
|
---|
[57f7cfa] | 32 |
|
---|
[e375445] | 33 | &lfs122_checked;
|
---|
[57f7cfa] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[5b38e37] | 38 | <para>
|
---|
[56605b9] | 39 | Download (HTTP): <ulink url="&libarchive-download-http;"/>
|
---|
[046d740] | 40 | </para>
|
---|
[57f7cfa] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[5b38e37] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libarchive-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[57f7cfa] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[5b38e37] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &libarchive-md5sum;
|
---|
| 50 | </para>
|
---|
[57f7cfa] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[5b38e37] | 53 | <para>
|
---|
| 54 | Download size: &libarchive-size;
|
---|
| 55 | </para>
|
---|
[57f7cfa] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[5b38e37] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &libarchive-buildsize;
|
---|
| 60 | </para>
|
---|
[57f7cfa] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[5b38e37] | 63 | <para>
|
---|
| 64 | Estimated build time: &libarchive-time;
|
---|
| 65 | </para>
|
---|
[57f7cfa] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
[297b344] | 69 | <!--
|
---|
[eeaa41b7] | 70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 71 | <itemizedlist spacing="compact">
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>
|
---|
| 74 | Required patch:
|
---|
| 75 | <ulink url="&patch-root;/libarchive-&libarchive-version;-testsuite_fix-1.patch"/>
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
[297b344] | 79 | -->
|
---|
[57f7cfa] | 80 | <bridgehead renderas="sect3">libarchive Dependencies</bridgehead>
|
---|
| 81 |
|
---|
[6cfc907a] | 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 83 | <para role="recommended">
|
---|
| 84 | <xref linkend="libxml2"/>
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
[af822af] | 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 88 | <para role="optional">
|
---|
[a8586f30] | 89 | <xref linkend="lzo"/>,
|
---|
| 90 | <xref linkend="nettle"/>, and
|
---|
| 91 | <xref linkend="pcre2"/>
|
---|
[57f7cfa] | 92 | </para>
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of libarchive</title>
|
---|
| 97 |
|
---|
[5b38e37] | 98 | <para>
|
---|
| 99 | Install <application>libarchive</application> by running the following
|
---|
| 100 | commands:
|
---|
| 101 | </para>
|
---|
[57f7cfa] | 102 |
|
---|
[6cfc907a] | 103 | <screen><userinput>./configure --prefix=/usr --disable-static --without-expat &&
|
---|
[57f7cfa] | 104 | make</userinput></screen>
|
---|
| 105 |
|
---|
[5b38e37] | 106 | <para>
|
---|
[b8c2e380] | 107 | To test the results, issue: <command>LC_ALL=C.UTF-8 make check</command>.
|
---|
[5b38e37] | 108 | </para>
|
---|
[b88be39] | 109 |
|
---|
[5b38e37] | 110 | <para>
|
---|
| 111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 112 | </para>
|
---|
[57f7cfa] | 113 |
|
---|
| 114 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 115 |
|
---|
[40a4d44] | 116 | </sect2>
|
---|
[0d7900a] | 117 |
|
---|
[5b38e37] | 118 | <sect2 role="commands">
|
---|
[40a4d44] | 119 | <title>Command Explanations</title>
|
---|
| 120 |
|
---|
[5b38e37] | 121 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 122 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 123 |
|
---|
[6cfc907a] | 124 | <!-- https://github.com/libarchive/libarchive/issues/2146 -->
|
---|
[9efe5ae3] | 125 | <para>
|
---|
[6cfc907a] | 126 | <parameter>--without-expat</parameter>: This switch disables using
|
---|
| 127 | expat for xar format support. Due to a bug the xar reader will loop
|
---|
| 128 | infinitely if expat is used. The upstream prefers libxml2 for xar
|
---|
| 129 | support anyway.
|
---|
| 130 | </para>
|
---|
| 131 | <!--
|
---|
| 132 | <para>
|
---|
| 133 | <option>- -without-xml2</option>: This switch sets expat for xar archive
|
---|
[9efe5ae3] | 134 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 135 | </para>
|
---|
[6cfc907a] | 136 | -->
|
---|
[9efe5ae3] | 137 | <para>
|
---|
| 138 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 139 | support instead of preferred Nettle if both packages are installed.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
[57f7cfa] | 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
[fd27868] | 148 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 149 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 150 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 151 |
|
---|
| 152 | <seglistitem>
|
---|
[5b38e37] | 153 | <seg>
|
---|
[587231b3] | 154 | bsdcat, bsdcpio, bsdtar, and bsdunzip
|
---|
[5b38e37] | 155 | </seg>
|
---|
| 156 | <seg>
|
---|
| 157 | libarchive.so
|
---|
| 158 | </seg>
|
---|
| 159 | <seg>
|
---|
| 160 | None
|
---|
| 161 | </seg>
|
---|
[57f7cfa] | 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 |
|
---|
[fdbead3] | 170 | <varlistentry id="bsdcat">
|
---|
| 171 | <term><command>bsdcat</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>
|
---|
[4c24eb0a] | 174 | expands files to standard output
|
---|
[fdbead3] | 175 | </para>
|
---|
| 176 | <indexterm zone="libarchive bsdcat">
|
---|
| 177 | <primary sortas="b-bsdcat">bsdcat</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
[57f7cfa] | 182 | <varlistentry id="bsdcpio">
|
---|
| 183 | <term><command>bsdcpio</command></term>
|
---|
| 184 | <listitem>
|
---|
[5b38e37] | 185 | <para>
|
---|
[4c24eb0a] | 186 | is a tool similar to <command>cpio</command>
|
---|
[5b38e37] | 187 | </para>
|
---|
[57f7cfa] | 188 | <indexterm zone="libarchive bsdcpio">
|
---|
| 189 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
[40a4d44] | 194 | <varlistentry id="bsdtar">
|
---|
| 195 | <term><command>bsdtar</command></term>
|
---|
| 196 | <listitem>
|
---|
[5b38e37] | 197 | <para>
|
---|
[4c24eb0a] | 198 | is a tool similar to GNU <command>tar</command>
|
---|
[5b38e37] | 199 | </para>
|
---|
[40a4d44] | 200 | <indexterm zone="libarchive bsdtar">
|
---|
| 201 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
[0d7900a] | 205 |
|
---|
[587231b3] | 206 | <varlistentry id="bsdunzip">
|
---|
| 207 | <term><command>bsdunzip</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>
|
---|
| 210 | is a tool similar to Info-ZIP <command>unzip</command>
|
---|
| 211 | </para>
|
---|
| 212 | <indexterm zone="libarchive bsdunzip">
|
---|
| 213 | <primary sortas="b-bsdunzip">bsdunzip</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
[5b38e37] | 218 | <varlistentry id="libarchive-lib">
|
---|
| 219 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
| 222 | is a library that can create and read several streaming
|
---|
[4c24eb0a] | 223 | archive formats
|
---|
[5b38e37] | 224 | </para>
|
---|
| 225 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 226 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
[57f7cfa] | 231 | </variablelist>
|
---|
| 232 |
|
---|
| 233 | </sect2>
|
---|
| 234 |
|
---|
| 235 | </sect1>
|
---|