diff options
author | Daniel Black <dragonheart@gentoo.org> | 2006-07-04 09:06:04 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2006-07-04 09:06:04 +0000 |
commit | b04cfb80c2b3cfc38151f531581965580cecfc07 (patch) | |
tree | f2915d10371c894a2e8c4603a03e78ee8eec0cfc /x11-misc/electricsheep/files | |
parent | Fixed RDEPEND wrt bug #134781; fixed header (diff) | |
download | gentoo-2-b04cfb80c2b3cfc38151f531581965580cecfc07.tar.gz gentoo-2-b04cfb80c2b3cfc38151f531581965580cecfc07.tar.bz2 gentoo-2-b04cfb80c2b3cfc38151f531581965580cecfc07.zip |
patch from upstream to use >=libpng-1.2.10 as per bug #137059.
(Portage version: 2.1.1_pre2-r1)
Diffstat (limited to 'x11-misc/electricsheep/files')
-rw-r--r-- | x11-misc/electricsheep/files/digest-electricsheep-2.6.7-r1 | 3 | ||||
-rw-r--r-- | x11-misc/electricsheep/files/electricsheep-2.6.7-libpng-1.2.10.patch | 123 |
2 files changed, 126 insertions, 0 deletions
diff --git a/x11-misc/electricsheep/files/digest-electricsheep-2.6.7-r1 b/x11-misc/electricsheep/files/digest-electricsheep-2.6.7-r1 new file mode 100644 index 000000000000..4d907db17fd0 --- /dev/null +++ b/x11-misc/electricsheep/files/digest-electricsheep-2.6.7-r1 @@ -0,0 +1,3 @@ +MD5 1a484c9b7ef8c7843bf3ba608753ac00 electricsheep-2.6.7.tar.gz 1387836 +RMD160 b842ec3761294bb6501127daf9fc377752bd830d electricsheep-2.6.7.tar.gz 1387836 +SHA256 f7b91f7a81a556a213543ab76c9595a738dd931fe2bc2acac6b704b5d09253f0 electricsheep-2.6.7.tar.gz 1387836 diff --git a/x11-misc/electricsheep/files/electricsheep-2.6.7-libpng-1.2.10.patch b/x11-misc/electricsheep/files/electricsheep-2.6.7-libpng-1.2.10.patch new file mode 100644 index 000000000000..8f41e1f296c5 --- /dev/null +++ b/x11-misc/electricsheep/files/electricsheep-2.6.7-libpng-1.2.10.patch @@ -0,0 +1,123 @@ +--- electricsheep/client/flam3/png.c 2005/07/20 06:06:16 1.8 ++++ electricsheep/client/flam3/png.c 2006/06/26 19:36:49 1.9 +@@ -14,6 +14,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <png.h> ++#include <setjmp.h> + + #include "img.h" + +@@ -67,7 +68,7 @@ + unsigned char sig_buf [SIG_CHECK_SIZE]; + png_struct *png_ptr; + png_info *info_ptr; +- png_byte **png_image; ++ png_byte **png_image = NULL; + int linesize, x, y; + unsigned char *p, *q; + +@@ -85,6 +86,16 @@ + fprintf (stderr, "cannot allocate LIBPNG structure\n"); + return 0; + } ++ if (setjmp(png_jmpbuf(png_ptr))) { ++ if (png_image) { ++ for (y = 0 ; y < info_ptr->height ; y++) ++ free (png_image[y]); ++ free (png_image); ++ } ++ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); ++ perror("reading file"); ++ return; ++ } + info_ptr = png_create_info_struct (png_ptr); + if (info_ptr == NULL) { + png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL); +@@ -155,9 +166,7 @@ + for (y = 0 ; y < info_ptr->height ; y++) + free (png_image[y]); + free (png_image); +- png_read_destroy (png_ptr, info_ptr, (png_info *)0); +- free (png_ptr); +- free (info_ptr); ++ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL); + + return q; + } +--- electricsheep/client/mpeg2dec/libvo/video_out_x11.c 2005/07/20 03:03:00 1.6 ++++ electricsheep/client/mpeg2dec/libvo/video_out_x11.c 2006/06/26 19:36:49 1.7 +@@ -39,6 +39,8 @@ + #include <X11/extensions/XShm.h> + #include <inttypes.h> + #include <sys/time.h> ++#include <png.h> ++#include <setjmp.h> + + #include "vroot.h" + #include <sys/types.h> +@@ -124,8 +126,6 @@ + tv_rate = tv_end; + } + +-#include <png.h> +- + static char *overlay_luma = NULL; + static char *overlay_alpha = NULL; + static int overlay_width; +@@ -165,7 +165,7 @@ + unsigned char sig_buf [SIG_CHECK_SIZE]; + png_struct *png_ptr; + png_info *info_ptr; +- png_byte **png_image; ++ png_byte **png_image = NULL; + int linesize, x, y; + unsigned char *p, *q; + +@@ -183,6 +183,16 @@ + fprintf (stderr, "cannot allocate LIBPNG structure\n"); + return; + } ++ if (setjmp(png_jmpbuf(png_ptr))) { ++ if (png_image) { ++ for (y = 0 ; y < info_ptr->height ; y++) ++ free (png_image[y]); ++ free (png_image); ++ } ++ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); ++ perror("reading file"); ++ return; ++ } + info_ptr = png_create_info_struct (png_ptr); + if (info_ptr == NULL) { + png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL); +@@ -271,10 +281,7 @@ + for (y = 0 ; y < info_ptr->height ; y++) + free (png_image[y]); + free (png_image); +- png_read_destroy (png_ptr, info_ptr, (png_info *)0); +- free (png_ptr); +- free (info_ptr); +- ++ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL); + } + + static void overlay_read_ppm(FILE *fin) +@@ -535,6 +542,8 @@ + instance->corner_x = (w - instance->width)/2; + instance->corner_y = (h - instance->height)/2; + } else if (window_id == -1) { ++ XTextProperty xname; ++ char *nm = "Electric Sheep"; + /* create a window the same size as the video */ + instance->window = + XCreateWindow (instance->display, +@@ -544,6 +553,8 @@ + InputOutput, instance->vinfo.visual, + (CWBackPixmap | CWBackingStore | CWBorderPixel | + CWEventMask | CWColormap), &attr); ++ XStringListToTextProperty(&nm, 1, &xname); ++ XSetWMName(instance->display, instance->window, &xname); + } else { + /* zoomed to fit the window specified on the command line */ + XWindowAttributes xgwa; |