Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/suite3270/, net-misc/suite3270/files/
Date: Sat, 30 Jul 2022 16:26:12
Message-Id: 1659198360.4682f355ba2c7615e1b5fe2f80b5bfa3e1bf2896.arthurzam@gentoo
1 commit: 4682f355ba2c7615e1b5fe2f80b5bfa3e1bf2896
2 Author: brahmajit das <listout <AT> protonmail <DOT> com>
3 AuthorDate: Sat Jul 23 18:38:40 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 16:26:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4682f355
7
8 net-misc/suite3270: Fix unknown type name wint_t on musl
9
10 While building on musl we get build error 'error: unknown type name
11 wint_t; did you mean ino_t?'. This patch fixes it.
12
13 Closes: https://bugs.gentoo.org/713618
14
15 Signed-off-by: brahmajit das <listout <AT> protonmail.com>
16 Closes: https://github.com/gentoo/gentoo/pull/26545
17 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
18
19 net-misc/suite3270/files/suite3270-4.1-musl-wint-t-fix.patch | 12 ++++++++++++
20 net-misc/suite3270/suite3270-4.1_p11.ebuild | 4 ++++
21 2 files changed, 16 insertions(+)
22
23 diff --git a/net-misc/suite3270/files/suite3270-4.1-musl-wint-t-fix.patch b/net-misc/suite3270/files/suite3270-4.1-musl-wint-t-fix.patch
24 new file mode 100644
25 index 000000000000..8a3330d24b4b
26 --- /dev/null
27 +++ b/net-misc/suite3270/files/suite3270-4.1-musl-wint-t-fix.patch
28 @@ -0,0 +1,12 @@
29 +# Fix unknown type name wint_t when building against musl
30 +# Closes: https://bugs.gentoo.org/713618
31 +--- a/c3270/screen.c
32 ++++ b/c3270/screen.c
33 +@@ -63,6 +63,7 @@
34 + #include "utils.h"
35 + #include "xio.h"
36 + #include "xscroll.h"
37 ++#include "wctype.h"
38 +
39 + #include "cscreen.h"
40 +
41
42 diff --git a/net-misc/suite3270/suite3270-4.1_p11.ebuild b/net-misc/suite3270/suite3270-4.1_p11.ebuild
43 index ff116d07cfcf..ed1340f214dc 100644
44 --- a/net-misc/suite3270/suite3270-4.1_p11.ebuild
45 +++ b/net-misc/suite3270/suite3270-4.1_p11.ebuild
46 @@ -64,6 +64,10 @@ src_prepare() {
47 export ac_cv_path_install="${S}/_install"
48 }
49
50 +PATCHES=(
51 + "${FILESDIR}"/${PN}-4.1-musl-wint-t-fix.patch
52 +)
53 +
54 src_configure() {
55 econf \
56 --cache-file="${S}"/config.cache \