diff options
| author | Mark H Weaver <mhw@netris.org> | 2015-07-06 22:58:52 -0400 |
|---|---|---|
| committer | Mark H Weaver <mhw@netris.org> | 2015-07-06 23:01:56 -0400 |
| commit | c803ffcb3a9d5669bf5bae62b66fa058d697545c (patch) | |
| tree | c2a375fb29f081c5c3f197edb77b7529a7f46cc7 | |
| parent | 0ba652b2f58bcc9fee16228721c77d3676b17302 (diff) | |
gnu: icecat: Fix build against libvpx 1.4.
* gnu/packages/patches/icecat-libvpx-1.4.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/gnuzilla.scm (icecat)[source]: Add patch.
| -rw-r--r-- | gnu-system.am | 1 | ||||
| -rw-r--r-- | gnu/packages/gnuzilla.scm | 3 | ||||
| -rw-r--r-- | gnu/packages/patches/icecat-libvpx-1.4.patch | 30 |
3 files changed, 33 insertions, 1 deletions
diff --git a/gnu-system.am b/gnu-system.am index d6b2aad7c18..71c238b5644 100644 --- a/gnu-system.am +++ b/gnu-system.am | |||
| @@ -481,6 +481,7 @@ dist_patch_DATA = \ | |||
| 481 | gnu/packages/patches/icecat-CVE-2015-2739.patch \ | 481 | gnu/packages/patches/icecat-CVE-2015-2739.patch \ |
| 482 | gnu/packages/patches/icecat-CVE-2015-2740.patch \ | 482 | gnu/packages/patches/icecat-CVE-2015-2740.patch \ |
| 483 | gnu/packages/patches/icecat-CVE-2015-2743.patch \ | 483 | gnu/packages/patches/icecat-CVE-2015-2743.patch \ |
| 484 | gnu/packages/patches/icecat-libvpx-1.4.patch \ | ||
| 484 | gnu/packages/patches/irrlicht-mesa-10.patch \ | 485 | gnu/packages/patches/irrlicht-mesa-10.patch \ |
| 485 | gnu/packages/patches/jbig2dec-ignore-testtest.patch \ | 486 | gnu/packages/patches/jbig2dec-ignore-testtest.patch \ |
| 486 | gnu/packages/patches/kmod-module-directory.patch \ | 487 | gnu/packages/patches/kmod-module-directory.patch \ |
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm index 61a89a41c24..d84275e78db 100644 --- a/gnu/packages/gnuzilla.scm +++ b/gnu/packages/gnuzilla.scm | |||
| @@ -293,7 +293,8 @@ standards.") | |||
| 293 | "icecat-CVE-2015-2724-pt4.patch" | 293 | "icecat-CVE-2015-2724-pt4.patch" |
| 294 | "icecat-CVE-2015-2733-pt2.patch" | 294 | "icecat-CVE-2015-2733-pt2.patch" |
| 295 | "icecat-CVE-2015-2738.patch" | 295 | "icecat-CVE-2015-2738.patch" |
| 296 | "icecat-CVE-2015-2740.patch"))))) | 296 | "icecat-CVE-2015-2740.patch" |
| 297 | "icecat-libvpx-1.4.patch"))))) | ||
| 297 | (build-system gnu-build-system) | 298 | (build-system gnu-build-system) |
| 298 | (inputs | 299 | (inputs |
| 299 | `(("alsa-lib" ,alsa-lib) | 300 | `(("alsa-lib" ,alsa-lib) |
diff --git a/gnu/packages/patches/icecat-libvpx-1.4.patch b/gnu/packages/patches/icecat-libvpx-1.4.patch new file mode 100644 index 00000000000..e6e5fb3213a --- /dev/null +++ b/gnu/packages/patches/icecat-libvpx-1.4.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | The libvpx package 1.4.0 brings new names for various constants. | ||
| 2 | To build against the libvpx some few constants have to be renamed. | ||
| 3 | |||
| 4 | Patch by Carsten Schoenert <c.schoenert@t-online.de>. | ||
| 5 | Copied from Debian. | ||
| 6 | |||
| 7 | --- a/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc | ||
| 8 | +++ b/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc | ||
| 9 | @@ -180,7 +180,7 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst, | ||
| 10 | // Creating a wrapper to the image - setting image data to NULL. Actual | ||
| 11 | // pointer will be set in encode. Setting align to 1, as it is meaningless | ||
| 12 | // (actual memory is not allocated). | ||
| 13 | - raw_ = vpx_img_wrap(NULL, IMG_FMT_I420, codec_.width, codec_.height, | ||
| 14 | + raw_ = vpx_img_wrap(NULL, VPX_IMG_FMT_I420, codec_.width, codec_.height, | ||
| 15 | 1, NULL); | ||
| 16 | // populate encoder configuration with default values | ||
| 17 | if (vpx_codec_enc_config_default(vpx_codec_vp8_cx(), config_, 0)) { | ||
| 18 | @@ -349,9 +349,9 @@ int VP8EncoderImpl::Encode(const I420VideoFrame& input_image, | ||
| 19 | } | ||
| 20 | // Image in vpx_image_t format. | ||
| 21 | // Input image is const. VP8's raw image is not defined as const. | ||
| 22 | - raw_->planes[PLANE_Y] = const_cast<uint8_t*>(input_image.buffer(kYPlane)); | ||
| 23 | - raw_->planes[PLANE_U] = const_cast<uint8_t*>(input_image.buffer(kUPlane)); | ||
| 24 | - raw_->planes[PLANE_V] = const_cast<uint8_t*>(input_image.buffer(kVPlane)); | ||
| 25 | + raw_->planes[VPX_PLANE_Y] = const_cast<uint8_t*>(input_image.buffer(kYPlane)); | ||
| 26 | + raw_->planes[VPX_PLANE_U] = const_cast<uint8_t*>(input_image.buffer(kUPlane)); | ||
| 27 | + raw_->planes[VPX_PLANE_V] = const_cast<uint8_t*>(input_image.buffer(kVPlane)); | ||
| 28 | // TODO(mikhal): Stride should be set in initialization. | ||
| 29 | raw_->stride[VPX_PLANE_Y] = input_image.stride(kYPlane); | ||
| 30 | raw_->stride[VPX_PLANE_U] = input_image.stride(kUPlane); | ||
