Fixing the xine lib build, for problems building with zlib 1.2.6
svn path=/nixpkgs/branches/stdenv-updates/; revision=32153
This commit is contained in:
parent
0de0994bc4
commit
f113fbb5dd
2 changed files with 53 additions and 0 deletions
|
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1yss9cxxkcb6dzrv78xvi845ls6lhhbv6g8yfm6zjjl07v7jbm6c";
|
||||
};
|
||||
|
||||
patches = [ ./zlib126.patch ];
|
||||
# patches =
|
||||
# [ (fetchurl {
|
||||
# url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/xine-lib/files/xine-lib-1.1.19-ffmpeg.patch?revision=1.1";
|
||||
|
|
52
pkgs/development/libraries/xine-lib/zlib126.patch
Normal file
52
pkgs/development/libraries/xine-lib/zlib126.patch
Normal file
|
@ -0,0 +1,52 @@
|
|||
http://anonscm.debian.org/hg/xine-lib/xine-lib/rev/24d09421ed09
|
||||
|
||||
# HG changeset patch
|
||||
# User Ulrich Müller <ulm@gentoo.org>
|
||||
# Date 1327945720 0
|
||||
# Node ID 24d09421ed09d3a78efeab5c9b8ab31daaaba4fd
|
||||
# Parent da296856c52e654cf599248de3a01bb754363c79
|
||||
Compile failure in osd.c with sys-libs/zlib-1.2.6
|
||||
|
||||
diff -r da296856c52e -r 24d09421ed09 misc/xine-fontconv.c
|
||||
--- a/misc/xine-fontconv.c Wed Jan 18 22:01:28 2012 +0000
|
||||
+++ b/misc/xine-fontconv.c Mon Jan 30 17:48:40 2012 +0000
|
||||
@@ -109,7 +109,7 @@
|
||||
osd_font_t font;
|
||||
|
||||
|
||||
-static int gzwrite_i16(gzFile *fp, uint16_t number) {
|
||||
+static int gzwrite_i16(gzFile fp, uint16_t number) {
|
||||
return gzputc(fp, number & 0xFF) != -1 &&
|
||||
gzputc(fp, (number >> 8) & 0xFF) != -1;
|
||||
}
|
||||
@@ -341,7 +341,7 @@
|
||||
|
||||
char filename[1024];
|
||||
FT_Bitmap *out_bitmap;
|
||||
- gzFile *fp;
|
||||
+ gzFile fp;
|
||||
int error;
|
||||
int error_counter;
|
||||
int glyph_index;
|
||||
diff -r da296856c52e -r 24d09421ed09 src/xine-engine/osd.c
|
||||
--- a/src/xine-engine/osd.c Wed Jan 18 22:01:28 2012 +0000
|
||||
+++ b/src/xine-engine/osd.c Mon Jan 30 17:48:40 2012 +0000
|
||||
@@ -650,7 +650,7 @@
|
||||
osd->display_y = y;
|
||||
}
|
||||
|
||||
-static uint16_t gzread_i16(gzFile *fp) {
|
||||
+static uint16_t gzread_i16(gzFile fp) {
|
||||
uint16_t ret;
|
||||
ret = gzgetc(fp);
|
||||
ret |= (gzgetc(fp)<<8);
|
||||
@@ -663,7 +663,7 @@
|
||||
|
||||
static int osd_renderer_load_font(osd_renderer_t *this, char *filename) {
|
||||
|
||||
- gzFile *fp;
|
||||
+ gzFile fp;
|
||||
osd_font_t *font = NULL;
|
||||
int i, ret = 0;
|
||||
|
||||
|
Loading…
Reference in a new issue