summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-02-03 17:42:55 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-02-03 17:42:55 +0100
commit99f327c67cf7ff29d8ef4608f21ad75285a435ad (patch)
tree879ceafc2c519e7c4ed005e6be44a74876ee7100 /media-gfx/ufraw/files
parentprofiles: Mask media-libs/hupnp-ng for removal (diff)
downloadgentoo-99f327c67cf7ff29d8ef4608f21ad75285a435ad.tar.gz
gentoo-99f327c67cf7ff29d8ef4608f21ad75285a435ad.tar.bz2
gentoo-99f327c67cf7ff29d8ef4608f21ad75285a435ad.zip
media-gfx/ufraw: Fix build w/ jpeg-9, migrate to xdg-utils
Bug: https://bugs.gentoo.org/540872 Closes: https://bugs.gentoo.org/520882 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'media-gfx/ufraw/files')
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-jpeg9.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/media-gfx/ufraw/files/ufraw-0.22-jpeg9.patch b/media-gfx/ufraw/files/ufraw-0.22-jpeg9.patch
new file mode 100644
index 000000000000..dca3834cbe8e
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-jpeg9.patch
@@ -0,0 +1,32 @@
+Fix build with >=jpeg-9
+Thanks-to: Moran Z. <o542018138@gmail.com>
+
+--- a/dcraw.cc 2014-09-02 07:50:38.000000000 +0300
++++ b/dcraw.cc 2015-02-21 04:54:13.957561352 +0200
+@@ -2330,7 +2330,7 @@
+ #endif
+ cinfo->src->next_input_byte = jpeg_buffer;
+ cinfo->src->bytes_in_buffer = nbytes;
+- return TRUE;
++ return boolean(TRUE);
+ }
+
+ void CLASS kodak_jpeg_load_raw()
+@@ -2346,7 +2346,7 @@
+ jpeg_create_decompress (&cinfo);
+ jpeg_stdio_src (&cinfo, ifp);
+ cinfo.src->fill_input_buffer = fill_input_buffer;
+- jpeg_read_header (&cinfo, TRUE);
++ jpeg_read_header (&cinfo, boolean(TRUE));
+ jpeg_start_decompress (&cinfo);
+ if ((cinfo.output_width != width ) ||
+ (cinfo.output_height*2 != height ) ||
+@@ -2419,7 +2419,7 @@
+ if (tile_length < INT_MAX)
+ fseek (ifp, get4(), SEEK_SET);
+ jpeg_stdio_src (&cinfo, ifp);
+- jpeg_read_header (&cinfo, TRUE);
++ jpeg_read_header (&cinfo, boolean(TRUE));
+ jpeg_start_decompress (&cinfo);
+ buf = (*cinfo.mem->alloc_sarray)
+ ((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width*3, 1);