aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-11 16:18:28 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-11 16:18:28 +0000
commitd1061ed23ea26e2098b90cf76ab2a206c37e45c8 (patch)
treefda37aa03cb20b6eed2c6e1e8f4866c7188cc2ed /main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch
parent3c063e4271b00f4633120cc1403e543cf0654385 (diff)
downloadaports-d1061ed23ea26e2098b90cf76ab2a206c37e45c8.tar.bz2
aports-d1061ed23ea26e2098b90cf76ab2a206c37e45c8.tar.xz
main/libgphoto2: fix build
Diffstat (limited to 'main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch')
-rw-r--r--main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch b/main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch
new file mode 100644
index 0000000000..b75e7dfada
--- /dev/null
+++ b/main/libgphoto2/libjpeg_turbo_1.5.0_fix.patch
@@ -0,0 +1,72 @@
+Description: Close bug #827629.
+ conflicting types for 'jpeg_mem_src' with
+ libjpeg-turbo62 1.5.0
+Author: Patrick Ohly <patrick.ohly@intel.com>
+Reviewed-by: Herbert Parentes Fortes Neto <hpfn@ig.com.br>
+Last-Update: 2016-06-19
+Index: libgphoto2-2.5.10/camlibs/ax203/jpeg_memsrcdest.c
+===================================================================
+--- libgphoto2-2.5.10.orig/camlibs/ax203/jpeg_memsrcdest.c
++++ libgphoto2-2.5.10/camlibs/ax203/jpeg_memsrcdest.c
+@@ -25,8 +25,8 @@
+ #include "jpeg_memsrcdest.h"
+
+ /* libjpeg8 and later come with their own (API compatible) memory source
+- and dest */
+-#if JPEG_LIB_VERSION < 80
++ and dest, and older versions may have it backported */
++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)
+
+ /* Expanded data source object for memory input */
+
+Index: libgphoto2-2.5.10/camlibs/ax203/jpeg_memsrcdest.h
+===================================================================
+--- libgphoto2-2.5.10.orig/camlibs/ax203/jpeg_memsrcdest.h
++++ libgphoto2-2.5.10/camlibs/ax203/jpeg_memsrcdest.h
+@@ -1,5 +1,7 @@
+ #include <jpeglib.h>
+
++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)
++
+ void
+ jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
+ unsigned long bufsize);
+@@ -7,3 +9,5 @@ jpeg_mem_src (j_decompress_ptr cinfo, un
+ void
+ jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer,
+ unsigned long * outsize);
++
++#endif
+Index: libgphoto2-2.5.10/camlibs/jl2005c/jpeg_memsrcdest.c
+===================================================================
+--- libgphoto2-2.5.10.orig/camlibs/jl2005c/jpeg_memsrcdest.c
++++ libgphoto2-2.5.10/camlibs/jl2005c/jpeg_memsrcdest.c
+@@ -25,8 +25,8 @@
+ #include "jpeg_memsrcdest.h"
+
+ /* libjpeg8 and later come with their own (API compatible) memory source
+- and dest */
+-#if JPEG_LIB_VERSION < 80
++ and dest, and older versions may have it backported */
++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)
+
+ /* Expanded data source object for memory input */
+
+Index: libgphoto2-2.5.10/camlibs/jl2005c/jpeg_memsrcdest.h
+===================================================================
+--- libgphoto2-2.5.10.orig/camlibs/jl2005c/jpeg_memsrcdest.h
++++ libgphoto2-2.5.10/camlibs/jl2005c/jpeg_memsrcdest.h
+@@ -1,5 +1,7 @@
+ #include <jpeglib.h>
+
++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)
++
+ void
+ jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
+ unsigned long bufsize);
+@@ -7,3 +9,5 @@ jpeg_mem_src (j_decompress_ptr cinfo, un
+ void
+ jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer,
+ unsigned long * outsize);
++
++#endif