From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wget/files/, net-misc/wget/
Date: Sat, 2 May 2020 18:12:40 +0000 (UTC) [thread overview]
Message-ID: <1588443059.285b5666060df4ae4d66af4ae9623aa8009f27cb.whissi@gentoo> (raw)
commit: 285b5666060df4ae4d66af4ae9623aa8009f27cb
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat May 2 18:08:31 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> 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 <whissi <AT> 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?= <tim.ruehsen@gmx.de>
+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
}
next reply other threads:[~2020-05-02 18:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-02 18:12 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-28 4:04 [gentoo-commits] repo/gentoo:master commit in: net-misc/wget/files/, net-misc/wget/ Sam James
2021-09-08 8:21 Lars Wendler
2021-05-23 12:14 David Seifert
2021-01-02 18:52 Fabian Groffen
2018-05-15 14:35 Mikle Kolyada
2017-10-26 15:04 Thomas Deutschmann
2016-10-31 7:11 Lars Wendler
2016-05-30 10:26 Michael Haubenwallner
2015-11-17 13:08 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1588443059.285b5666060df4ae4d66af4ae9623aa8009f27cb.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox