1 |
commit: 1b4cb637ee61d9f5bd51eaebc890bb04dbd38e03 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 30 10:10:59 2016 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 10:10:59 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4cb637 |
7 |
|
8 |
media-video/libav: cleanup vulnerable version per security bug #531832 |
9 |
|
10 |
media-video/libav/Manifest | 1 - |
11 |
media-video/libav/libav-9.14.ebuild | 323 ------------------------------------ |
12 |
2 files changed, 324 deletions(-) |
13 |
|
14 |
diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest |
15 |
index 4c093c0..bc97847 100644 |
16 |
--- a/media-video/libav/Manifest |
17 |
+++ b/media-video/libav/Manifest |
18 |
@@ -7,5 +7,4 @@ DIST libav-11.4.tar.xz 4860264 SHA256 0b7dabc2605f3a254ee410bb4b1a857945696aab49 |
19 |
DIST libav-11.6.tar.xz 4860268 SHA256 542f30e4266d2d2226e681b888bc718c995f5438f2db66a9a27d581243d27aed SHA512 bff3e22de93e4ab357715ae20e25b6435df52d1868c5164426a693d14fe7f54e47a46c4c62a36fbf27bd204e12f6a29a6f58016c7deaa838915d424b5ce530bd WHIRLPOOL 060bd61e784112a56e02ba86d0901ff488d6ef1735d731a869c68a27da72a209734648148edf9922efe2d15fed3380c36129a92c6917af812bf9e606ef97c131 |
20 |
DIST libav-11.7.tar.xz 4861984 SHA256 8c9a75c89c6df58dd5e3f6f735d1ba5448680e23013fd66a51b50b4f49913c46 SHA512 23c6ffd0efdfa6b22c7863bf440d7469eba03a7990382fe33c8c4c7871edf250641ac536572516225679b0934e5c250ee0e2e91ea093c770a0c4c32b4776e3c5 WHIRLPOOL adb106828ae1e3c802b719a5c9feede1c96d02d79512bf04e2bf29da3d24e969a044a887eeb94dc76d528582026aed6cb1e0e342115507aaa98a8918de358ecd |
21 |
DIST libav-12_pre20160529.tar.xz 5238532 SHA256 e12f2c1c737a990e277ec0e78673c971962036374b4e53eddb3c1b417e2672fe SHA512 bcfebbed8b4f65526cb9bea3535a04a99891e89a8dcbe544fa104895558b043848f4521949220ac31210b59441ec280aaa7ec7e9138ccba1e0ab0357805f5d87 WHIRLPOOL d35b7df7b023e4c37115ff196f6ac031662c1fa92c1880ac40a88fe0db02ce606dff807baa1c42422c3512060673262748a93bd577b20510f4538c376f1da77c |
22 |
-DIST libav-9.14.tar.xz 4077424 SHA256 e4baf0c2adbd941a827854794dd6af9c29cd2042b23501c5828e9b8e1725f61d SHA512 fa8e83cb92a5a565cd23c63467c64972a69a4cbd652b946c7891b73180b609890f67a6f89f009ed263fb9e2c769236f3a8f7f70b0fce4c4373fa93a49470c04d WHIRLPOOL 178ba6c6ad0ecd8ad59eb3bf7a0d4289a3c253d82981cf3ad454e3b222848ae4f875e37cfd280be43faa25a9614c445106555c9f3b5ee4497aec9d71f39ac1af |
23 |
DIST libav-9.17.tar.xz 4080028 SHA256 e32d5f152bce1de283c002a35eb6e71f265877633dee8a40db4d16381dd5d17c SHA512 20af83d4b6a23c159c2386b6592ba6a6acf3f2c54e8aeb16dd0c8a64d637fbde24f37b864698b1143c6802b64a7b5e8ddfe0e7601b35c35686a789e2b3232f5a WHIRLPOOL ec07b5dd116e87416a9841044e09a6ef9b124fe4882f53e88711a32813d3d3a1d71f5067854bbd553ecdadec401dbbb8b504bfc1c6966bfd5e2db79459fb9995 |
24 |
|
25 |
diff --git a/media-video/libav/libav-9.14.ebuild b/media-video/libav/libav-9.14.ebuild |
26 |
deleted file mode 100644 |
27 |
index c0f4a4e..0000000 |
28 |
--- a/media-video/libav/libav-9.14.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,323 +0,0 @@ |
31 |
-# Copyright 1999-2015 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Id$ |
34 |
- |
35 |
-EAPI=5 |
36 |
- |
37 |
-if [[ ${PV} == *9999 ]] ; then |
38 |
- SCM="git-2" |
39 |
- EGIT_REPO_URI="git://git.libav.org/libav.git" |
40 |
- [[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}" |
41 |
-fi |
42 |
- |
43 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
44 |
- |
45 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video" |
46 |
-HOMEPAGE="http://libav.org/" |
47 |
-if [[ ${PV} == *9999 ]] ; then |
48 |
- SRC_URI="" |
49 |
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
50 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" |
51 |
-else # Official release |
52 |
- SRC_URI="http://${PN}.org/releases/${P}.tar.xz" |
53 |
-fi |
54 |
- |
55 |
-SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-9.tar.xz )" |
56 |
- |
57 |
-LICENSE="LGPL-2.1 gpl? ( GPL-3 )" |
58 |
-SLOT="0/9" |
59 |
- |
60 |
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061 |
61 |
-[[ ${PV} == *9999 ]] || \ |
62 |
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
63 |
- |
64 |
-IUSE="aac alsa amr +bzip2 cdio cpudetection custom-cflags debug doc +encode |
65 |
- faac fdk frei0r +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k mp3 |
66 |
- +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl |
67 |
- static-libs test theora threads tools truetype v4l vaapi vdpau vorbis vpx X |
68 |
- x264 xvid +zlib" |
69 |
- |
70 |
-# String for CPU features in the useflag[:configure_option] form |
71 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
72 |
-CPU_FEATURES="cpu_flags_x86_3dnow:amd3dnow cpu_flags_x86_3dnowext:amd3dnowext altivec cpu_flags_x86_avx:avx cpu_flags_x86_mmx:mmx cpu_flags_x86_mmxext:mmxext neon cpu_flags_x86_ssse3:ssse3 vis" |
73 |
-for i in ${CPU_FEATURES} ; do |
74 |
- IUSE+=" ${i%:*}" |
75 |
-done |
76 |
- |
77 |
-RDEPEND=" |
78 |
- !media-video/ffmpeg:0 |
79 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
80 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
81 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
82 |
- cdio? ( |
83 |
- || ( |
84 |
- >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] |
85 |
- <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}] |
86 |
- ) |
87 |
- ) |
88 |
- encode? ( |
89 |
- aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
90 |
- amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
91 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
92 |
- fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
93 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
94 |
- theora? ( |
95 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
96 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
97 |
- ) |
98 |
- vorbis? ( |
99 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
100 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
101 |
- ) |
102 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
103 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
104 |
- ) |
105 |
- frei0r? ( media-plugins/frei0r-plugins ) |
106 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
107 |
- ieee1394? ( |
108 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
109 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
110 |
- ) |
111 |
- jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
112 |
- jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
113 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
114 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
115 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
116 |
- ssl? ( |
117 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) |
118 |
- !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
119 |
- ) |
120 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
121 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
122 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
123 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
124 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
125 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
126 |
- vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
127 |
- X? ( |
128 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
129 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
130 |
- >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
131 |
- ) |
132 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
133 |
-" |
134 |
- |
135 |
-DEPEND="${RDEPEND} |
136 |
- >=sys-devel/make-3.81 |
137 |
- doc? ( app-text/texi2html ) |
138 |
- ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
139 |
- cpu_flags_x86_mmx? ( dev-lang/yasm ) |
140 |
- rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
141 |
- schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
142 |
- ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
143 |
- test? ( sys-devel/bc ) |
144 |
- truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
145 |
- v4l? ( sys-kernel/linux-headers ) |
146 |
-" |
147 |
- |
148 |
-RDEPEND="${RDEPEND} |
149 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
150 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
151 |
- |
152 |
-# faac can't be binary distributed |
153 |
-# openssl support marked as nonfree |
154 |
-# faac and aac are concurent implementations |
155 |
-# amr and aac require at least lgpl3 |
156 |
-# x264 requires gpl2 |
157 |
-REQUIRED_USE="rtmp? ( network ) |
158 |
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) |
159 |
- test? ( encode zlib ) |
160 |
-" |
161 |
-RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" |
162 |
- |
163 |
-MULTILIB_WRAPPED_HEADERS=( |
164 |
- /usr/include/libavutil/avconfig.h |
165 |
-) |
166 |
- |
167 |
-src_prepare() { |
168 |
- # if we have snapshot then we need to hardcode the version |
169 |
- if [[ ${PV%_p*} != ${PV} ]]; then |
170 |
- sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die |
171 |
- fi |
172 |
- |
173 |
- TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) |
174 |
- use zlib && TOOLS+=( cws2fws ) |
175 |
- |
176 |
- MAKEOPTS+=" V=1" |
177 |
-} |
178 |
- |
179 |
-multilib_src_configure() { |
180 |
- local myconf=( ${EXTRA_LIBAV_CONF} ) |
181 |
- local uses i |
182 |
- |
183 |
- myconf+=( |
184 |
- $(use_enable gpl) |
185 |
- $(use_enable gpl version3) |
186 |
- --enable-avfilter |
187 |
- ) |
188 |
- |
189 |
- # enabled by default |
190 |
- uses="debug doc network zlib" |
191 |
- for i in ${uses}; do |
192 |
- use ${i} || myconf+=( --disable-${i} ) |
193 |
- done |
194 |
- use bzip2 || myconf+=( --disable-bzlib ) |
195 |
- use sdl || myconf+=( --disable-avplay ) |
196 |
- |
197 |
- if use ssl; then |
198 |
- use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ |
199 |
- || myconf+=( --enable-gnutls ) |
200 |
- fi |
201 |
- |
202 |
- use custom-cflags && myconf+=( --disable-optimizations ) |
203 |
- use cpudetection && myconf+=( --enable-runtime-cpudetect ) |
204 |
- |
205 |
- use vdpau || myconf+=( --disable-vdpau ) |
206 |
- |
207 |
- use vaapi && myconf+=( --enable-vaapi ) |
208 |
- |
209 |
- # Encoders |
210 |
- if use encode; then |
211 |
- use faac && myconf+=( --enable-nonfree ) |
212 |
- use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) |
213 |
- use mp3 && myconf+=( --enable-libmp3lame ) |
214 |
- use amr && myconf+=( --enable-libvo-amrwbenc ) |
215 |
- use aac && myconf+=( --enable-libvo-aacenc ) |
216 |
- uses="faac theora vorbis x264 xvid" |
217 |
- for i in ${uses}; do |
218 |
- use ${i} && myconf+=( --enable-lib${i} ) |
219 |
- done |
220 |
- else |
221 |
- myconf+=( --disable-encoders ) |
222 |
- fi |
223 |
- |
224 |
- # libavdevice options |
225 |
- use cdio && myconf+=( --enable-libcdio ) |
226 |
- use ieee1394 && myconf+=( --enable-libdc1394 ) |
227 |
- use pulseaudio && myconf+=( --enable-libpulse ) |
228 |
- |
229 |
- # Indevs |
230 |
- # v4l1 is gone since linux-headers-2.6.38 |
231 |
- myconf+=( --disable-indev=v4l ) |
232 |
- use v4l || myconf+=( --disable-indev=v4l2 ) |
233 |
- for i in alsa oss jack; do |
234 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
235 |
- done |
236 |
- use X && myconf+=( --enable-x11grab ) |
237 |
- # Outdevs |
238 |
- for i in alsa oss ; do |
239 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
240 |
- done |
241 |
- # libavfilter options |
242 |
- multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) |
243 |
- use truetype && myconf+=( --enable-libfreetype ) |
244 |
- |
245 |
- # Threads; we only support pthread for now |
246 |
- use threads && myconf+=( --enable-pthreads ) |
247 |
- |
248 |
- # Decoders |
249 |
- use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) |
250 |
- uses="gsm opus rtmp schroedinger speex vpx" |
251 |
- for i in ${uses}; do |
252 |
- use ${i} && myconf+=( --enable-lib${i} ) |
253 |
- done |
254 |
- use jpeg2k && myconf+=( --enable-libopenjpeg ) |
255 |
- |
256 |
- # CPU features |
257 |
- for i in ${CPU_FEATURES}; do |
258 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
259 |
- done |
260 |
- |
261 |
- # pass the right -mfpu as extra |
262 |
- use neon && myconf+=( --extra-cflags=-mfpu=neon ) |
263 |
- |
264 |
- # disable mmx accelerated code if PIC is required |
265 |
- # as the provided asm decidedly is not PIC for x86. |
266 |
- if use pic && [[ ${ABI} == x86 ]] ; then |
267 |
- myconf+=( --disable-mmx --disable-mmxext ) |
268 |
- fi |
269 |
- |
270 |
- # Option to force building pic |
271 |
- use pic && myconf+=( --enable-pic ) |
272 |
- |
273 |
- # cross compile support |
274 |
- if tc-is-cross-compiler ; then |
275 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
276 |
- case ${CHOST} in |
277 |
- *freebsd*) |
278 |
- myconf+=( --target-os=freebsd ) |
279 |
- ;; |
280 |
- mingw32*) |
281 |
- myconf+=( --target-os=mingw32 ) |
282 |
- ;; |
283 |
- *linux*) |
284 |
- myconf+=( --target-os=linux ) |
285 |
- ;; |
286 |
- esac |
287 |
- fi |
288 |
- |
289 |
- # Misc stuff |
290 |
- use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) |
291 |
- |
292 |
- # Specific workarounds for too-few-registers arch... |
293 |
- if [[ ${ABI} == x86 ]]; then |
294 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
295 |
- filter-flags -fforce-addr -momit-leaf-frame-pointer |
296 |
- append-flags -fomit-frame-pointer |
297 |
- is-flag -O? || append-flags -O2 |
298 |
- if use debug; then |
299 |
- # no need to warn about debug if not using debug flag |
300 |
- ewarn "" |
301 |
- ewarn "Debug information will be almost useless as the frame pointer is omitted." |
302 |
- ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
303 |
- ewarn "difficult to fix. Please have that in mind." |
304 |
- ewarn "" |
305 |
- fi |
306 |
- fi |
307 |
- |
308 |
- set -- "${S}"/configure \ |
309 |
- --prefix="${EPREFIX}"/usr \ |
310 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
311 |
- --shlibdir="${EPREFIX}"/usr/$(get_libdir) \ |
312 |
- --mandir="${EPREFIX}"/usr/share/man \ |
313 |
- --enable-shared \ |
314 |
- --cc="$(tc-getCC)" \ |
315 |
- --ar="$(tc-getAR)" \ |
316 |
- --optflags="${CFLAGS}" \ |
317 |
- --extra-cflags="${CFLAGS}" \ |
318 |
- $(use_enable static-libs static) \ |
319 |
- "${myconf[@]}" |
320 |
- echo "${@}" |
321 |
- "${@}" || die |
322 |
-} |
323 |
- |
324 |
-multilib_src_compile() { |
325 |
- emake |
326 |
- |
327 |
- if multilib_is_native_abi && use tools; then |
328 |
- tc-export CC |
329 |
- |
330 |
- emake ${TOOLS[@]/#/tools/} |
331 |
- fi |
332 |
-} |
333 |
- |
334 |
-multilib_src_install() { |
335 |
- emake DESTDIR="${D}" install install-man |
336 |
- |
337 |
- use doc && dodoc doc/*.html |
338 |
- |
339 |
- if multilib_is_native_abi && use tools; then |
340 |
- dobin ${TOOLS[@]/#/tools/} |
341 |
- fi |
342 |
-} |
343 |
- |
344 |
-multilib_src_install_all() { |
345 |
- dodoc Changelog README INSTALL |
346 |
- dodoc doc/*.txt |
347 |
-} |
348 |
- |
349 |
-multilib_src_test() { |
350 |
- echo ${WORKDIR}/fate |
351 |
- LD_LIBRARY_PATH="${BUILD_DIR}/libswscale:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavresample:${BUILD_DIR}/libavutil" \ |
352 |
- emake -j1 fate SAMPLES="${WORKDIR}/fate" |
353 |
-} |