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 9BC72138350 for ; Sun, 26 Jan 2020 15:17:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0049E0872; Sun, 26 Jan 2020 15:17:22 +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 7C3D7E0872 for ; Sun, 26 Jan 2020 15:17:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 5106E34E2EA for ; Sun, 26 Jan 2020 15:17:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5087C7B for ; Sun, 26 Jan 2020 15:17:15 +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: <1580051828.d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/nibbles/files/, games-arcade/nibbles/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch games-arcade/nibbles/nibbles-0.0.4-r1.ebuild X-VCS-Directories: games-arcade/nibbles/files/ games-arcade/nibbles/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e X-VCS-Branch: master Date: Sun, 26 Jan 2020 15:17:15 +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: 14665050-8d31-49f3-8653-a0e6afe47c5c X-Archives-Hash: 9b2df11a1d717d657e9f8faf55549158 commit: d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Jan 26 15:17:01 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Jan 26 15:17:08 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d32a3e02 games-arcade/nibbles: tweak for gcc-10, bug #706446 Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/706446 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich gentoo.org> .../nibbles/files/nibbles-0.0.4-gcc-10.patch | 22 ++++++++++++++++++++++ games-arcade/nibbles/nibbles-0.0.4-r1.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch new file mode 100644 index 00000000000..e70203f73c7 --- /dev/null +++ b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch @@ -0,0 +1,22 @@ +--- a/scoring.c ++++ b/scoring.c +@@ -12,6 +12,8 @@ + #include + #include "scoring.h" + ++char highscoref[255]; ++ + int get_high_scores(struct highscoreent *highscores[], int *numscores) + { + FILE *scorefile; +--- a/scoring.h ++++ b/scoring.h +@@ -11,7 +11,7 @@ + /* Max number of high scores we store */ + #define MAXHIGHSCORES 20 + +-char highscoref[255]; ++extern char highscoref[255]; + + struct highscoreent { + char name[16]; diff --git a/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild b/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild index fb8b3229397..f0e88811824 100644 --- a/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild +++ b/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -24,6 +24,7 @@ GAMES_STATEDIR="/var/games/${PN}" PATCHES=( "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-gcc-10.patch ) S="${WORKDIR}/${MY_P}"