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 99190158020 for ; Tue, 15 Nov 2022 02:22:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB2A0E0900; Tue, 15 Nov 2022 02:22:28 +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 AF6D5E0900 for ; Tue, 15 Nov 2022 02:22:28 +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 7EA95340E0D for ; Tue, 15 Nov 2022 02:22:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9FED0625 for ; Tue, 15 Nov 2022 02:22:25 +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: <1668476388.a089700a7e568e433e17d2b8c2f8c712c8f6cb3c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/bsdwhois/, net-misc/bsdwhois/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/bsdwhois/bsdwhois-1.43.2.1-r1.ebuild net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch X-VCS-Directories: net-misc/bsdwhois/ net-misc/bsdwhois/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a089700a7e568e433e17d2b8c2f8c712c8f6cb3c X-VCS-Branch: master Date: Tue, 15 Nov 2022 02:22:25 +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: c6a153d5-349f-4799-8532-5ce16b1aa717 X-Archives-Hash: 356aa558851ff9048b93e5a5c65adb6c commit: a089700a7e568e433e17d2b8c2f8c712c8f6cb3c Author: Pascal Jäger leimstift de> AuthorDate: Mon Oct 31 22:15:13 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Nov 15 01:39:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a089700a net-misc/bsdwhois: fix build for clang16 Closes: https://bugs.gentoo.org/875029 Signed-off-by: Pascal Jäger leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28057 Signed-off-by: Sam James gentoo.org> net-misc/bsdwhois/bsdwhois-1.43.2.1-r1.ebuild | 36 ++++++++++++++++++++++ .../files/bsdwhois-1.43.2.1-clang16-build.patch | 21 +++++++++++++ 2 files changed, 57 insertions(+) diff --git a/net-misc/bsdwhois/bsdwhois-1.43.2.1-r1.ebuild b/net-misc/bsdwhois/bsdwhois-1.43.2.1-r1.ebuild new file mode 100644 index 000000000000..2361c19c70eb --- /dev/null +++ b/net-misc/bsdwhois/bsdwhois-1.43.2.1-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools flag-o-matic + +DESCRIPTION="FreeBSD Whois Client" +HOMEPAGE="https://www.freebsd.org/" +SRC_URI="http://utenti.gufi.org/~drizzt/codes/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" + +PATCHES=( + "${FILESDIR}/${PN}-1.43.2.1-musl-cdefs.patch" + "${FILESDIR}/${PN}-1.43.2.1-clang16-build.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # bug #875029 + append-cppflags -D_GNU_SOURCE + default +} + +src_install() { + default + + mv "${ED}"/usr/share/man/man1/{whois,bsdwhois}.1 || die + mv "${ED}"/usr/bin/{whois,bsdwhois} || die +} diff --git a/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch b/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch new file mode 100644 index 000000000000..7f7052322b0b --- /dev/null +++ b/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch @@ -0,0 +1,21 @@ +Clang16 will not allow implicit function declarations and implicit integers etc. +This patch overhauls the source code for modern C. + +Bug: https://bugs.gentoo.org/875029 + +Signed-off-by: Pascal Jäger + +--- a/strnstr.c ++++ b/strnstr.c +@@ -46,10 +46,7 @@ static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93"; + * first slen characters of s. + */ + char * +-strnstr(s, find, slen) +- const char *s; +- const char *find; +- size_t slen; ++strnstr(const char *s, const char *find, size_t slen) + { + char c, sc; + size_t len;