1 |
commit: 7d34e2550629de942f05ab332bdb1bc365b82506 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 22 07:03:38 2015 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 22 07:04:46 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d34e255 |
7 |
|
8 |
games-action/garden: Build with gcc:5.2 |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
games-action/garden/files/garden-1.0.9-gcc52.patch | 20 ++++++++++++++++++++ |
13 |
games-action/garden/garden-1.0.9.ebuild | 3 ++- |
14 |
2 files changed, 22 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/games-action/garden/files/garden-1.0.9-gcc52.patch b/games-action/garden/files/garden-1.0.9-gcc52.patch |
17 |
new file mode 100644 |
18 |
index 0000000..60f9272 |
19 |
--- /dev/null |
20 |
+++ b/games-action/garden/files/garden-1.0.9-gcc52.patch |
21 |
@@ -0,0 +1,20 @@ |
22 |
+--- src/stuff.c.old 2015-09-22 08:57:21.482794770 +0200 |
23 |
++++ src/stuff.c 2015-09-22 08:58:22.567815095 +0200 |
24 |
+@@ -52,7 +52,7 @@ |
25 |
+ float cos_table[ANGLE_1]; |
26 |
+ float sin_table[ANGLE_1]; |
27 |
+ |
28 |
+-inline int xpart (int angle, int length); |
29 |
++extern inline int xpart (int angle, int length); |
30 |
+ |
31 |
+ void init_trig (void) |
32 |
+ { |
33 |
+@@ -72,7 +72,7 @@ |
34 |
+ return (cos_table[angle & 1023] * length); |
35 |
+ } |
36 |
+ |
37 |
+-inline int ypart (int angle, int length) |
38 |
++extern inline int ypart (int angle, int length) |
39 |
+ { |
40 |
+ return (sin_table[angle & 1023] * length); |
41 |
+ } |
42 |
|
43 |
diff --git a/games-action/garden/garden-1.0.9.ebuild b/games-action/garden/garden-1.0.9.ebuild |
44 |
index 62df12c..63eb620 100644 |
45 |
--- a/games-action/garden/garden-1.0.9.ebuild |
46 |
+++ b/games-action/garden/garden-1.0.9.ebuild |
47 |
@@ -20,7 +20,8 @@ RDEPEND="${DEPEND}" |
48 |
src_prepare() { |
49 |
epatch \ |
50 |
"${FILESDIR}"/${P}-dash.patch \ |
51 |
- "${FILESDIR}"/${P}-resources.patch |
52 |
+ "${FILESDIR}"/${P}-resources.patch \ |
53 |
+ "${FILESDIR}"/${P}-gcc52.patch |
54 |
eautoreconf |
55 |
} |