1 |
commit: 9a70af76fe322c95aa102aa684f9d49281513c29 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 7 22:35:15 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 10 12:45:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a70af76 |
7 |
|
8 |
dev-tcltk/tkimg: Fix build with jpeg-9 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/520886 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
dev-tcltk/tkimg/files/tkimg-1.4-jpeg-9.patch | 18 ++++++++++++++++++ |
14 |
dev-tcltk/tkimg/tkimg-1.4-r9.ebuild | 3 ++- |
15 |
2 files changed, 20 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4-jpeg-9.patch b/dev-tcltk/tkimg/files/tkimg-1.4-jpeg-9.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..23000ac7922 |
20 |
--- /dev/null |
21 |
+++ b/dev-tcltk/tkimg/files/tkimg-1.4-jpeg-9.patch |
22 |
@@ -0,0 +1,18 @@ |
23 |
+Fix build with jpeg-9, bug #520886 |
24 |
+ |
25 |
+--- a/jpeg/jpeg.c 2010-06-17 15:40:24.000000000 +0200 |
26 |
++++ b/jpeg/jpeg.c 2018-02-07 23:26:38.050073397 +0100 |
27 |
+@@ -53,6 +53,13 @@ |
28 |
+ */ |
29 |
+ |
30 |
+ #include "tkimg.h" |
31 |
++#ifndef FALSE |
32 |
++#define FALSE 0 |
33 |
++#endif |
34 |
++#ifndef TRUE |
35 |
++#define TRUE 1 |
36 |
++#endif |
37 |
++#define HAVE_BOOLEAN |
38 |
+ #include "jpegtcl.h" |
39 |
+ |
40 |
+ static int SetupJPegLibrary(Tcl_Interp *interp); |
41 |
|
42 |
diff --git a/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild b/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild |
43 |
index 9b621a465ef..155c4483e32 100644 |
44 |
--- a/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild |
45 |
+++ b/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild |
46 |
@@ -1,4 +1,4 @@ |
47 |
-# Copyright 1999-2015 Gentoo Foundation |
48 |
+# Copyright 1999-2018 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
|
51 |
EAPI=5 |
52 |
@@ -40,6 +40,7 @@ S="${WORKDIR}/${MYP}" |
53 |
src_prepare() { |
54 |
epatch \ |
55 |
"${WORKDIR}"/${P}-jpeg.patch \ |
56 |
+ "${FILESDIR}"/${P}-jpeg-9.patch \ |
57 |
"${WORKDIR}"/${P}-tiff.patch \ |
58 |
"${WORKDIR}"/${P}-png.patch \ |
59 |
"${FILESDIR}"/${P}-png2.patch \ |