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 C244D138359 for ; Sun, 18 Oct 2020 14:06:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17651E0876; Sun, 18 Oct 2020 14:06:12 +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 EFA49E0876 for ; Sun, 18 Oct 2020 14:06:11 +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 A88F333BEDE for ; Sun, 18 Oct 2020 14:06:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1DB003A1 for ; Sun, 18 Oct 2020 14:06:09 +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: <1603029963.5d8bf83756a2536d0b445f49066de3708fa93fee.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/cavezofphear/files/, games-arcade/cavezofphear/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild games-arcade/cavezofphear/files/cavezofphear-0.5.1-no-common.patch X-VCS-Directories: games-arcade/cavezofphear/files/ games-arcade/cavezofphear/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 5d8bf83756a2536d0b445f49066de3708fa93fee X-VCS-Branch: master Date: Sun, 18 Oct 2020 14:06:09 +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: ff3899ca-3369-4213-9633-733c0e276067 X-Archives-Hash: 244ca24dd41dc8babc2f0f9245548407 commit: 5d8bf83756a2536d0b445f49066de3708fa93fee Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Oct 18 14:05:50 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Oct 18 14:06:03 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d8bf837 games-arcade/cavezofphear: tweak for -fno-common Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/706880 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich gentoo.org> .../cavezofphear/cavezofphear-0.5.1.ebuild | 3 ++- .../files/cavezofphear-0.5.1-no-common.patch | 23 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild index 459bd6d3f2a..1069f5a9ce3 100644 --- a/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild +++ b/games-arcade/cavezofphear/cavezofphear-0.5.1.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=5 @@ -20,6 +20,7 @@ S=${WORKDIR}/${P/cavezof/} src_prepare() { epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-no-common.patch sed -i \ -e "s:get_data_dir(.):\"${GAMES_DATADIR}/${PN}/\":" \ src/{chk.c,main.c,gplot.c} \ diff --git a/games-arcade/cavezofphear/files/cavezofphear-0.5.1-no-common.patch b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-no-common.patch new file mode 100644 index 00000000000..4cc9bb5be02 --- /dev/null +++ b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-no-common.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/706880 +--- a/src/editor.c ++++ b/src/editor.c +@@ -24,7 +24,7 @@ + #include "common.h" + #include "proto.h" + +-char map[MAP_YSIZE][MAP_XSIZE]; ++extern char map[MAP_YSIZE][MAP_XSIZE]; + int lock; + int last_obj; + +--- a/src/frame.c ++++ b/src/frame.c +@@ -26,7 +26,7 @@ void bail(char *message); + void sigint_handler(); + void sigwinch_handler(); + +-int need_refresh; ++extern int need_refresh; + + void curses_start(void) + {