Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/openscenegraph/files/, dev-games/openscenegraph/
Date: Wed, 07 Feb 2018 02:02:38
Message-Id: 1517968723.87f44f56ae0765df802f10271bdf6ed4ee5dd59a.asturm@gentoo
1 commit: 87f44f56ae0765df802f10271bdf6ed4ee5dd59a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 7 01:19:35 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 7 01:58:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f44f56
7
8 dev-games/openscenegraph: Fix build with jpeg-9
9
10 Closes: https://bugs.gentoo.org/646454
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 .../files/openscenegraph-3.5.1-jpeg-9.patch | 34 ++++++++++++++++++++++
14 .../openscenegraph/openscenegraph-3.5.1-r2.ebuild | 3 +-
15 .../openscenegraph/openscenegraph-3.5.5.ebuild | 3 +-
16 3 files changed, 38 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-games/openscenegraph/files/openscenegraph-3.5.1-jpeg-9.patch b/dev-games/openscenegraph/files/openscenegraph-3.5.1-jpeg-9.patch
19 new file mode 100644
20 index 00000000000..f6e85e8e352
21 --- /dev/null
22 +++ b/dev-games/openscenegraph/files/openscenegraph-3.5.1-jpeg-9.patch
23 @@ -0,0 +1,34 @@
24 +From 34b4e7001522c1b47b4211dac34d2d6a6b994a6f Mon Sep 17 00:00:00 2001
25 +From: Robert Osfield <robert@××××××××××××××.com>
26 +Date: Thu, 17 Aug 2017 10:52:59 +0100
27 +Subject: [PATCH] Added version check for boolean, TRUE and FALSE settings
28 +
29 +---
30 + src/osgPlugins/jpeg/ReaderWriterJPEG.cpp | 14 ++++++++------
31 + 1 file changed, 8 insertions(+), 6 deletions(-)
32 +
33 +diff --git a/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp b/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
34 +index 9f7f4c38937..115203322a5 100644
35 +--- a/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
36 ++++ b/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
37 +@@ -70,12 +70,14 @@ namespace osgDBJPEG
38 +
39 + static int jpegerror = ERR_NO_ERROR;
40 +
41 +-/* Some versions of jmorecfg.h define boolean, some don't...
42 +- Those that do also define HAVE_BOOLEAN, so we can guard using that. */
43 +-#ifndef HAVE_BOOLEAN
44 +- typedef int boolean;
45 +- #define FALSE 0
46 +- #define TRUE 1
47 ++#if JPEG_LIB_VERSION < 90
48 ++ /* Some versions of jmorecfg.h define boolean, some don't...
49 ++ Those that do also define HAVE_BOOLEAN, so we can guard using that. */
50 ++ #ifndef HAVE_BOOLEAN
51 ++ typedef int boolean;
52 ++ #define FALSE 0
53 ++ #define TRUE 1
54 ++ #endif
55 + #endif
56 +
57 + /* CODE FOR READING/WRITING JPEG FROM STREAMS
58
59 diff --git a/dev-games/openscenegraph/openscenegraph-3.5.1-r2.ebuild b/dev-games/openscenegraph/openscenegraph-3.5.1-r2.ebuild
60 index e37bfe37e56..655369b1064 100644
61 --- a/dev-games/openscenegraph/openscenegraph-3.5.1-r2.ebuild
62 +++ b/dev-games/openscenegraph/openscenegraph-3.5.1-r2.ebuild
63 @@ -1,4 +1,4 @@
64 -# Copyright 1999-2017 Gentoo Foundation
65 +# Copyright 1999-2018 Gentoo Foundation
66 # Distributed under the terms of the GNU General Public License v2
67
68 EAPI=6
69 @@ -92,6 +92,7 @@ DOCS=( AUTHORS.txt ChangeLog NEWS.txt )
70 PATCHES=(
71 "${FILESDIR}"/${PN}-3.4.0-cmake.patch
72 "${FILESDIR}"/${P}-ffmpeg-3.patch
73 + "${FILESDIR}"/${P}-jpeg-9.patch
74 )
75
76 src_configure() {
77
78 diff --git a/dev-games/openscenegraph/openscenegraph-3.5.5.ebuild b/dev-games/openscenegraph/openscenegraph-3.5.5.ebuild
79 index bd6fba7e3d2..202234ac484 100644
80 --- a/dev-games/openscenegraph/openscenegraph-3.5.5.ebuild
81 +++ b/dev-games/openscenegraph/openscenegraph-3.5.5.ebuild
82 @@ -1,4 +1,4 @@
83 -# Copyright 1999-2017 Gentoo Foundation
84 +# Copyright 1999-2018 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86
87 EAPI=6
88 @@ -83,6 +83,7 @@ S="${WORKDIR}/${MY_P}"
89
90 PATCHES=(
91 "${FILESDIR}"/${PN}-3.5.5-cmake.patch
92 + "${FILESDIR}"/${PN}-3.5.1-jpeg-9.patch
93 )
94
95 src_configure() {