[47d5a9e5] | 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 |
|
---|
[95bf71b] | 7 | <!ENTITY brotli-download-http "https://github.com/google/brotli/archive/v&brotli-version;/brotli-&brotli-version;.tar.gz">
|
---|
[47d5a9e5] | 8 | <!ENTITY brotli-download-ftp " ">
|
---|
[2e18e741] | 9 | <!ENTITY brotli-md5sum "c2274f0c7af8470ad514637c35bcee7d">
|
---|
| 10 | <!ENTITY brotli-size "476 KB">
|
---|
| 11 | <!ENTITY brotli-buildsize "24 MB (with python3 bindings)">
|
---|
[8965351] | 12 | <!-- The python tests for this package are broken. The tarball is missing a lot of test files -->
|
---|
[2e18e741] | 13 | <!ENTITY brotli-time "0.4 SBU (with python3 bindings)">
|
---|
[47d5a9e5] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="brotli" xreflabel="Brotli-&brotli-version;">
|
---|
| 17 | <?dbhtml filename="brotli.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[d7189a1c] | 23 | <title>brotli-&brotli-version;</title>
|
---|
[47d5a9e5] | 24 |
|
---|
| 25 | <indexterm zone="brotli">
|
---|
| 26 | <primary sortas="a-brotli">Brotli</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Brotli</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>Brotli</application> provides a general-purpose lossless
|
---|
| 34 | compression algorithm that compresses data using a combination of a
|
---|
| 35 | modern variant of the LZ77 algorithm, Huffman coding and 2nd order
|
---|
| 36 | context modeling. Its libraries are particularly used for WOFF2 fonts
|
---|
| 37 | on webpages.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[aa0b625] | 40 | &lfs112_checked;
|
---|
[47d5a9e5] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&brotli-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&brotli-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &brotli-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &brotli-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &brotli-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &brotli-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[2e18e741] | 75 |
|
---|
[47d5a9e5] | 76 | <bridgehead renderas="sect3">Brotli Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
| 80 | <xref linkend="cmake"/>
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
[79758477] | 83 | <!-- Brotli doesn't have any lua bindings, at least not with 1.0.7.
|
---|
| 84 | Do not advertise python2 as python3 should be used instead
|
---|
[47d5a9e5] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[79758477] | 87 | <xref linkend="lua"/> (to create Lua bindings) and
|
---|
[822c1eb5] | 88 | <xref linkend="python2"/> (to create python2 bindings)
|
---|
[47d5a9e5] | 89 | </para>
|
---|
[79758477] | 90 | -->
|
---|
[47d5a9e5] | 91 | <para condition="html" role="usernotes">
|
---|
| 92 | User Notes: <ulink url="&blfs-wiki;/brotli"/>
|
---|
| 93 | </para>
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of Brotli</title>
|
---|
| 99 |
|
---|
[29f8265f] | 100 | <para>
|
---|
| 101 | At first, fix an issue in pkg-config files:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
[bfd20b5b] | 104 | <screen><userinput>sed -i 's@-R..libdir.@@' scripts/*.pc.in</userinput></screen>
|
---|
[29f8265f] | 105 |
|
---|
[47d5a9e5] | 106 | <para>
|
---|
| 107 | Install <application>brotli</application> by running the following
|
---|
| 108 | commands:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen><userinput>mkdir out &&
|
---|
[6a720e7] | 112 | cd out &&
|
---|
[47d5a9e5] | 113 |
|
---|
| 114 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 115 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 116 | .. &&
|
---|
| 117 | make</userinput></screen>
|
---|
| 118 |
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
[2754eaf] | 121 | To test the results, issue: <command>make test</command>.
|
---|
[47d5a9e5] | 122 | </para>
|
---|
| 123 |
|
---|
[1fe05eb] | 124 | <!-- These are broken
|
---|
[47d5a9e5] | 125 | <para>
|
---|
[8965351] | 126 | The python tests are missing most of the necessary testdata files and
|
---|
| 127 | therefore 240 of 311 tests fail.
|
---|
| 128 | If you nevertheless wish to test the bindings, go back to the top-level directory and
|
---|
[822c1eb5] | 129 | issue: <command>python3 setup.py test</command>.
|
---|
[47d5a9e5] | 130 | </para>
|
---|
[caee73e9] | 131 | -->
|
---|
[47d5a9e5] | 132 | <para>
|
---|
| 133 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <screen role="root"><userinput>make install &&
|
---|
| 137 | cd ..</userinput></screen>
|
---|
| 138 |
|
---|
[caee73e9] | 139 | <para>
|
---|
| 140 | If desired, build and install the <application>Python3</application>
|
---|
| 141 | bindings as the &root; user:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
[63413bc] | 144 | <screen role="root"><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD &&
|
---|
[5ff8c3a] | 145 | pip3 install --no-index --find-links dist --no-cache-dir --no-user Brotli</userinput></screen>
|
---|
[47d5a9e5] | 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="content">
|
---|
| 150 | <title>Contents</title>
|
---|
| 151 |
|
---|
| 152 | <segmentedlist>
|
---|
| 153 | <segtitle>Installed Programs</segtitle>
|
---|
| 154 | <segtitle>Installed Libraries</segtitle>
|
---|
| 155 | <segtitle>Installed Directory</segtitle>
|
---|
| 156 |
|
---|
| 157 | <seglistitem>
|
---|
| 158 | <seg>
|
---|
[822c1eb5] | 159 | brotli
|
---|
[47d5a9e5] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
[8558044] | 162 | libbrotlicommon{-static.a,.so},
|
---|
[51718d1] | 163 | libbrotlidec{,-static.a,.so}, and
|
---|
| 164 | libbrotlienc{,-static.a,.so}
|
---|
[47d5a9e5] | 165 | </seg>
|
---|
| 166 | <seg>
|
---|
| 167 | /usr/include/brotli
|
---|
[3f04503] | 168 | /usr/lib/python3.10/site-packages/Brotli-&brotli-version;.dist-info
|
---|
[47d5a9e5] | 169 | </seg>
|
---|
| 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="brotli-prog">
|
---|
| 179 | <term><command>brotli</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>
|
---|
| 182 | can compress or decompress files, or test the integrity of
|
---|
[4c24eb0a] | 183 | compressed files
|
---|
[47d5a9e5] | 184 | </para>
|
---|
| 185 | <indexterm zone="brotli brotli-prog">
|
---|
| 186 | <primary sortas="b-brotli">brotli</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | <varlistentry id="libbrotlicommon">
|
---|
| 192 | <term><filename class="libraryfile">libbrotlicommon{-static.a,.so}</filename></term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>
|
---|
[4c24eb0a] | 195 | is the Brotli common dictionary library
|
---|
[47d5a9e5] | 196 | </para>
|
---|
| 197 | <indexterm zone="brotli libbrotlicommon">
|
---|
| 198 | <primary sortas="c-libbrotlicommon">libbrotlicommon{,-static.a,.so}</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="libbrotlidec">
|
---|
| 204 | <term><filename class="libraryfile">libbrotlidec{-static.a,.so}</filename></term>
|
---|
| 205 | <listitem>
|
---|
| 206 | <para>
|
---|
[4c24eb0a] | 207 | is the Brotli decoder library
|
---|
[47d5a9e5] | 208 | </para>
|
---|
| 209 | <indexterm zone="brotli libbrotlidec">
|
---|
| 210 | <primary sortas="c-libbrotlidec">libbrotlidec{,-static.a,.so}</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="libbrotlienc">
|
---|
| 216 | <term><filename class="libraryfile">libbrotlienc{-static.a,.so}</filename></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>
|
---|
[4c24eb0a] | 219 | is the Brotli common encoder library
|
---|
[47d5a9e5] | 220 | </para>
|
---|
| 221 | <indexterm zone="brotli libbrotlienc">
|
---|
| 222 | <primary sortas="c-libbrotlienc">libbrotlienc{,-static.a,.so}</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 | </variablelist>
|
---|
| 227 |
|
---|
| 228 | </sect2>
|
---|
[4c24eb0a] | 229 |
|
---|
[47d5a9e5] | 230 | </sect1>
|
---|