summaryrefslogtreecommitdiff
path: root/graphics/imlib2/patches
diff options
context:
space:
mode:
authorleot <leot>2016-01-22 21:06:59 +0000
committerleot <leot>2016-01-22 21:06:59 +0000
commite2c9c7ba89e91e61cd70bacf3b3ecae2a7eb7423 (patch)
tree06e9eb46057625fe4a7c3eaae813d093a8095cfd /graphics/imlib2/patches
parentd8f4f5c0cb94be90be3207bdf4135c4e4f6b1460 (diff)
downloadpkgsrc-e2c9c7ba89e91e61cd70bacf3b3ecae2a7eb7423.tar.gz
Update graphics/imlib2 to 1.4.7.
pkgsrc changes: o Add LICENSE o Remove no more needed patches and while here add a comment to all patches Changes: Fabian Keil (14): Prevent division-by-zero crashes imlib_conv: Use proper buffer size to prevent invalid write of size one loader_gif: Don't read uninitilized memory in case of invalid input loader_gif(): Abort gif parsing if DGifGetLine() fails Fix segfault when opening input/queue/id:000007,src:000000,op:flip1,pos:51 with feh Make IMAGE_DIMENSIONS_OK() more restrictive load_pnm: Deal with fread() errors consistently __imlib_LoadImage(): Additionally check loader_ret to detect loader failures loader_tga: Abort file loading if the file obviously isn't large enough imlib_save_image(): Check loader return code for errors loader_tga.c: Properly signal if decoding uncompressed BGRA data failed loader_tga.c: Properly signal if decoding RLE compressed data failed imlib_save_image_with_error_return(): Check loader return code to prevent use of unitialized memor load_gif: Make sure rows isn't used partly unitialized Heiko Becker (1): GIF loader: Fix for libgif version 5.1 Kim Woelders (20): GIF loader: Fix for libgif version 5. Remove OS/2 support. Remove empty format.c/h. Header file cleanups. GIF loader: Simplify error handling. GIF loader: Fix segv on images without colormap. Revert "__imlib_LoadImage(): Additionally check loader_ret to detect loader failures" Revert "loader_gif(): Abort gif parsing if DGifGetLine() fails" JPEG loader: Fix load() return code when only reading header. BMP loader: Simplify pixel fetch. Autofoo update (AC_PROG_LIBTOOL -> LT_INIT). Autofoo macro cleanups (ac_->ec_). Change a number of internal function names. Indent. Don't include Imlib2.h indirectly via image.h. Remove __hidden. Enable visibility hiding by default. Indent the remaining unindented files. Generate a ChangeLog using git shortlog between existing tags. Michał Górny (1): fix -I flags to support building out-of-source Mike Frysinger (5): simplify --enable-visibility-hiding handling imlib2-config: delete old reference to @my_libs@ check return value of fread/write funcs fix X_DISPLAY_MISSING redefined warnings when X is disabled do not link with X libs when X is disabled
Diffstat (limited to 'graphics/imlib2/patches')
-rw-r--r--graphics/imlib2/patches/patch-imlib2-config.in13
-rw-r--r--graphics/imlib2/patches/patch-src_lib_Makefile.in16
-rw-r--r--graphics/imlib2/patches/patch-src_lib_amd64__blend.S4
-rw-r--r--graphics/imlib2/patches/patch-src_lib_amd64__blend__cmod.S4
-rw-r--r--graphics/imlib2/patches/patch-src_modules_loaders_loader__gif.c67
5 files changed, 13 insertions, 91 deletions
diff --git a/graphics/imlib2/patches/patch-imlib2-config.in b/graphics/imlib2/patches/patch-imlib2-config.in
index 03b5acf5f98..0651099511a 100644
--- a/graphics/imlib2/patches/patch-imlib2-config.in
+++ b/graphics/imlib2/patches/patch-imlib2-config.in
@@ -1,14 +1,15 @@
-$NetBSD: patch-imlib2-config.in,v 1.2 2014/05/20 16:18:38 adam Exp $
+$NetBSD: patch-imlib2-config.in,v 1.3 2016/01/22 21:07:00 leot Exp $
---- imlib2-config.in.orig 2013-03-01 19:12:59.000000000 +0000
+Add the COMPILER_RPATH_FLAG to imlib2-config.
+
+--- imlib2-config.in.orig 2014-12-20 16:19:20.000000000 +0000
+++ imlib2-config.in
-@@ -45,8 +45,7 @@ while test $# -gt 0; do
+@@ -45,7 +45,7 @@ while test $# -gt 0; do
echo $includes
;;
--libs)
- libdirs=-L@libdir@
-- echo $libdirs -lImlib2 @my_libs@
-+ echo -L@libdir@ @COMPILER_RPATH_FLAG@@libdir@ -lImlib2
++ libdirs="-L@libdir@ @COMPILER_RPATH_FLAG@@libdir@"
+ echo $libdirs -lImlib2
;;
*)
- echo "${usage}" 1>&2
diff --git a/graphics/imlib2/patches/patch-src_lib_Makefile.in b/graphics/imlib2/patches/patch-src_lib_Makefile.in
deleted file mode 100644
index 8abae0f8039..00000000000
--- a/graphics/imlib2/patches/patch-src_lib_Makefile.in
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-src_lib_Makefile.in,v 1.1 2014/05/17 09:25:01 adam Exp $
-
-Don't link against X11 libs, when X11 support has been disabled.
-
---- src/lib/Makefile.in.orig 2014-05-17 07:59:57.000000000 +0000
-+++ src/lib/Makefile.in
-@@ -443,7 +443,8 @@ amd64_blend_cmod.S
- MMX_OBJS = $(MMX_SRCS:.S=.lo)
- AMD64_OBJS = $(AMD64_SRCS:.S=.lo)
- EXTRA_DIST = $(MMX_SRCS) $(AMD64_SRCS) asm_loadimmq.S
--MY_LIBS = -lXext -lX11 $(FREETYPE_LIBS) $(DLOPEN_LIBS) -lm
-+@BUILD_X11_FALSE@MY_LIBS = $(FREETYPE_LIBS) $(DLOPEN_LIBS) -lm
-+@BUILD_X11_TRUE@MY_LIBS = -lXext -lX11 $(FREETYPE_LIBS) $(DLOPEN_LIBS) -lm
- @BUILD_AMD64_FALSE@@BUILD_MMX_FALSE@libImlib2_la_LIBADD = $(MY_LIBS)
- @BUILD_AMD64_TRUE@@BUILD_MMX_FALSE@libImlib2_la_LIBADD = $(AMD64_OBJS) $(MY_LIBS)
- @BUILD_MMX_TRUE@libImlib2_la_LIBADD = $(MMX_OBJS) $(MY_LIBS)
diff --git a/graphics/imlib2/patches/patch-src_lib_amd64__blend.S b/graphics/imlib2/patches/patch-src_lib_amd64__blend.S
index 342a32c53ce..7fc827f0173 100644
--- a/graphics/imlib2/patches/patch-src_lib_amd64__blend.S
+++ b/graphics/imlib2/patches/patch-src_lib_amd64__blend.S
@@ -1,4 +1,6 @@
-$NetBSD: patch-src_lib_amd64__blend.S,v 1.1 2012/06/15 18:52:26 joerg Exp $
+$NetBSD: patch-src_lib_amd64__blend.S,v 1.2 2016/01/22 21:07:00 leot Exp $
+
+Drop .extern, it is ignored by GNU as and not supported by LLVM.
--- src/lib/amd64_blend.S.orig 2012-06-15 15:25:04.000000000 +0000
+++ src/lib/amd64_blend.S
diff --git a/graphics/imlib2/patches/patch-src_lib_amd64__blend__cmod.S b/graphics/imlib2/patches/patch-src_lib_amd64__blend__cmod.S
index 5915b089eba..f67244ebb26 100644
--- a/graphics/imlib2/patches/patch-src_lib_amd64__blend__cmod.S
+++ b/graphics/imlib2/patches/patch-src_lib_amd64__blend__cmod.S
@@ -1,4 +1,6 @@
-$NetBSD: patch-src_lib_amd64__blend__cmod.S,v 1.1 2012/06/15 18:52:26 joerg Exp $
+$NetBSD: patch-src_lib_amd64__blend__cmod.S,v 1.2 2016/01/22 21:07:00 leot Exp $
+
+Drop .extern, it is ignored by GNU as and not supported by LLVM.
--- src/lib/amd64_blend_cmod.S.orig 2012-06-15 15:25:46.000000000 +0000
+++ src/lib/amd64_blend_cmod.S
diff --git a/graphics/imlib2/patches/patch-src_modules_loaders_loader__gif.c b/graphics/imlib2/patches/patch-src_modules_loaders_loader__gif.c
deleted file mode 100644
index bff55a98dc0..00000000000
--- a/graphics/imlib2/patches/patch-src_modules_loaders_loader__gif.c
+++ /dev/null
@@ -1,67 +0,0 @@
-$NetBSD: patch-src_modules_loaders_loader__gif.c,v 1.2 2014/05/16 10:19:11 obache Exp $
-
-* Fix build with giflib>=5.1.
-
---- src/modules/loaders/loader_gif.c.orig 2011-04-15 22:05:28.000000000 +0000
-+++ src/modules/loaders/loader_gif.c
-@@ -36,7 +36,7 @@ load(ImlibImage * im, ImlibProgressFunct
- #endif
- if (fd < 0)
- return 0;
-- gif = DGifOpenFileHandle(fd);
-+ gif = DGifOpenFileHandle(fd, NULL);
- if (!gif)
- {
- close(fd);
-@@ -60,13 +60,13 @@ load(ImlibImage * im, ImlibProgressFunct
- h = gif->Image.Height;
- if (!IMAGE_DIMENSIONS_OK(w, h))
- {
-- DGifCloseFile(gif);
-+ DGifCloseFile(gif, NULL);
- return 0;
- }
- rows = malloc(h * sizeof(GifRowType *));
- if (!rows)
- {
-- DGifCloseFile(gif);
-+ DGifCloseFile(gif, NULL);
- return 0;
- }
- for (i = 0; i < h; i++)
-@@ -78,7 +78,7 @@ load(ImlibImage * im, ImlibProgressFunct
- rows[i] = malloc(w * sizeof(GifPixelType));
- if (!rows[i])
- {
-- DGifCloseFile(gif);
-+ DGifCloseFile(gif, NULL);
- for (i = 0; i < h; i++)
- {
- if (rows[i])
-@@ -150,7 +150,7 @@ load(ImlibImage * im, ImlibProgressFunct
- im->data = (DATA32 *) malloc(sizeof(DATA32) * w * h);
- if (!im->data)
- {
-- DGifCloseFile(gif);
-+ DGifCloseFile(gif, NULL);
- free(rows);
- return 0;
- }
-@@ -181,7 +181,7 @@ load(ImlibImage * im, ImlibProgressFunct
- last_per = (int)per;
- if (!(progress(im, (int)per, 0, last_y, w, i)))
- {
-- DGifCloseFile(gif);
-+ DGifCloseFile(gif, NULL);
- for (i = 0; i < h; i++)
- {
- free(rows[i]);
-@@ -198,7 +198,7 @@ load(ImlibImage * im, ImlibProgressFunct
- {
- progress(im, 100, 0, last_y, w, h);
- }
-- DGifCloseFile(gif);
-+ DGifCloseFile(gif, NULL);
- for (i = 0; i < h; i++)
- {
- free(rows[i]);