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 0856A158094 for ; Mon, 3 Oct 2022 00:38:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DB7AE08A8; Mon, 3 Oct 2022 00:38:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23605E08A8 for ; Mon, 3 Oct 2022 00:38:25 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03C5733BEFE for ; Mon, 3 Oct 2022 00:38:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 586671E for ; Mon, 3 Oct 2022 00:38:22 +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: <1664757488.3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-mud/tf/files/, games-mud/tf/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch games-mud/tf/tf-5.0_beta8_p8-r1.ebuild games-mud/tf/tf-5.0_beta8_p8.ebuild X-VCS-Directories: games-mud/tf/ games-mud/tf/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa X-VCS-Branch: master Date: Mon, 3 Oct 2022 00:38:22 +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: 6936ec79-0a0f-4b3e-9a57-1619f27e91b4 X-Archives-Hash: aa4d63e6426aee1cda4ff9ac9eba262c commit: 3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa Author: Sam James gentoo org> AuthorDate: Sun Oct 2 19:33:25 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Oct 3 00:38:08 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b16b5c4 games-mud/tf: fix implicit function decls. (Clang 16+) There's other code quality issues but there's so many of these bugs that we need to just keep moving forward for now, e.g. ``` * socket.c:2657:27: warning: assignment to ‘String *’ from incompatible pointer type ‘conString *’ [-Wincompatible-pointer-types] ``` Closes: https://bugs.gentoo.org/871084 Signed-off-by: Sam James gentoo.org> ...ta8_p8-Fix-implicit-function-declarations.patch | 26 ++++++++++++++++++++++ ...0_beta8_p8.ebuild => tf-5.0_beta8_p8-r1.ebuild} | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch b/games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch new file mode 100644 index 000000000000..a8ff73a84201 --- /dev/null +++ b/games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch @@ -0,0 +1,26 @@ +From f0cf80b3034c4cad66608ddcec0709b3761adbfc Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 2 Oct 2022 20:31:30 +0100 +Subject: [PATCH] Fix implicit function declarations + +Bug: https://bugs.gentoo.org/871084 +--- a/src/malloc.h ++++ b/src/malloc.h +@@ -34,6 +34,7 @@ extern int low_memory_warning; + # define realloc(ptr, size) mrealloc(NULL, ptr, size) + # define free(ptr) mfree(NULL, ptr) + #else ++# include + # define mmalloc(md, size) malloc(size) + # define mcalloc(md, size) calloc(size) + # define mrealloc(md, ptr, size) realloc(ptr, size) +--- a/src/tfio.c ++++ b/src/tfio.c +@@ -46,6 +46,7 @@ static const char RCSid[] = "$Id: tfio.c,v 35004.114 2007/01/13 23:12:39 kkeys E + #include "keyboard.h" /* keyboard_pos */ + #include "expand.h" /* current_command */ + #include "cmdlist.h" ++#include "socket.h" + + TFILE *loadfile = NULL; /* currently /load'ing file */ + int loadline = 0; /* line number in /load'ing file */ diff --git a/games-mud/tf/tf-5.0_beta8_p8.ebuild b/games-mud/tf/tf-5.0_beta8_p8-r1.ebuild similarity index 94% rename from games-mud/tf/tf-5.0_beta8_p8.ebuild rename to games-mud/tf/tf-5.0_beta8_p8-r1.ebuild index 626bfecdddd9..753307b19424 100644 --- a/games-mud/tf/tf-5.0_beta8_p8.ebuild +++ b/games-mud/tf/tf-5.0_beta8_p8-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -37,6 +37,7 @@ PATCHES=( "${DISTDIR}"/tf-allrootpatch.txt "${DISTDIR}"/tf-allsrcpatch.txt "${FILESDIR}"/tf-50_beta8-pcre.patch + "${FILESDIR}"/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch ) src_configure() {