diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-08-11 22:46:34 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-08-11 23:37:47 -0700 |
commit | 027440e5f62e01ae96e2c830cf673d11389cbd66 (patch) | |
tree | 705a821c98a0258cb34631b76a573f4ad5233a15 /meta-oe | |
parent | 4e04909323201952a9d83763d5aaa04f96c2e970 (diff) | |
download | meta-openembedded-027440e5f62e01ae96e2c830cf673d11389cbd66.tar.gz |
gensio: Upgrade to 2.1.4
Drop backported patch which is present in 2.1.4
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-connectivity/gensio/gensio/0001-filter-Rename-some-variables-to-tr_stdxxx.patch | 108 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/gensio/gensio_2.1.4.bb (renamed from meta-oe/recipes-connectivity/gensio/gensio_1.5.3.bb) | 4 |
2 files changed, 1 insertions, 111 deletions
diff --git a/meta-oe/recipes-connectivity/gensio/gensio/0001-filter-Rename-some-variables-to-tr_stdxxx.patch b/meta-oe/recipes-connectivity/gensio/gensio/0001-filter-Rename-some-variables-to-tr_stdxxx.patch deleted file mode 100644 index dbc48a213..000000000 --- a/meta-oe/recipes-connectivity/gensio/gensio/0001-filter-Rename-some-variables-to-tr_stdxxx.patch +++ /dev/null | |||
@@ -1,108 +0,0 @@ | |||
1 | From 601e6e56f44b91d957bb643662455f52540f336a Mon Sep 17 00:00:00 2001 | ||
2 | From: Corey Minyard <cminyard@mvista.com> | ||
3 | Date: Tue, 25 Feb 2020 16:08:40 -0600 | ||
4 | Subject: [PATCH] filter: Rename some variables to tr_stdxxx | ||
5 | |||
6 | stdout and stderr can be macros, don't use the names directly. | ||
7 | |||
8 | Signed-off-by: Corey Minyard <cminyard@mvista.com> | ||
9 | Upstream-Status: Backport [https://github.com/cminyard/gensio/commit/601e6e56f44b91d957bb643662455f52540f336a] | ||
10 | Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> | ||
11 | --- | ||
12 | lib/gensio_filter_trace.c | 28 ++++++++++++++-------------- | ||
13 | 1 file changed, 14 insertions(+), 14 deletions(-) | ||
14 | |||
15 | diff --git a/lib/gensio_filter_trace.c b/lib/gensio_filter_trace.c | ||
16 | index d39d58b..abe2db6 100644 | ||
17 | --- a/lib/gensio_filter_trace.c | ||
18 | +++ b/lib/gensio_filter_trace.c | ||
19 | @@ -32,8 +32,8 @@ struct trace_filter { | ||
20 | enum trace_dir dir; | ||
21 | bool raw; | ||
22 | char *filename; | ||
23 | - bool stdout; | ||
24 | - bool stderr; | ||
25 | + bool tr_stdout; | ||
26 | + bool tr_stderr; | ||
27 | |||
28 | FILE *tr; | ||
29 | }; | ||
30 | @@ -82,9 +82,9 @@ trace_try_connect(struct gensio_filter *filter, struct timeval *timeout) | ||
31 | { | ||
32 | struct trace_filter *tfilter = filter_to_trace(filter); | ||
33 | |||
34 | - if (tfilter->stdout) { | ||
35 | + if (tfilter->tr_stdout) { | ||
36 | tfilter->tr = stdout; | ||
37 | - } else if (tfilter->stderr) { | ||
38 | + } else if (tfilter->tr_stderr) { | ||
39 | tfilter->tr = stderr; | ||
40 | } else if (tfilter->filename) { | ||
41 | tfilter->tr = fopen(tfilter->filename, "a+"); | ||
42 | @@ -99,7 +99,7 @@ trace_try_disconnect(struct gensio_filter *filter, struct timeval *timeout) | ||
43 | { | ||
44 | struct trace_filter *tfilter = filter_to_trace(filter); | ||
45 | |||
46 | - if (!tfilter->stdout && !tfilter->stderr && tfilter->tr) | ||
47 | + if (!tfilter->tr_stdout && !tfilter->tr_stderr && tfilter->tr) | ||
48 | fclose(tfilter->tr); | ||
49 | tfilter->tr = NULL; | ||
50 | return 0; | ||
51 | @@ -331,12 +331,12 @@ static int gensio_trace_filter_func(struct gensio_filter *filter, int op, | ||
52 | |||
53 | static struct gensio_filter * | ||
54 | gensio_trace_filter_raw_alloc(struct gensio_os_funcs *o, enum trace_dir dir, | ||
55 | - bool raw, const char *filename, bool stdout, | ||
56 | - bool stderr) | ||
57 | + bool raw, const char *filename, bool tr_stdout, | ||
58 | + bool tr_stderr) | ||
59 | { | ||
60 | struct trace_filter *tfilter; | ||
61 | |||
62 | - if (!filename && !stdout && !stderr) | ||
63 | + if (!filename && !tr_stdout && !tr_stderr) | ||
64 | dir = TRACE_NONE; | ||
65 | |||
66 | tfilter = o->zalloc(o, sizeof(*tfilter)); | ||
67 | @@ -351,8 +351,8 @@ gensio_trace_filter_raw_alloc(struct gensio_os_funcs *o, enum trace_dir dir, | ||
68 | if (!tfilter->filename) | ||
69 | goto out_nomem; | ||
70 | } | ||
71 | - tfilter->stdout = stdout; | ||
72 | - tfilter->stderr = stderr; | ||
73 | + tfilter->tr_stdout = tr_stdout; | ||
74 | + tfilter->tr_stderr = tr_stderr; | ||
75 | |||
76 | tfilter->lock = o->alloc_lock(o); | ||
77 | if (!tfilter->lock) | ||
78 | @@ -385,7 +385,7 @@ gensio_trace_filter_alloc(struct gensio_os_funcs *o, | ||
79 | { | ||
80 | struct gensio_filter *filter; | ||
81 | int dir = TRACE_NONE; | ||
82 | - bool raw = false, stdout = false, stderr = false; | ||
83 | + bool raw = false, tr_stdout = false, tr_stderr = false; | ||
84 | const char *filename = NULL; | ||
85 | unsigned int i; | ||
86 | |||
87 | @@ -396,15 +396,15 @@ gensio_trace_filter_alloc(struct gensio_os_funcs *o, | ||
88 | continue; | ||
89 | if (gensio_check_keyvalue(args[i], "file", &filename) > 0) | ||
90 | continue; | ||
91 | - if (gensio_check_keybool(args[i], "stdout", &stdout) > 0) | ||
92 | + if (gensio_check_keybool(args[i], "stdout", &tr_stdout) > 0) | ||
93 | continue; | ||
94 | - if (gensio_check_keybool(args[i], "stderr", &stderr) > 0) | ||
95 | + if (gensio_check_keybool(args[i], "stderr", &tr_stderr) > 0) | ||
96 | continue; | ||
97 | return GE_INVAL; | ||
98 | } | ||
99 | |||
100 | filter = gensio_trace_filter_raw_alloc(o, dir, raw, filename, | ||
101 | - stdout, stderr); | ||
102 | + tr_stdout, tr_stderr); | ||
103 | if (!filter) | ||
104 | return GE_NOMEM; | ||
105 | |||
106 | -- | ||
107 | 2.7.4 | ||
108 | |||
diff --git a/meta-oe/recipes-connectivity/gensio/gensio_1.5.3.bb b/meta-oe/recipes-connectivity/gensio/gensio_2.1.4.bb index 8c97662df..9d73da90d 100644 --- a/meta-oe/recipes-connectivity/gensio/gensio_1.5.3.bb +++ b/meta-oe/recipes-connectivity/gensio/gensio_2.1.4.bb | |||
@@ -5,11 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a0fd36908af843bcee10cb6dfc47fa67 \ | |||
5 | file://COPYING;md5=bae3019b4c6dc4138c217864bd04331f \ | 5 | file://COPYING;md5=bae3019b4c6dc4138c217864bd04331f \ |
6 | " | 6 | " |
7 | 7 | ||
8 | SRCREV = "95ec1ab31ee97411fc37156d12061adcf0331598" | 8 | SRCREV = "998a017076a86179696a3ad811e2bae9155e46cb" |
9 | PV = "1.5.3+git${SRCPV}" | ||
10 | 9 | ||
11 | SRC_URI = "git://github.com/cminyard/gensio;protocol=https \ | 10 | SRC_URI = "git://github.com/cminyard/gensio;protocol=https \ |
12 | file://0001-filter-Rename-some-variables-to-tr_stdxxx.patch \ | ||
13 | " | 11 | " |
14 | 12 | ||
15 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |