From 877453059cf82ac76111a5d3aac099a019d68762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 16 Jun 2016 10:49:57 +0200 Subject: [PATCH] libgphoto2: fix build: jpeg_mem_src prototype The locally defined prototype for jpeg_mem_src() was different from the on defined in /usr/include/jpeglib.h --- .../libgphoto2/patches/fix-jpeg_mem_src.patch | 22 +++++++++++++++++++ srcpkgs/libgphoto2/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libgphoto2/patches/fix-jpeg_mem_src.patch diff --git a/srcpkgs/libgphoto2/patches/fix-jpeg_mem_src.patch b/srcpkgs/libgphoto2/patches/fix-jpeg_mem_src.patch new file mode 100644 index 00000000000..65918ca9695 --- /dev/null +++ b/srcpkgs/libgphoto2/patches/fix-jpeg_mem_src.patch @@ -0,0 +1,22 @@ +--- camlibs/ax203/jpeg_memsrcdest.h 2015-08-08 17:57:29.000000000 +0200 ++++ camlibs/ax203/jpeg_memsrcdest.h 2016-06-16 10:41:12.793951660 +0200 +@@ -1,7 +1,7 @@ + #include + + void +-jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, ++jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char * buffer, + unsigned long bufsize); + + void +--- camlibs/jl2005c/jpeg_memsrcdest.h 2015-08-08 17:57:29.000000000 +0200 ++++ camlibs/jl2005c/jpeg_memsrcdest.h 2016-06-16 10:41:12.793951660 +0200 +@@ -1,7 +1,7 @@ + #include + + void +-jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, ++jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char * buffer, + unsigned long bufsize); + + void diff --git a/srcpkgs/libgphoto2/template b/srcpkgs/libgphoto2/template index 8b868e4910c..611d762c20a 100644 --- a/srcpkgs/libgphoto2/template +++ b/srcpkgs/libgphoto2/template @@ -1,7 +1,7 @@ # Template file for 'libgphoto2' pkgname=libgphoto2 version=2.5.10 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev" hostmakedepends="automake libtool pkg-config gettext-devel"