1 |
commit: d4639706abcb52d2cc0f90a1eb73adfb0a9cea11 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 2 20:19:30 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 20:19:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4639706 |
7 |
|
8 |
games-puzzle/xwelltris: tweak for gcc-11 |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/739318 |
12 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch | 11 +++++++++++ |
16 |
games-puzzle/xwelltris/xwelltris-1.0.1.ebuild | 1 + |
17 |
2 files changed, 12 insertions(+) |
18 |
|
19 |
diff --git a/games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch b/games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..0398bfec435 |
22 |
--- /dev/null |
23 |
+++ b/games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch |
24 |
@@ -0,0 +1,11 @@ |
25 |
+--- a/src/sdl/sdlwelldrawing.cxx |
26 |
++++ b/src/sdl/sdlwelldrawing.cxx |
27 |
+@@ -72,7 +72,7 @@ void SDLWellDrawingEngine::init(int inum_fields, int idx, int idy, |
28 |
+ |
29 |
+ fields[i]=SDL_DisplayFormat(surface); |
30 |
+ SDL_FreeSurface(surface); |
31 |
+- if(fields[i]>0) |
32 |
++ if(fields[i]) |
33 |
+ clear_field(i); |
34 |
+ } |
35 |
+ bg_color=colors[BackColor]; |
36 |
|
37 |
diff --git a/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild b/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild |
38 |
index 36c39e67014..11369637b0b 100644 |
39 |
--- a/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild |
40 |
+++ b/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild |
41 |
@@ -25,6 +25,7 @@ RDEPEND=" |
42 |
PATCHES=( |
43 |
# Look in ${EPREFIX}/var/lib/xwelltris for score file |
44 |
"${FILESDIR}"/${PN}-1.0.1-scorefile-dir.patch |
45 |
+ "${FILESDIR}"/${PN}-1.0.1-gcc-11.patch |
46 |
) |
47 |
|
48 |
src_prepare() { |