1 |
commit: 5dd27f1032275822f8303e9c5f48919a7e80bd6f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 24 01:58:55 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 03:13:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dd27f10 |
7 |
|
8 |
mail-client/mailx: fix build on musl |
9 |
|
10 |
Thanks-to: CFuga <cfuga <AT> cfuga.mx> |
11 |
Closes: https://bugs.gentoo.org/719512 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch | 17 +++++++++++++++++ |
15 |
mail-client/mailx/mailx-8.1.2.20180807.ebuild | 1 + |
16 |
2 files changed, 18 insertions(+) |
17 |
|
18 |
diff --git a/mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch b/mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch |
19 |
new file mode 100644 |
20 |
index 000000000000..d04ddd789e3a |
21 |
--- /dev/null |
22 |
+++ b/mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch |
23 |
@@ -0,0 +1,17 @@ |
24 |
+https://bugs.gentoo.org/719512 |
25 |
+ |
26 |
+Tiny definition copied from /usr/include/termios.h. |
27 |
+--- a/tty.c |
28 |
++++ b/tty.c |
29 |
+@@ -57,6 +57,10 @@ |
30 |
+ size_t cursor; |
31 |
+ }; |
32 |
+ |
33 |
++#ifndef CCEQ |
34 |
++#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE) |
35 |
++#endif |
36 |
++ |
37 |
+ static void tty_flush(struct tty *); |
38 |
+ static int tty_getc(struct tty *); |
39 |
+ static int tty_insert(struct tty *, int, int); |
40 |
+ |
41 |
|
42 |
diff --git a/mail-client/mailx/mailx-8.1.2.20180807.ebuild b/mail-client/mailx/mailx-8.1.2.20180807.ebuild |
43 |
index d542d75a55b2..4b3f28a1d294 100644 |
44 |
--- a/mail-client/mailx/mailx-8.1.2.20180807.ebuild |
45 |
+++ b/mail-client/mailx/mailx-8.1.2.20180807.ebuild |
46 |
@@ -33,6 +33,7 @@ src_prepare() { |
47 |
eapply "${WORKDIR}/debian/patches" |
48 |
eapply "${FILESDIR}/${PN}-8.1.2.20050715-offsetof.patch" |
49 |
eapply "${FILESDIR}/${PN}-8.1.2.20180807-fno-common.patch" |
50 |
+ eapply "${FILESDIR}/${PN}-8.1.2-20180807-musl-CCEQ.patch" |
51 |
eapply_user |
52 |
} |