1 |
commit: a459b41dcc9e37d3178a7198a95fb610a38aa566 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 5 12:21:40 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 12:30:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a459b41d |
7 |
|
8 |
net-misc/ncman: revbump for json-0.14 fixes |
9 |
|
10 |
Closes: https://bugs.gentoo.org/720726 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
13 |
|
14 |
.../ncman/files/ncman-fix-for-json-c-0.14.patch | 33 ++++++++++++++++++++ |
15 |
net-misc/ncman/ncman-0.0.1_p20190327-r2.ebuild | 36 ++++++++++++++++++++++ |
16 |
2 files changed, 69 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/ncman/files/ncman-fix-for-json-c-0.14.patch b/net-misc/ncman/files/ncman-fix-for-json-c-0.14.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..c0ff5ded937 |
21 |
--- /dev/null |
22 |
+++ b/net-misc/ncman/files/ncman-fix-for-json-c-0.14.patch |
23 |
@@ -0,0 +1,33 @@ |
24 |
+diff -ur a/src/json_regex.c b/src/json_regex.c |
25 |
+--- a/src/json_regex.c 2020-05-05 06:50:49.643196630 -0500 |
26 |
++++ b/src/json_regex.c 2020-05-05 06:59:32.722322215 -0500 |
27 |
+@@ -64,7 +64,7 @@ |
28 |
+ json_object_object_add(jregex_agent_response, "Username", json_object_new_string("^([[:print:]]*)$")); |
29 |
+ json_object_object_add(jregex_agent_response, "Password", json_object_new_string("^([[:print:]]*)$")); |
30 |
+ |
31 |
+- jregex_agent_retry_response = json_object_new_boolean(TRUE); |
32 |
++ jregex_agent_retry_response = json_object_new_boolean(1); |
33 |
+ |
34 |
+ // See commands.c __cmd_config_service for a better idea of the format. |
35 |
+ jregex_config_service = json_object_new_object(); |
36 |
+@@ -94,7 +94,7 @@ |
37 |
+ json_object_array_add(arr, json_object_new_string("^([[:print:]]*)$")); |
38 |
+ json_object_object_add(tmp, key_serv_proxy_excludes, arr); |
39 |
+ json_object_object_add(opt, key_serv_proxy_config, tmp); |
40 |
+- json_object_object_add(opt, key_serv_autoconnect, json_object_new_boolean(TRUE)); |
41 |
++ json_object_object_add(opt, key_serv_autoconnect, json_object_new_boolean(1)); |
42 |
+ arr = json_object_new_array(); |
43 |
+ json_object_array_add(arr, json_object_new_string("^([[:print:]]*)$")); |
44 |
+ json_object_object_add(opt, key_serv_domains_config, arr); |
45 |
+diff -ur a/src/json_utils.c b/src/json_utils.c |
46 |
+--- a/src/json_utils.c 2020-05-05 06:50:49.643196630 -0500 |
47 |
++++ b/src/json_utils.c 2020-05-05 06:59:46.140940810 -0500 |
48 |
+@@ -83,7 +83,7 @@ |
49 |
+ key_is_trusted = json_object_object_get_ex(jtrusted, key, |
50 |
+ &tmp_trusted); |
51 |
+ |
52 |
+- if (key_is_trusted == FALSE) |
53 |
++ if (key_is_trusted == 1) |
54 |
+ return false; |
55 |
+ |
56 |
+ res = __json_type_dispatch(val, tmp_trusted); |
57 |
|
58 |
diff --git a/net-misc/ncman/ncman-0.0.1_p20190327-r2.ebuild b/net-misc/ncman/ncman-0.0.1_p20190327-r2.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..c57a4f960f9 |
61 |
--- /dev/null |
62 |
+++ b/net-misc/ncman/ncman-0.0.1_p20190327-r2.ebuild |
63 |
@@ -0,0 +1,36 @@ |
64 |
+# Copyright 1999-2020 Gentoo Authors |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=7 |
68 |
+ |
69 |
+inherit flag-o-matic meson |
70 |
+COMMIT="21a55145ddbc5d085e91352586875abe92cff73b" |
71 |
+ |
72 |
+if [[ ${PV} == *9999* ]]; then |
73 |
+ inherit git-r3 |
74 |
+ EGIT_REPO_URI=https://github.com/l4rzy/ncman.git |
75 |
+else |
76 |
+ SRC_URI="https://github.com/l4rzy/ncman/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
77 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
78 |
+fi |
79 |
+ |
80 |
+DESCRIPTION="An ncurses UI for connman, forked from connman-json-client" |
81 |
+HOMEPAGE="https://github.com/l4rzy/ncman" |
82 |
+ |
83 |
+LICENSE="GPL-2" |
84 |
+SLOT="0" |
85 |
+IUSE="" |
86 |
+ |
87 |
+RDEPEND="dev-libs/json-c:0= |
88 |
+ >=sys-apps/dbus-1.4 |
89 |
+ sys-libs/ncurses:0=" |
90 |
+DEPEND="${RDEPEND}" |
91 |
+ |
92 |
+PATCHES=( "${FILESDIR}"/${PN}-fix-for-json-c-0.14.patch ) |
93 |
+ |
94 |
+[[ ${PV} == *9999* ]] || S="${WORKDIR}/${PN}-${COMMIT}" |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ append-cflags "-D_POSIX_C_SOURCE=200809L" |
99 |
+} |