From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/avahi/files/, net-dns/avahi/
Date: Sun, 6 Nov 2022 01:49:41 +0000 (UTC) [thread overview]
Message-ID: <1667699372.3e56cd93c27c158d848d6f495b3563816f49e888.sam@gentoo> (raw)
commit: 3e56cd93c27c158d848d6f495b3563816f49e888
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 5 23:58:31 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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 <sam@gentoo.org>
+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 <sam@gentoo.org>
+--- 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
+
next reply other threads:[~2022-11-06 1:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-06 1:49 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-28 15:23 [gentoo-commits] repo/gentoo:master commit in: net-dns/avahi/files/, net-dns/avahi/ Sam James
2025-01-06 22:58 Andreas Sturmlechner
2024-02-15 19:09 Patrick McLean
2021-04-24 15:49 Andreas Sturmlechner
2020-09-19 11:28 Michał Górny
2020-01-13 17:36 Anthony G. Basile
2018-01-21 3:33 Anthony G. Basile
2018-01-11 22:32 Andreas Sturmlechner
2015-09-25 2:03 Anthony G. Basile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1667699372.3e56cd93c27c158d848d6f495b3563816f49e888.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox