Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/whowatch/, app-admin/whowatch/files/
Date: Wed, 30 Nov 2022 05:28:05
Message-Id: 1669785125.4bb68b6cfd7361268182083af0ddb1c3219972f9.sam@gentoo
1 commit: 4bb68b6cfd7361268182083af0ddb1c3219972f9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 05:12:05 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 05:12:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bb68b6c
7
8 app-admin/whowatch: fix configure w/ clang 16
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../files/whowatch-1.8.4-configure-clang16.patch | 24 ++++++++++++++++++++++
13 ...ch-1.8.6-r1.ebuild => whowatch-1.8.6-r2.ebuild} | 1 +
14 2 files changed, 25 insertions(+)
15
16 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
17 new file mode 100644
18 index 000000000000..243a1e543a0c
19 --- /dev/null
20 +++ b/app-admin/whowatch/files/whowatch-1.8.4-configure-clang16.patch
21 @@ -0,0 +1,24 @@
22 +https://github.com/mtsuszycki/whowatch/pull/12
23 +
24 +From 62688e7316de7d4c80591f83afc97d55d73ad272 Mon Sep 17 00:00:00 2001
25 +From: Florian Weimer <fweimer@××××××.com>
26 +Date: Sat, 26 Nov 2022 17:45:23 +0100
27 +Subject: [PATCH] configure.ac: Do not call undeclared exit function
28 +
29 +Implicit function declarations were removed from the C language in
30 +1999, and future compilers are likely to treat them as errors by
31 +default.
32 +--- a/configure.ac
33 ++++ b/configure.ac
34 +@@ -120,8 +120,8 @@ fd_set rfds;
35 + struct timeval tv = {1, 0};
36 + FD_ZERO(&rfds); FD_SET(0,&rfds);
37 + select(1,&rfds,0,0,&tv);
38 +-if(tv.tv_sec == 0) exit(0);
39 +-else exit(1);
40 ++if(tv.tv_sec == 0) return 0;
41 ++else return 1;
42 + }
43 + ]])],[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)])
44 +
45 +
46
47 diff --git a/app-admin/whowatch/whowatch-1.8.6-r1.ebuild b/app-admin/whowatch/whowatch-1.8.6-r2.ebuild
48 similarity index 93%
49 rename from app-admin/whowatch/whowatch-1.8.6-r1.ebuild
50 rename to app-admin/whowatch/whowatch-1.8.6-r2.ebuild
51 index 75f41120c58b..bc6d1d06f686 100644
52 --- a/app-admin/whowatch/whowatch-1.8.6-r1.ebuild
53 +++ b/app-admin/whowatch/whowatch-1.8.6-r2.ebuild
54 @@ -19,6 +19,7 @@ BDEPEND="virtual/pkgconfig"
55
56 PATCHES=(
57 "${FILESDIR}"/${PN}-1.8.4-tinfo.patch
58 + "${FILESDIR}"/${PN}-1.8.4-configure-clang16.patch
59 )
60
61 src_prepare() {