Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/ufraw/, media-gfx/ufraw/files/
Date: Wed, 19 Jul 2017 11:49:33
Message-Id: 1500464958.9ae1b0b7ad1fc87873e6e74fa008a498cb37aec7.aballier@gentoo
1 commit: 9ae1b0b7ad1fc87873e6e74fa008a498cb37aec7
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 19 11:49:18 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 19 11:49:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ae1b0b7
7
8 media-gfx/ufraw: Add patch to fix build on arm. Bug #622484
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 .../ufraw/files/ufraw-0.22-fix-unsigned-char.patch | 20 ++++++++++++++++++++
13 media-gfx/ufraw/ufraw-0.22-r1.ebuild | 1 +
14 2 files changed, 21 insertions(+)
15
16 diff --git a/media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch b/media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch
17 new file mode 100644
18 index 00000000000..a5397260ffb
19 --- /dev/null
20 +++ b/media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch
21 @@ -0,0 +1,20 @@
22 +Description: Fix unsigned char declaration of src[]
23 +Author: John Paul Adrian Glaubitz <glaubitz@××××××××××××××××.de>
24 +Last-Update: 2017-02-27
25 +
26 +https://bugs.gentoo.org/show_bug.cgi?id=622484
27 +https://sourceforge.net/p/ufraw/bugs/417/
28 +https://src.fedoraproject.org/cgit/rpms/ufraw.git/tree/05_fix_build_due_to_unsigned_char.patch
29 +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=856227
30 +
31 +--- ufraw-0.22.orig/dcraw.cc
32 ++++ ufraw-0.22/dcraw.cc
33 +@@ -2285,7 +2285,7 @@ void CLASS quicktake_100_load_raw()
34 +
35 + void CLASS kodak_radc_load_raw()
36 + {
37 +- static const char src[] = {
38 ++ static const signed char src[] = {
39 + 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8,
40 + 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8,
41 + 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8,
42
43 diff --git a/media-gfx/ufraw/ufraw-0.22-r1.ebuild b/media-gfx/ufraw/ufraw-0.22-r1.ebuild
44 index 155af1ce170..e8bb0325f6c 100644
45 --- a/media-gfx/ufraw/ufraw-0.22-r1.ebuild
46 +++ b/media-gfx/ufraw/ufraw-0.22-r1.ebuild
47 @@ -41,6 +41,7 @@ PATCHES=(
48 "${FILESDIR}"/${P}-jasper-automagic.patch
49 "${FILESDIR}"/${P}-crashfix.patch
50 "${FILESDIR}"/${P}-drop_superfluous_abs.patch
51 + "${FILESDIR}"/${P}-fix-unsigned-char.patch
52 )
53
54 src_prepare() {