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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB23715808B for ; Wed, 16 Mar 2022 19:28:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4154E088F; Wed, 16 Mar 2022 19:28:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B445EE088F for ; Wed, 16 Mar 2022 19:28:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 54CD534375C for ; Wed, 16 Mar 2022 19:28:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF717AF for ; Wed, 16 Mar 2022 19:28:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1647458868.200f9dbf94b916f196fabdc523d56f5d7b8b32fa.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/netsurf/files/, www-client/netsurf/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/netsurf/files/netsurf-3.10-gcc10-fno-common.patch www-client/netsurf/netsurf-3.10-r6.ebuild X-VCS-Directories: www-client/netsurf/files/ www-client/netsurf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 200f9dbf94b916f196fabdc523d56f5d7b8b32fa X-VCS-Branch: master Date: Wed, 16 Mar 2022 19:28:01 +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: 30d2cc24-9868-4e22-84f3-94ff02448d4a X-Archives-Hash: 3126f6ad7b0e6b4029f46b560647f7f0 commit: 200f9dbf94b916f196fabdc523d56f5d7b8b32fa Author: Sam James gentoo org> AuthorDate: Wed Mar 16 19:27:12 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Mar 16 19:27:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=200f9dbf www-client/netsurf: fix build with GCC 10 (-fno-common) Closes: https://bugs.gentoo.org/835379 Signed-off-by: Sam James gentoo.org> .../files/netsurf-3.10-gcc10-fno-common.patch | 23 ++++++++++++++++++++++ www-client/netsurf/netsurf-3.10-r6.ebuild | 1 + 2 files changed, 24 insertions(+) diff --git a/www-client/netsurf/files/netsurf-3.10-gcc10-fno-common.patch b/www-client/netsurf/files/netsurf-3.10-gcc10-fno-common.patch new file mode 100644 index 000000000000..677004c51750 --- /dev/null +++ b/www-client/netsurf/files/netsurf-3.10-gcc10-fno-common.patch @@ -0,0 +1,23 @@ +Backport of upstream fix: https://git.netsurf-browser.org/netsurf.git/commit/?id=434f6c3fe7d1d2c6a3e6ae6338608a4a4421ab1b + +https://bugs.netsurf-browser.org/mantis/view.php?id=2778 +https://bugs.gentoo.org/835379 +--- a/frontends/framebuffer/convert_font.c ++++ b/frontends/framebuffer/convert_font.c +@@ -290,14 +290,14 @@ bool generate_font_header(const char *path, struct font_data *data) + + + for (s = 0; s < 4; s++) { +- fprintf(fp, "const uint8_t *%s_section_table;\n", ++ fprintf(fp, "extern const uint8_t *%s_section_table;\n", + var_lables[s]); +- fprintf(fp, "const uint16_t *%s_sections;\n", ++ fprintf(fp, "extern const uint16_t *%s_sections;\n", + var_lables[s]); + + } + +- fprintf(fp, "const uint8_t *font_glyph_data;\n"); ++ fprintf(fp, "extern const uint8_t *font_glyph_data;\n"); + + fprintf(fp, "\n\n"); diff --git a/www-client/netsurf/netsurf-3.10-r6.ebuild b/www-client/netsurf/netsurf-3.10-r6.ebuild index 4cab447b2f86..a6961c60d25c 100644 --- a/www-client/netsurf/netsurf-3.10-r6.ebuild +++ b/www-client/netsurf/netsurf-3.10-r6.ebuild @@ -60,6 +60,7 @@ PATCHES=( "${FILESDIR}/${PN}-3.9-conditionally-include-image-headers.patch" "${FILESDIR}/${PN}-3.10-julia-libutf8proc-header-location.patch" "${FILESDIR}/${PN}-3.10-disable-failing-tests.patch" + "${FILESDIR}/${PN}-3.10-gcc10-fno-common.patch" ) DOCS=( README docs/using-framebuffer.md