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 3CDD513835A for ; Sun, 3 Jan 2021 09:58:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D700E0831; Sun, 3 Jan 2021 09:58:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 26513E0831 for ; Sun, 3 Jan 2021 09:58:30 +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 C858234103D for ; Sun, 3 Jan 2021 09:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B999332 for ; Sun, 3 Jan 2021 09:58:27 +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: <1609667902.01e4c90edad0b1b378df8c70219190177c8f1646.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mandoc/, app-text/mandoc/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/mandoc/files/mandoc-1.14.5-gcc10.patch app-text/mandoc/mandoc-1.14.5-r1.ebuild X-VCS-Directories: app-text/mandoc/files/ app-text/mandoc/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 01e4c90edad0b1b378df8c70219190177c8f1646 X-VCS-Branch: master Date: Sun, 3 Jan 2021 09:58:27 +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: ab2bbd46-9f0c-4590-b084-bdd335c23405 X-Archives-Hash: 8ba89d65f2c08d0fb5a309d6f6ed5483 commit: 01e4c90edad0b1b378df8c70219190177c8f1646 Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Jan 3 09:58:12 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Jan 3 09:58:22 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01e4c90e app-text/mandoc: tweak for gcc-10 Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/707254 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich gentoo.org> app-text/mandoc/files/mandoc-1.14.5-gcc10.patch | 54 +++++++++++++++++++++++++ app-text/mandoc/mandoc-1.14.5-r1.ebuild | 5 ++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/app-text/mandoc/files/mandoc-1.14.5-gcc10.patch b/app-text/mandoc/files/mandoc-1.14.5-gcc10.patch new file mode 100644 index 00000000000..6d976683772 --- /dev/null +++ b/app-text/mandoc/files/mandoc-1.14.5-gcc10.patch @@ -0,0 +1,54 @@ +https://cvsweb.bsd.lv/mandoc/compat_reallocarray.c.diff?r1=1.4&r2=1.5 +https://cvsweb.bsd.lv/mandoc/compat_getline.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2 + +https://bugs.gentoo.org/707254 +--- mandoc/compat_reallocarray.c 2014/12/11 09:05:01 1.4 ++++ mandoc/compat_reallocarray.c 2020/06/15 01:37:15 1.5 +@@ -1,8 +1,0 @@ +-#include "config.h" +- +-#if HAVE_REALLOCARRAY +- +-int dummy; +- +-#else +- +@@ -23,6 +15,7 @@ int dummy; + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ ++#include "config.h" + + #include + #include +@@ -45,5 +38,3 @@ reallocarray(void *optr, size_t nmemb, size_t size) + } + return realloc(optr, size * nmemb); + } +- +-#endif /*!HAVE_REALLOCARRAY*/ +--- mandoc/compat_getline.c 2015/11/07 20:52:52 1.1 ++++ mandoc/compat_getline.c 2020/06/15 01:37:14 1.2 +@@ -1,8 +1,0 @@ +-#include "config.h" +- +-#if HAVE_GETLINE +- +-int dummy; +- +-#else +- +@@ -22,6 +14,7 @@ int dummy; + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ ++#include "config.h" + + #include + #include +@@ -64,5 +57,3 @@ getline(char **buf, size_t *bufsz, FILE *fp) + return pos; + } + } +- +-#endif diff --git a/app-text/mandoc/mandoc-1.14.5-r1.ebuild b/app-text/mandoc/mandoc-1.14.5-r1.ebuild index 21e0f962475..cdc81d93654 100644 --- a/app-text/mandoc/mandoc-1.14.5-r1.ebuild +++ b/app-text/mandoc/mandoc-1.14.5-r1.ebuild @@ -24,7 +24,10 @@ BDEPEND=" cgi? ( app-text/highlight ) " -PATCHES=( "${FILESDIR}"/${PN}-1.14.5-r1-www-install.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-1.14.5-r1-www-install.patch + "${FILESDIR}"/${PN}-1.14.5-gcc10.patch +) pkg_pretend() { if use system-man ; then