From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60C851382C5 for ; Sun, 2 May 2021 20:19:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9370AE0884; Sun, 2 May 2021 20:19:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77062E0884 for ; Sun, 2 May 2021 20:19:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C3E9340AB2 for ; Sun, 2 May 2021 20:19:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF3CBCC for ; Sun, 2 May 2021 20:19:40 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1619986776.d4639706abcb52d2cc0f90a1eb73adfb0a9cea11.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/xwelltris/, games-puzzle/xwelltris/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch games-puzzle/xwelltris/xwelltris-1.0.1.ebuild X-VCS-Directories: games-puzzle/xwelltris/ games-puzzle/xwelltris/files/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: d4639706abcb52d2cc0f90a1eb73adfb0a9cea11 X-VCS-Branch: master Date: Sun, 2 May 2021 20:19:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7b5f7298-3bef-47f3-83ff-d63f7c911fc0 X-Archives-Hash: 02b8fb0c39144baf37651aa236e0c340 commit: d4639706abcb52d2cc0f90a1eb73adfb0a9cea11 Author: Sergei Trofimovich gentoo org> AuthorDate: Sun May 2 20:19:30 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun May 2 20:19:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4639706 games-puzzle/xwelltris: tweak for gcc-11 Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/739318 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich gentoo.org> games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch | 11 +++++++++++ games-puzzle/xwelltris/xwelltris-1.0.1.ebuild | 1 + 2 files changed, 12 insertions(+) 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 new file mode 100644 index 00000000000..0398bfec435 --- /dev/null +++ b/games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch @@ -0,0 +1,11 @@ +--- a/src/sdl/sdlwelldrawing.cxx ++++ b/src/sdl/sdlwelldrawing.cxx +@@ -72,7 +72,7 @@ void SDLWellDrawingEngine::init(int inum_fields, int idx, int idy, + + fields[i]=SDL_DisplayFormat(surface); + SDL_FreeSurface(surface); +- if(fields[i]>0) ++ if(fields[i]) + clear_field(i); + } + bg_color=colors[BackColor]; diff --git a/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild b/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild index 36c39e67014..11369637b0b 100644 --- a/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild +++ b/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild @@ -25,6 +25,7 @@ RDEPEND=" PATCHES=( # Look in ${EPREFIX}/var/lib/xwelltris for score file "${FILESDIR}"/${PN}-1.0.1-scorefile-dir.patch + "${FILESDIR}"/${PN}-1.0.1-gcc-11.patch ) src_prepare() {