Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/atlas/, games-util/atlas/files/
Date: Wed, 07 Feb 2018 02:23:17
Message-Id: 1517970172.c8a8324d59b24f3d1d3d2308f2835dc07541f010.asturm@gentoo
1 commit: c8a8324d59b24f3d1d3d2308f2835dc07541f010
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 7 02:22:52 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 7 02:22:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8a8324d
7
8 games-util/atlas: Fix build with jpeg-9
9
10 Closes: https://bugs.gentoo.org/520908
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 .../atlas/atlas-0.5.1_beta_pre20160907.ebuild | 3 ++-
14 .../atlas-0.5.1_beta_pre20160907-jpeg-9.patch | 27 ++++++++++++++++++++++
15 2 files changed, 29 insertions(+), 1 deletion(-)
16
17 diff --git a/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild b/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
18 index 5d915b19289..4fed6a08e4a 100644
19 --- a/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
20 +++ b/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 +# Copyright 1999-2018 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27 @@ -40,6 +40,7 @@ S=${WORKDIR}/${MY_P}
28
29 PATCHES=(
30 "${FILESDIR}/${P}-simgear-compilation.patch"
31 + "${FILESDIR}/${P}-jpeg-9.patch"
32 )
33
34 src_prepare() {
35
36 diff --git a/games-util/atlas/files/atlas-0.5.1_beta_pre20160907-jpeg-9.patch b/games-util/atlas/files/atlas-0.5.1_beta_pre20160907-jpeg-9.patch
37 new file mode 100644
38 index 00000000000..639ff821754
39 --- /dev/null
40 +++ b/games-util/atlas/files/atlas-0.5.1_beta_pre20160907-jpeg-9.patch
41 @@ -0,0 +1,27 @@
42 +Fix build with jpeg-9. Bug # 520908
43 +
44 +--- a/src/Image.cxx 2018-02-07 03:19:18.538699623 +0100
45 ++++ b/src/Image.cxx 2018-02-07 03:20:15.105160934 +0100
46 +@@ -29,11 +29,12 @@
47 +
48 + // Other libraries' include files
49 + #include <png.h>
50 +-#include <jpeglib.h>
51 +
52 + // Our project's include files
53 + #include "misc.hxx"
54 +
55 ++#include <jpeglib.h>
56 ++
57 + // This is a constant representing "Not an Elevation" - it is
58 + // guaranteed to be less than any possible real elevation value.
59 + static const float NanE = -std::numeric_limits<float>::max();
60 +@@ -266,7 +267,7 @@
61 + cinfo.in_color_space = JCS_RGB;
62 +
63 + jpeg_set_defaults(&cinfo);
64 +- jpeg_set_quality(&cinfo, quality, true);
65 ++ jpeg_set_quality(&cinfo, quality, TRUE);
66 +
67 + jpeg_start_compress(&cinfo, TRUE);
68 +