source: multimedia/libdriv/libvpx.xml@ 3e86dee

lazarus
Last change on this file since 3e86dee was e7f1099, checked in by Xi Ruoyao <xry111@…>, 13 months ago

libvpx: Fix CVE-2023-5217

  • Property mode set to 100644
File size: 6.7 KB
RevLine 
[1fb813d]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
[fc8a910]7 <!ENTITY libvpx-download-http "https://github.com/webmproject/libvpx/archive/v&libvpx-version;/libvpx-&libvpx-version;.tar.gz">
[13bd274]8 <!ENTITY libvpx-download-ftp " ">
[f719350]9 <!ENTITY libvpx-md5sum "d5fd45a806a65a57d6635f9e7a98a1b2">
[2e0fbc6]10 <!ENTITY libvpx-size "5.2 MB">
[f719350]11 <!ENTITY libvpx-buildsize "63 MB (add 1.5 GB for tests)">
12 <!ENTITY libvpx-time "0.5 SBU (Using parallelism=4; add approx 15 SBU for tests using parallelism=4, including download time)">
[1fb813d]13]>
14
[14897252]15<sect1 id="libvpx" xreflabel="libvpx-&libvpx-version;">
[1fb813d]16 <?dbhtml filename="libvpx.html"?>
17
18
[e04cfef]19 <title>libvpx-&libvpx-version;</title>
[1fb813d]20
21 <indexterm zone="libvpx">
22 <primary sortas="a-libvpx">libvpx</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libvpx</title>
27
[2eeb8695]28 <para>
29 This package, from the WebM project, provides the reference
30 implementations of the VP8 Codec, used in most current html5 video,
31 and of the next-generation VP9 Codec.
32 </para>
[1fb813d]33
[332bad2a]34 &lfs120_checked;
[1fb813d]35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[2eeb8695]39 <para>
40 Download (HTTP): <ulink url="&libvpx-download-http;"/>
41 </para>
[1fb813d]42 </listitem>
43 <listitem>
[2eeb8695]44 <para>
45 Download (FTP): <ulink url="&libvpx-download-ftp;"/>
46 </para>
[1fb813d]47 </listitem>
48 <listitem>
[2eeb8695]49 <para>
50 Download MD5 sum: &libvpx-md5sum;
51 </para>
[1fb813d]52 </listitem>
53 <listitem>
[2eeb8695]54 <para>
55 Download size: &libvpx-size;
56 </para>
[1fb813d]57 </listitem>
58 <listitem>
[2eeb8695]59 <para>
60 Estimated disk space required: &libvpx-buildsize;
61 </para>
[1fb813d]62 </listitem>
63 <listitem>
[2eeb8695]64 <para>
65 Estimated build time: &libvpx-time;
66 </para>
[1fb813d]67 </listitem>
68 </itemizedlist>
69
[e7f1099]70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>
74 Required patch:
75 <ulink url="&patch-root;/libvpx-&libvpx-version;-security_fix-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
79
[1fb813d]80 <bridgehead renderas="sect3">libvpx Dependencies</bridgehead>
81
[431d921]82 <bridgehead renderas="sect4">Recommended</bridgehead>
83 <para role="recommended">
[8558044]84 <xref linkend="yasm"/> or <xref role="nodep" linkend="nasm"/>, and
[f95e57bf]85 <xref linkend="which"/> (so <command>configure</command> can find yasm)
86 </para>
[793932fd]87
[1fb813d]88 <bridgehead renderas="sect4">Optional</bridgehead>
[e915fec]89 <para role="optional">
[8558044]90 <xref linkend="curl"/> (to download test files) and
[37ede2a]91 <xref linkend="doxygen"/> (to build documentation)
[e915fec]92 </para>
[1fb813d]93
[afb71d0a]94 &test-use-internet;
95
[1fb813d]96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of libvpx</title>
100
[e7f1099]101 <para>
102 Apply a patch to fix a security vulnerability:
103 </para>
104
105<screen><userinput>patch -Np1 -i ../libvpx-&libvpx-version;-security_fix-1.patch</userinput></screen>
106
[2eeb8695]107 <para>
108 Install <application>libvpx</application> by running the
109 following commands:
110 </para>
[1fb813d]111
[71b2520e]112<screen><userinput>sed -i 's/cp -p/cp/' build/make/Makefile &amp;&amp;
[e04cfef]113
[71b2520e]114mkdir libvpx-build &amp;&amp;
115cd libvpx-build &amp;&amp;
[e04cfef]116
[71b2520e]117../configure --prefix=/usr \
118 --enable-shared \
119 --disable-static &amp;&amp;
[1fb813d]120make</userinput></screen>
121
[2eeb8695]122 <para>
[37ede2a]123 To test the results, issue:
124 <command>LD_LIBRARY_PATH=. make test</command>.
[2e0fbc6]125 The test suite downloads many files as part of its test process.
[f719350]126 A few parts of it will use all available cores.
[2eeb8695]127 </para>
[1fb813d]128
[2eeb8695]129 <para>
[37ede2a]130 Now, as the <systemitem class="username">root</systemitem> user:
[2eeb8695]131 </para>
[1fb813d]132
133<screen role="root"><userinput>make install</userinput></screen>
134
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
[2eeb8695]140 <para>
141 <command>sed ... </command>: This command
142 corrects ownership and permissions of installed files.
143 </para>
[b63e0be1]144
[2eeb8695]145 <para>
146 <command>mkdir libvpx-build &amp;&amp; cd libvpx-build</command>:
147 The <application>libvpx</application> developers
148 recommend building in a dedicated build directory.
149 </para>
[0d7900a]150
[f719350]151 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
152 href="../../xincludes/static-libraries.xml"/>
153
[2eeb8695]154 <para>
155 <option>--disable-vp8</option>: This switch prevents building of VP8
156 codec support.
157 </para>
[6c52b1a]158
[2eeb8695]159 <para>
160 <option>--disable-vp9</option>: This switch prevents building of VP9
161 codec support.
162 </para>
[6c52b1a]163
[431d921]164 <para>
165 <option>--target=generic-gnu</option>: This switch disables
166 optimizations specific for x86 and x86-64, allowing to build this
167 package without <command>nasm</command> and <command>yasm</command>
168 installed.
169 </para>
170
[37ede2a]171 <para>
[48771ae]172 <command>LD_LIBRARY_PATH=.</command>: This is needed for the test suite
[6700d12]173 to use the library that was just built.
[37ede2a]174 </para>
175
[1fb813d]176 </sect2>
177
178 <sect2 role="content">
179 <title>Contents</title>
180
181 <segmentedlist>
182 <segtitle>Installed Programs</segtitle>
[5aac2b97]183 <segtitle>Installed Libraries</segtitle>
[1fb813d]184 <segtitle>Installed Directories</segtitle>
185
186 <seglistitem>
[e04cfef]187 <seg>vpxdec and vpxenc</seg>
[5aac2b97]188 <seg>libvpx.so</seg>
[1fb813d]189 <seg>/usr/include/vpx</seg>
190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="vpxdec">
199 <term><command>vpxdec</command></term>
200 <listitem>
[2eeb8695]201 <para>
[4c24eb0a]202 is the WebM Project VP8 and VP9 decoder
[2eeb8695]203 </para>
[1fb813d]204 <indexterm zone="libvpx vpxdec">
205 <primary sortas="b-vpxdec">vpxdec</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="vpxenc">
211 <term><command>vpxenc</command></term>
212 <listitem>
[2eeb8695]213 <para>
[4c24eb0a]214 is the WebM project VP8 and VP9 encoder
[2eeb8695]215 </para>
[1fb813d]216 <indexterm zone="libvpx vpxenc">
217 <primary sortas="b-vpxenc">vpxenc</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="libvpx-lib">
[4c24eb0a]223 <term><filename class="libraryfile">libvpx.so</filename></term>
[1fb813d]224 <listitem>
[2eeb8695]225 <para>
[4c24eb0a]226 provides functions to use the VP8 and VP9 video codecs
[2eeb8695]227 </para>
[1fb813d]228 <indexterm zone="libvpx libvpx-lib">
[e114b7b9]229 <primary sortas="c-libvpx">libvpx.so</primary>
[1fb813d]230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 </variablelist>
235
236 </sect2>
237
238</sect1>
Note: See TracBrowser for help on using the repository browser.