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 90363158020 for ; Sun, 6 Nov 2022 01:49:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6C06E0729; Sun, 6 Nov 2022 01:49:43 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97C68E0729 for ; Sun, 6 Nov 2022 01:49:43 +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 9DEEB34109E for ; Sun, 6 Nov 2022 01:49:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A8EA6E8 for ; Sun, 6 Nov 2022 01:49:41 +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: <1667699372.3e56cd93c27c158d848d6f495b3563816f49e888.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/avahi/files/, net-dns/avahi/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/avahi/avahi-0.8-r6.ebuild net-dns/avahi/avahi-0.8-r7.ebuild net-dns/avahi/files/avahi-0.8-strict-prototypes.patch X-VCS-Directories: net-dns/avahi/files/ net-dns/avahi/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3e56cd93c27c158d848d6f495b3563816f49e888 X-VCS-Branch: master Date: Sun, 6 Nov 2022 01:49:41 +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: 1acde07a-f723-403b-af4a-d3c3f9723e82 X-Archives-Hash: 03c845d4a85aff78a450c76bcc92f085 commit: 3e56cd93c27c158d848d6f495b3563816f49e888 Author: Sam James gentoo org> AuthorDate: Sat Nov 5 23:58:31 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Nov 6 01:49:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e56cd93 net-dns/avahi: fix configure w/ -Werror=strict-prototypes Signed-off-by: Sam James gentoo.org> .../{avahi-0.8-r6.ebuild => avahi-0.8-r7.ebuild} | 1 + .../avahi/files/avahi-0.8-strict-prototypes.patch | 38 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/net-dns/avahi/avahi-0.8-r6.ebuild b/net-dns/avahi/avahi-0.8-r7.ebuild similarity index 99% rename from net-dns/avahi/avahi-0.8-r6.ebuild rename to net-dns/avahi/avahi-0.8-r7.ebuild index 73f14ba3bf3c..ed36d9edfc0c 100644 --- a/net-dns/avahi/avahi-0.8-r6.ebuild +++ b/net-dns/avahi/avahi-0.8-r7.ebuild @@ -74,6 +74,7 @@ PATCHES=( "${FILESDIR}/${P}-dependency-error.patch" "${FILESDIR}/${P}-null-pointer-crash.patch" "${FILESDIR}/${P}-potentially-undefined-fix.patch" + "${FILESDIR}/${P}-strict-prototypes.patch" # These patches do not apply cleanly but may need to be re-instated. # I'll leave them commented out for now. # "${FILESDIR}/${PN}-0.7-qt5.patch" diff --git a/net-dns/avahi/files/avahi-0.8-strict-prototypes.patch b/net-dns/avahi/files/avahi-0.8-strict-prototypes.patch new file mode 100644 index 000000000000..3954aa4357ae --- /dev/null +++ b/net-dns/avahi/files/avahi-0.8-strict-prototypes.patch @@ -0,0 +1,38 @@ +https://github.com/lathiat/avahi/pull/405 + +From 54409e5af9c382117b67674756971f4f1bf646f8 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 5 Nov 2022 23:49:47 +0000 +Subject: [PATCH] configure.ac: fix -Wstrict-prototypes + +Fixes errors like: +``` +-ignoreme: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ++ignoreme: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] + void test_broken_ssp(c) + ^ +``` + +Signed-off-by: Sam James +--- a/configure.ac ++++ b/configure.ac +@@ -99,8 +99,7 @@ if test x"$enable_ssp" = x"yes"; then + LDFLAGS="$LDFLAGS -Wl,-z,defs" + cat confdefs.h > conftest.c + cat >>conftest.c <<_ACEOF +-void test_broken_ssp(c) +- const char *c; ++void test_broken_ssp(const char *c) + { + char arr[[123]], *p; /* beware of possible double-braces if copying this */ + for (p = arr; *c; ++p) { +@@ -300,7 +299,7 @@ AM_CONDITIONAL(TARGET_FREEBSD, test x"$with_distro" = xfreebsd) + AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware) + + test_gcc_flag() { +- AC_LANG_CONFTEST([int main() {}]) ++ AC_LANG_CONFTEST([int main(void) {}]) + $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null + ret=$? + rm -f conftest.o +