[57f7cfa] | 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 |
|
---|
[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 " ">
|
---|
[ac451b9] | 9 | <!ENTITY libarchive-md5sum "93f96acdb9e7277278edb154e5d76e49">
|
---|
| 10 | <!ENTITY libarchive-size "6.1 MB">
|
---|
| 11 | <!ENTITY libarchive-buildsize "42 MB (add 30 MB for tests)">
|
---|
| 12 | <!ENTITY libarchive-time "0.3 SBU (add 0.8 SBU for tests)">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libarchive" xreflabel="libarchive-&libarchive-version;">
|
---|
| 16 | <?dbhtml filename="libarchive.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>libarchive-&libarchive-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="libarchive">
|
---|
| 25 | <primary sortas="a-libarchive">libarchive</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to libarchive</title>
|
---|
| 30 |
|
---|
[5b38e37] | 31 | <para>
|
---|
| 32 | The <application>libarchive</application> library provides a single
|
---|
| 33 | interface for reading/writing various compression formats.
|
---|
| 34 | </para>
|
---|
[57f7cfa] | 35 |
|
---|
[453910f] | 36 | &lfs111_checked;
|
---|
[57f7cfa] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[5b38e37] | 41 | <para>
|
---|
[56605b9] | 42 | Download (HTTP): <ulink url="&libarchive-download-http;"/>
|
---|
| 43 | </para>
|
---|
[57f7cfa] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[5b38e37] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&libarchive-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[57f7cfa] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[5b38e37] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &libarchive-md5sum;
|
---|
| 53 | </para>
|
---|
[57f7cfa] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[5b38e37] | 56 | <para>
|
---|
| 57 | Download size: &libarchive-size;
|
---|
| 58 | </para>
|
---|
[57f7cfa] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[5b38e37] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &libarchive-buildsize;
|
---|
| 63 | </para>
|
---|
[57f7cfa] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[5b38e37] | 66 | <para>
|
---|
| 67 | Estimated build time: &libarchive-time;
|
---|
| 68 | </para>
|
---|
[57f7cfa] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[297b344] | 72 | <!--
|
---|
[eeaa41b7] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Required patch:
|
---|
| 78 | <ulink url="&patch-root;/libarchive-&libarchive-version;-testsuite_fix-1.patch"/>
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
[297b344] | 82 | -->
|
---|
[57f7cfa] | 83 | <bridgehead renderas="sect3">libarchive Dependencies</bridgehead>
|
---|
| 84 |
|
---|
[af822af] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[56605b9] | 87 | <xref linkend="libxml2"/>,
|
---|
[bc0d10e] | 88 | <xref linkend="lzo"/>, and
|
---|
| 89 | <xref linkend="nettle"/>
|
---|
| 90 | <!-- <ulink url="https://facebook.github.io/zstd/">zstd</ulink> Now in LFS -->
|
---|
[57f7cfa] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para condition="html" role="usernotes">User Notes:
|
---|
[5b38e37] | 94 | <ulink url="&blfs-wiki;/libarchive"/>
|
---|
| 95 | </para>
|
---|
[57f7cfa] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
| 99 | <title>Installation of libarchive</title>
|
---|
| 100 |
|
---|
[297b344] | 101 | <!--
|
---|
[eeaa41b7] | 102 | <para>
|
---|
| 103 | First, adapt the test suite to changes in glibc-2.32:
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <screen><userinput remap="pre">patch -Np1 -i ../libarchive-&libarchive-version;-testsuite_fix-1.patch</userinput></screen>
|
---|
[297b344] | 107 | -->
|
---|
[a168f375] | 108 |
|
---|
[d6fb457] | 109 | <para>
|
---|
| 110 | First, fix a bug caused by a behavior change in OpenSSL-3:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <screen><userinput remap="pre">sed -i '436a if ((OSSL_PROVIDER_load(NULL, "legacy")) == NULL) \
|
---|
| 114 | return (ARCHIVE_FAILED);' libarchive/archive_digest.c</userinput></screen>
|
---|
[a168f375] | 115 |
|
---|
[5b38e37] | 116 | <para>
|
---|
| 117 | Install <application>libarchive</application> by running the following
|
---|
| 118 | commands:
|
---|
| 119 | </para>
|
---|
[57f7cfa] | 120 |
|
---|
[4dd2e4c] | 121 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[57f7cfa] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[5b38e37] | 124 | <para>
|
---|
[d2812732] | 125 | To test the results, issue: <command>LC_ALL=C make check</command>.
|
---|
[5b38e37] | 126 | </para>
|
---|
[b88be39] | 127 |
|
---|
[5b38e37] | 128 | <para>
|
---|
| 129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 130 | </para>
|
---|
[57f7cfa] | 131 |
|
---|
| 132 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 133 |
|
---|
[40a4d44] | 134 | </sect2>
|
---|
[0d7900a] | 135 |
|
---|
[5b38e37] | 136 | <sect2 role="commands">
|
---|
[40a4d44] | 137 | <title>Command Explanations</title>
|
---|
| 138 |
|
---|
[5b38e37] | 139 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 140 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 141 |
|
---|
[9efe5ae] | 142 | <para>
|
---|
| 143 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
| 144 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
| 148 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 149 | support instead of preferred Nettle if both packages are installed.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
[57f7cfa] | 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="content">
|
---|
| 155 | <title>Contents</title>
|
---|
| 156 |
|
---|
| 157 | <segmentedlist>
|
---|
[fd27868] | 158 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 159 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 160 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 161 |
|
---|
| 162 | <seglistitem>
|
---|
[5b38e37] | 163 | <seg>
|
---|
[fdbead3] | 164 | bsdcat, bsdcpio, and bsdtar
|
---|
[5b38e37] | 165 | </seg>
|
---|
| 166 | <seg>
|
---|
| 167 | libarchive.so
|
---|
| 168 | </seg>
|
---|
| 169 | <seg>
|
---|
| 170 | None
|
---|
| 171 | </seg>
|
---|
[57f7cfa] | 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
[fdbead3] | 180 | <varlistentry id="bsdcat">
|
---|
| 181 | <term><command>bsdcat</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>
|
---|
[4c24eb0a] | 184 | expands files to standard output
|
---|
[fdbead3] | 185 | </para>
|
---|
| 186 | <indexterm zone="libarchive bsdcat">
|
---|
| 187 | <primary sortas="b-bsdcat">bsdcat</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
[57f7cfa] | 192 | <varlistentry id="bsdcpio">
|
---|
| 193 | <term><command>bsdcpio</command></term>
|
---|
| 194 | <listitem>
|
---|
[5b38e37] | 195 | <para>
|
---|
[4c24eb0a] | 196 | is a tool similar to <command>cpio</command>
|
---|
[5b38e37] | 197 | </para>
|
---|
[57f7cfa] | 198 | <indexterm zone="libarchive bsdcpio">
|
---|
| 199 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
[40a4d44] | 204 | <varlistentry id="bsdtar">
|
---|
| 205 | <term><command>bsdtar</command></term>
|
---|
| 206 | <listitem>
|
---|
[5b38e37] | 207 | <para>
|
---|
[4c24eb0a] | 208 | is a tool similar to GNU <command>tar</command>
|
---|
[5b38e37] | 209 | </para>
|
---|
[40a4d44] | 210 | <indexterm zone="libarchive bsdtar">
|
---|
| 211 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[0d7900a] | 215 |
|
---|
[5b38e37] | 216 | <varlistentry id="libarchive-lib">
|
---|
| 217 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>
|
---|
| 220 | is a library that can create and read several streaming
|
---|
[4c24eb0a] | 221 | archive formats
|
---|
[5b38e37] | 222 | </para>
|
---|
| 223 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 224 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
[57f7cfa] | 229 | </variablelist>
|
---|
| 230 |
|
---|
| 231 | </sect2>
|
---|
| 232 |
|
---|
| 233 | </sect1>
|
---|