[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 " ">
|
---|
[cc519e4] | 9 | <!ENTITY libarchive-md5sum "9465f7995649c9ea84854a7fd8c76f30">
|
---|
| 10 | <!ENTITY libarchive-size "5.0 MB">
|
---|
| 11 | <!ENTITY libarchive-buildsize "41 MB (add 29 MB for tests)">
|
---|
| 12 | <!ENTITY libarchive-time "0.3 SBU (add 0.7 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 |
|
---|
[046d740] | 36 | &lfs112_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;"/>
|
---|
[046d740] | 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 |
|
---|
[59f9007] | 101 |
|
---|
[eeaa41b7] | 102 | <para>
|
---|
[59f9007] | 103 | First, adapt the package to changes in glibc-2.36:
|
---|
[eeaa41b7] | 104 | </para>
|
---|
| 105 |
|
---|
[59f9007] | 106 | <screen><userinput remap="pre">sed '/linux\/fs\.h/d' -i libarchive/archive_read_disk_posix.c</userinput></screen>
|
---|
| 107 |
|
---|
[a168f375] | 108 |
|
---|
[5b38e37] | 109 | <para>
|
---|
| 110 | Install <application>libarchive</application> by running the following
|
---|
| 111 | commands:
|
---|
| 112 | </para>
|
---|
[57f7cfa] | 113 |
|
---|
[4dd2e4c] | 114 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[57f7cfa] | 115 | make</userinput></screen>
|
---|
| 116 |
|
---|
[5b38e37] | 117 | <para>
|
---|
[d2812732] | 118 | To test the results, issue: <command>LC_ALL=C make check</command>.
|
---|
[5b38e37] | 119 | </para>
|
---|
[b88be39] | 120 |
|
---|
[5b38e37] | 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
[57f7cfa] | 124 |
|
---|
| 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 126 |
|
---|
[40a4d44] | 127 | </sect2>
|
---|
[0d7900a] | 128 |
|
---|
[5b38e37] | 129 | <sect2 role="commands">
|
---|
[40a4d44] | 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[5b38e37] | 132 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 133 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 134 |
|
---|
[9efe5ae3] | 135 | <para>
|
---|
| 136 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
| 137 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 142 | support instead of preferred Nettle if both packages are installed.
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
[57f7cfa] | 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <segmentedlist>
|
---|
[fd27868] | 151 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 152 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 153 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 154 |
|
---|
| 155 | <seglistitem>
|
---|
[5b38e37] | 156 | <seg>
|
---|
[fdbead3] | 157 | bsdcat, bsdcpio, and bsdtar
|
---|
[5b38e37] | 158 | </seg>
|
---|
| 159 | <seg>
|
---|
| 160 | libarchive.so
|
---|
| 161 | </seg>
|
---|
| 162 | <seg>
|
---|
| 163 | None
|
---|
| 164 | </seg>
|
---|
[57f7cfa] | 165 | </seglistitem>
|
---|
| 166 | </segmentedlist>
|
---|
| 167 |
|
---|
| 168 | <variablelist>
|
---|
| 169 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 170 | <?dbfo list-presentation="list"?>
|
---|
| 171 | <?dbhtml list-presentation="table"?>
|
---|
| 172 |
|
---|
[fdbead3] | 173 | <varlistentry id="bsdcat">
|
---|
| 174 | <term><command>bsdcat</command></term>
|
---|
| 175 | <listitem>
|
---|
| 176 | <para>
|
---|
[4c24eb0a] | 177 | expands files to standard output
|
---|
[fdbead3] | 178 | </para>
|
---|
| 179 | <indexterm zone="libarchive bsdcat">
|
---|
| 180 | <primary sortas="b-bsdcat">bsdcat</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[57f7cfa] | 185 | <varlistentry id="bsdcpio">
|
---|
| 186 | <term><command>bsdcpio</command></term>
|
---|
| 187 | <listitem>
|
---|
[5b38e37] | 188 | <para>
|
---|
[4c24eb0a] | 189 | is a tool similar to <command>cpio</command>
|
---|
[5b38e37] | 190 | </para>
|
---|
[57f7cfa] | 191 | <indexterm zone="libarchive bsdcpio">
|
---|
| 192 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
[40a4d44] | 197 | <varlistentry id="bsdtar">
|
---|
| 198 | <term><command>bsdtar</command></term>
|
---|
| 199 | <listitem>
|
---|
[5b38e37] | 200 | <para>
|
---|
[4c24eb0a] | 201 | is a tool similar to GNU <command>tar</command>
|
---|
[5b38e37] | 202 | </para>
|
---|
[40a4d44] | 203 | <indexterm zone="libarchive bsdtar">
|
---|
| 204 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
[0d7900a] | 208 |
|
---|
[5b38e37] | 209 | <varlistentry id="libarchive-lib">
|
---|
| 210 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>
|
---|
| 213 | is a library that can create and read several streaming
|
---|
[4c24eb0a] | 214 | archive formats
|
---|
[5b38e37] | 215 | </para>
|
---|
| 216 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 217 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
[57f7cfa] | 222 | </variablelist>
|
---|
| 223 |
|
---|
| 224 | </sect2>
|
---|
| 225 |
|
---|
| 226 | </sect1>
|
---|