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 622B5138351 for ; Sat, 2 May 2020 18:12:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80FECE0B97; Sat, 2 May 2020 18:12:44 +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 69A06E0B97 for ; Sat, 2 May 2020 18:12:44 +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 9FECC34F2B2 for ; Sat, 2 May 2020 18:12:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24BC51D8 for ; Sat, 2 May 2020 18:12:40 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1588443059.285b5666060df4ae4d66af4ae9623aa8009f27cb.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wget/files/, net-misc/wget/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/wget/files/wget-1.20.3-gcc10-fno-common.patch net-misc/wget/wget-1.20.3-r3.ebuild X-VCS-Directories: net-misc/wget/files/ net-misc/wget/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 285b5666060df4ae4d66af4ae9623aa8009f27cb X-VCS-Branch: master Date: Sat, 2 May 2020 18:12: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: b60c7b19-d431-46ba-ba0a-e9252d78f169 X-Archives-Hash: 667a2a06c16b1e3a451e0b757f16ac50 commit: 285b5666060df4ae4d66af4ae9623aa8009f27cb Author: Thomas Deutschmann gentoo org> AuthorDate: Sat May 2 18:08:31 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat May 2 18:10:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=285b5666 net-misc/wget: fix building with gcc-10 Closes: https://bugs.gentoo.org/706458 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann gentoo.org> .../wget/files/wget-1.20.3-gcc10-fno-common.patch | 32 ++++++++++++++++++++++ net-misc/wget/wget-1.20.3-r3.ebuild | 2 ++ 2 files changed, 34 insertions(+) diff --git a/net-misc/wget/files/wget-1.20.3-gcc10-fno-common.patch b/net-misc/wget/files/wget-1.20.3-gcc10-fno-common.patch new file mode 100644 index 00000000000..3b99f4071af --- /dev/null +++ b/net-misc/wget/files/wget-1.20.3-gcc10-fno-common.patch @@ -0,0 +1,32 @@ +From 04b7369490344d014b05dee5d48ca78cd04733ce Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim=20R=C3=BChsen?= +Date: Sat, 22 Feb 2020 13:40:50 +0100 +Subject: [PATCH] * tests/unit-tests.c: Fix 'multiple definition of...' with + gcc 10 + +--- + tests/unit-tests.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/unit-tests.c b/tests/unit-tests.c +index 5fae8a219..f66e5e664 100644 +--- a/tests/unit-tests.c ++++ b/tests/unit-tests.c +@@ -37,7 +37,7 @@ as that of the covered work. */ + + #include "unit-tests.h" + +-const char *program_argstring = "TEST"; ++extern const char *program_argstring; + + static int tests_run; + +@@ -69,7 +69,7 @@ all_tests(void) + return NULL; + } + +-const char *program_name; /* Needed by lib/error.c. */ ++extern const char *program_name; /* Needed by lib/error.c. */ + + int + main (int argc _GL_UNUSED, const char *argv[]) diff --git a/net-misc/wget/wget-1.20.3-r3.ebuild b/net-misc/wget/wget-1.20.3-r3.ebuild index dc1e481def7..cc2ca822468 100644 --- a/net-misc/wget/wget-1.20.3-r3.ebuild +++ b/net-misc/wget/wget-1.20.3-r3.ebuild @@ -54,6 +54,8 @@ BDEPEND=" DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc ) +PATCHES=( "${FILESDIR}"/${P}-gcc10-fno-common.patch ) + pkg_setup() { use test && python-any-r1_pkg_setup }