1 |
commit: c85399a56ccef79c29a09334beb59abb10b87c7a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 19 01:48:44 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 01:48:44 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c85399a5 |
7 |
|
8 |
net-im/cpop: fix configure w/ clang 16 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/885705 |
11 |
Closes: https://bugs.gentoo.org/900072 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../{cpop-0.0.4-r1.ebuild => cpop-0.0.4-r2.ebuild} | 20 ++++++++++++++++---- |
15 |
.../cpop/files/cpop-0.0.4-implicit-func-decls.patch | 19 +++++++++++++++++++ |
16 |
2 files changed, 35 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/net-im/cpop/cpop-0.0.4-r1.ebuild b/net-im/cpop/cpop-0.0.4-r2.ebuild |
19 |
similarity index 67% |
20 |
rename from net-im/cpop/cpop-0.0.4-r1.ebuild |
21 |
rename to net-im/cpop/cpop-0.0.4-r2.ebuild |
22 |
index 9315a2381ea0..77c21027edcc 100644 |
23 |
--- a/net-im/cpop/cpop-0.0.4-r1.ebuild |
24 |
+++ b/net-im/cpop/cpop-0.0.4-r2.ebuild |
25 |
@@ -1,7 +1,9 @@ |
26 |
-# Copyright 1999-2021 Gentoo Authors |
27 |
+# Copyright 1999-2023 Gentoo Authors |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
|
30 |
-EAPI=7 |
31 |
+EAPI=8 |
32 |
+ |
33 |
+inherit autotools |
34 |
|
35 |
DESCRIPTION="GTK+ network popup message client. Compatible with the jpop protocol" |
36 |
HOMEPAGE="http://www.draxil.uklinux.net/hip/index.pl?page=cpop" |
37 |
@@ -11,14 +13,24 @@ LICENSE="GPL-2" |
38 |
SLOT="0" |
39 |
KEYWORDS="~amd64 ~ppc ~x86" |
40 |
|
41 |
-RDEPEND="dev-libs/glib:2 |
42 |
- x11-libs/gtk+:2" |
43 |
+RDEPEND=" |
44 |
+ dev-libs/glib:2 |
45 |
+ x11-libs/gtk+:2 |
46 |
+" |
47 |
DEPEND="${RDEPEND}" |
48 |
|
49 |
PATCHES=( |
50 |
"${FILESDIR}"/${P}-implicit-exit_memset_strlen.patch |
51 |
+ "${FILESDIR}"/${P}-implicit-func-decls.patch |
52 |
) |
53 |
|
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # Clang 16, bug #900072 |
58 |
+ eautoreconf |
59 |
+} |
60 |
+ |
61 |
src_install() { |
62 |
emake DESTDIR="${D}" install |
63 |
dodoc README |
64 |
|
65 |
diff --git a/net-im/cpop/files/cpop-0.0.4-implicit-func-decls.patch b/net-im/cpop/files/cpop-0.0.4-implicit-func-decls.patch |
66 |
new file mode 100644 |
67 |
index 000000000000..ff3977e18055 |
68 |
--- /dev/null |
69 |
+++ b/net-im/cpop/files/cpop-0.0.4-implicit-func-decls.patch |
70 |
@@ -0,0 +1,19 @@ |
71 |
+https://bugs.gentoo.org/885705 |
72 |
+--- a/pop_client.c |
73 |
++++ b/pop_client.c |
74 |
+@@ -2,6 +2,7 @@ |
75 |
+ #include <stdlib.h> |
76 |
+ #include <string.h> |
77 |
+ #include <sys/socket.h> |
78 |
++#include <unistd.h> |
79 |
+ #include <netinet/in.h> |
80 |
+ #include <arpa/inet.h> |
81 |
+ #include <errno.h> |
82 |
+--- a/pop_common.h |
83 |
++++ b/pop_common.h |
84 |
+@@ -3,4 +3,5 @@ |
85 |
+ #define CP_MSGSIZE 2048 |
86 |
+ #define CP_PORT 3233 |
87 |
+ void errquit(char *message); |
88 |
++void printquit(char *message); |
89 |
+ #endif |