public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/whowatch/, app-admin/whowatch/files/
Date: Wed, 30 Nov 2022 05:28:01 +0000 (UTC)	[thread overview]
Message-ID: <1669785125.4bb68b6cfd7361268182083af0ddb1c3219972f9.sam@gentoo> (raw)

commit:     4bb68b6cfd7361268182083af0ddb1c3219972f9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 30 05:12:05 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 05:12:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bb68b6c

app-admin/whowatch: fix configure w/ clang 16

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/whowatch-1.8.4-configure-clang16.patch   | 24 ++++++++++++++++++++++
 ...ch-1.8.6-r1.ebuild => whowatch-1.8.6-r2.ebuild} |  1 +
 2 files changed, 25 insertions(+)

diff --git a/app-admin/whowatch/files/whowatch-1.8.4-configure-clang16.patch b/app-admin/whowatch/files/whowatch-1.8.4-configure-clang16.patch
new file mode 100644
index 000000000000..243a1e543a0c
--- /dev/null
+++ b/app-admin/whowatch/files/whowatch-1.8.4-configure-clang16.patch
@@ -0,0 +1,24 @@
+https://github.com/mtsuszycki/whowatch/pull/12
+
+From 62688e7316de7d4c80591f83afc97d55d73ad272 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Sat, 26 Nov 2022 17:45:23 +0100
+Subject: [PATCH] configure.ac: Do not call undeclared exit function
+
+Implicit function declarations were removed from the C language in
+1999, and future compilers are likely to treat them as errors by
+default.
+--- a/configure.ac
++++ b/configure.ac
+@@ -120,8 +120,8 @@ fd_set rfds;
+ struct timeval tv = {1, 0};
+ FD_ZERO(&rfds); FD_SET(0,&rfds);
+ select(1,&rfds,0,0,&tv);
+-if(tv.tv_sec == 0) exit(0);
+-else exit(1);
++if(tv.tv_sec == 0) return 0;
++else return 1;
+ }
+ ]])],[AC_MSG_RESULT(yes); AC_DEFINE([RETURN_TV_IN_SELECT],[1],[define if select() modifies the time value])],[AC_MSG_RESULT(no)],[AC_MSG_RESULT(no)])
+ 
+

diff --git a/app-admin/whowatch/whowatch-1.8.6-r1.ebuild b/app-admin/whowatch/whowatch-1.8.6-r2.ebuild
similarity index 93%
rename from app-admin/whowatch/whowatch-1.8.6-r1.ebuild
rename to app-admin/whowatch/whowatch-1.8.6-r2.ebuild
index 75f41120c58b..bc6d1d06f686 100644
--- a/app-admin/whowatch/whowatch-1.8.6-r1.ebuild
+++ b/app-admin/whowatch/whowatch-1.8.6-r2.ebuild
@@ -19,6 +19,7 @@ BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.8.4-tinfo.patch
+	"${FILESDIR}"/${PN}-1.8.4-configure-clang16.patch
 )
 
 src_prepare() {


                 reply	other threads:[~2022-11-30  5:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1669785125.4bb68b6cfd7361268182083af0ddb1c3219972f9.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