- libgphoto2-newjpeg.patch: jpeg_mem_src gets a const buffer now

in new libjpeg-turbo.

OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=153
This commit is contained in:
Marcus Meissner 2016-06-09 13:56:15 +00:00 committed by Git OBS Bridge
parent 18a1e97b65
commit 3048b27f96
3 changed files with 36 additions and 0 deletions

26
libgphoto2-newjpeg.patch Normal file
View File

@ -0,0 +1,26 @@
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,7 +1,7 @@
#include <jpeglib.h>
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
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,7 +1,7 @@
#include <jpeglib.h>
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 9 13:55:38 UTC 2016 - meissner@suse.com
- libgphoto2-newjpeg.patch: jpeg_mem_src gets a const buffer now
in new libjpeg-turbo.
-------------------------------------------------------------------
Wed Mar 23 21:12:13 UTC 2016 - meissner@suse.com

View File

@ -55,6 +55,7 @@ Source0: https://downloads.sourceforge.net/project/gphoto/libgphoto/%{ver
Source1: https://downloads.sourceforge.net/project/gphoto/libgphoto/%{version}//%{name}-%{version}.tar.bz2.asc
Source2: %name.keyring
Source3: baselibs.conf
Patch0: libgphoto2-newjpeg.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-%{major}-lang = %{version}
@ -132,6 +133,9 @@ This is its API documentation in HTML format.
%prep
%setup -q
if pkg-config --atleast-version=1.5.0 libturbojpeg; then
%patch0 -p1
fi
(cd doc; tar xaf libgphoto2-api.html.tar.gz)
%build