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 E09EA138350 for ; Sun, 1 Mar 2020 15:25:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBEF1E08FB; Sun, 1 Mar 2020 15:25:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D2CCCE08FB for ; Sun, 1 Mar 2020 15:25:40 +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 E8E7934F03E for ; Sun, 1 Mar 2020 15:25:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B867F161 for ; Sun, 1 Mar 2020 15:25:35 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1583076299.74c7bfa57715e302930f9c3a9989f312b34ffb79.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/wmpuzzle/, games-puzzle/wmpuzzle/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-puzzle/wmpuzzle/files/wmpuzzle-0.5.2-gcc-10.patch games-puzzle/wmpuzzle/wmpuzzle-0.5.2-r1.ebuild X-VCS-Directories: games-puzzle/wmpuzzle/ games-puzzle/wmpuzzle/files/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: 74c7bfa57715e302930f9c3a9989f312b34ffb79 X-VCS-Branch: master Date: Sun, 1 Mar 2020 15:25:35 +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: e8445faf-2afa-4c09-9286-b01452983d54 X-Archives-Hash: e2d95093a4e77b92bcfa5128fb81bf34 commit: 74c7bfa57715e302930f9c3a9989f312b34ffb79 Author: Bernard Cafarelli gentoo org> AuthorDate: Sun Mar 1 15:24:59 2020 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Sun Mar 1 15:24:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74c7bfa5 games-puzzle/wmpuzzle: fix build with -fno-common Closes: https://bugs.gentoo.org/707160 Package-Manager: Portage-2.3.90, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli gentoo.org> .../wmpuzzle/files/wmpuzzle-0.5.2-gcc-10.patch | 24 ++++++++++++++++++++++ games-puzzle/wmpuzzle/wmpuzzle-0.5.2-r1.ebuild | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/games-puzzle/wmpuzzle/files/wmpuzzle-0.5.2-gcc-10.patch b/games-puzzle/wmpuzzle/files/wmpuzzle-0.5.2-gcc-10.patch new file mode 100644 index 00000000000..25b98e1dfc5 --- /dev/null +++ b/games-puzzle/wmpuzzle/files/wmpuzzle-0.5.2-gcc-10.patch @@ -0,0 +1,24 @@ +diff -Naur src.orig/wmgeneral.h src/wmgeneral.h +--- src.orig/wmgeneral.h 2002-10-19 11:33:41.000000000 +0200 ++++ src/wmgeneral.h 2020-03-01 16:22:30.891485480 +0100 +@@ -36,7 +36,7 @@ + /* Global variable */ + /*******************/ + +-Display *display; ++extern Display *display; + + /***********************/ + /* Function Prototypes */ +diff -Naur src.orig/wmpuzzle.c src/wmpuzzle.c +--- src.orig/wmpuzzle.c 2013-06-27 20:42:26.000000000 +0200 ++++ src/wmpuzzle.c 2020-03-01 16:22:28.716484905 +0100 +@@ -41,6 +41,8 @@ + int blank = 15, + puzzle[16] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; + ++Display *display; ++ + int main(int argc, char *argv[]) + { + int n, diff --git a/games-puzzle/wmpuzzle/wmpuzzle-0.5.2-r1.ebuild b/games-puzzle/wmpuzzle/wmpuzzle-0.5.2-r1.ebuild index 314b27ac091..46f9171fc91 100644 --- a/games-puzzle/wmpuzzle/wmpuzzle-0.5.2-r1.ebuild +++ b/games-puzzle/wmpuzzle/wmpuzzle-0.5.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -18,6 +18,7 @@ RDEPEND="x11-libs/libX11 x11-libs/libXpm" DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch ) S=${WORKDIR}/${P}/src src_install() {