diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-02-06 06:53:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:02 +0000 |
commit | cc7164836097a4100dce65e93b24a3a8874f65b3 (patch) | |
tree | 9c142562ffd15a09e3e6cb2876032268be171e19 /meta/recipes-connectivity | |
parent | d16884504627477496a39043e658ce0ebb69f830 (diff) | |
download | poky-cc7164836097a4100dce65e93b24a3a8874f65b3.tar.gz |
dhcp: upgrade 4.4.1 -> 4.4.2
0001-Fix-a-NSUPDATE-compiling-issue.patch
0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch
Removed since they are included in 4.4.2.
refresh the following patch:
0004-Fix-out-of-tree-builds.patch
(From OE-Core rev: d3c6f7e689a743fd060755eceb60353093013e84)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp/0001-Fix-a-NSUPDATE-compiling-issue.patch | 68 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp/0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch | 79 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp/0004-Fix-out-of-tree-builds.patch | 6 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb (renamed from meta/recipes-connectivity/dhcp/dhcp_4.4.1.bb) | 6 |
4 files changed, 6 insertions, 153 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp/0001-Fix-a-NSUPDATE-compiling-issue.patch b/meta/recipes-connectivity/dhcp/dhcp/0001-Fix-a-NSUPDATE-compiling-issue.patch deleted file mode 100644 index f12a112fcf..0000000000 --- a/meta/recipes-connectivity/dhcp/dhcp/0001-Fix-a-NSUPDATE-compiling-issue.patch +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | From a59cb98a473caa2afd64d7ae368480b6e9f91b3f Mon Sep 17 00:00:00 2001 | ||
2 | From: Ming Liu <liu.ming50@gmail.com> | ||
3 | Date: Tue, 14 May 2019 11:07:15 +0200 | ||
4 | Subject: [PATCH] Fix a NSUPDATE compiling issue | ||
5 | |||
6 | Upstream-Status: Pending [Patch sent to: https://gitlab.isc.org/isc-projects/dhcp/issues/16] | ||
7 | |||
8 | A following error was observed when NSUPDATE is not defined: | ||
9 | | omapip/isclib.c: In function 'dns_client_init': | ||
10 | | omapip/isclib.c:356:18: error: 'dhcp_context_t {aka struct dhcp_context}' has no member named 'dnsclient' | ||
11 | | if (dhcp_gbl_ctx.dnsclient == NULL) { | ||
12 | | ^ | ||
13 | | omapip/isclib.c:363:24: error: 'dhcp_context_t {aka struct dhcp_context}' has no member named 'dnsclient' | ||
14 | | &dhcp_gbl_ctx.dnsclient, | ||
15 | | ^ | ||
16 | | omapip/isclib.c:364:24: error: 'dhcp_context_t {aka struct dhcp_context}' has no member named 'use_local4' | ||
17 | | (dhcp_gbl_ctx.use_local4 ? | ||
18 | | ^ | ||
19 | | omapip/isclib.c:365:25: error: 'dhcp_context_t {aka struct dhcp_context}' has no member named 'local4_sockaddr' | ||
20 | | &dhcp_gbl_ctx.local4_sockaddr | ||
21 | | ^ | ||
22 | | omapip/isclib.c:367:24: error: 'dhcp_context_t {aka struct dhcp_context}' has no member named 'use_local6' | ||
23 | | (dhcp_gbl_ctx.use_local6 ? | ||
24 | | ^ | ||
25 | | omapip/isclib.c:368:25: error: 'dhcp_context_t {aka struct dhcp_context}' has no member named 'local6_sockaddr' | ||
26 | | &dhcp_gbl_ctx.local6_sockaddr | ||
27 | |||
28 | Fix it by adding NSUPDATE conditional checking. | ||
29 | |||
30 | Signed-off-by: Ming Liu <liu.ming50@gmail.com> | ||
31 | --- | ||
32 | includes/omapip/isclib.h | 2 ++ | ||
33 | omapip/isclib.c | 2 ++ | ||
34 | 2 files changed, 4 insertions(+) | ||
35 | |||
36 | diff --git a/includes/omapip/isclib.h b/includes/omapip/isclib.h | ||
37 | index 538b927..6c20584 100644 | ||
38 | --- a/includes/omapip/isclib.h | ||
39 | +++ b/includes/omapip/isclib.h | ||
40 | @@ -141,6 +141,8 @@ void isclib_cleanup(void); | ||
41 | void dhcp_signal_handler(int signal); | ||
42 | extern int shutdown_signal; | ||
43 | |||
44 | +#if defined (NSUPDATE) | ||
45 | isc_result_t dns_client_init(); | ||
46 | +#endif | ||
47 | |||
48 | #endif /* ISCLIB_H */ | ||
49 | diff --git a/omapip/isclib.c b/omapip/isclib.c | ||
50 | index db3b895..ce4b4a1 100644 | ||
51 | --- a/omapip/isclib.c | ||
52 | +++ b/omapip/isclib.c | ||
53 | @@ -351,6 +351,7 @@ void dhcp_signal_handler(int signal) { | ||
54 | } | ||
55 | } | ||
56 | |||
57 | +#if defined (NSUPDATE) | ||
58 | isc_result_t dns_client_init() { | ||
59 | isc_result_t result; | ||
60 | if (dhcp_gbl_ctx.dnsclient == NULL) { | ||
61 | @@ -387,3 +388,4 @@ isc_result_t dns_client_init() { | ||
62 | |||
63 | return ISC_R_SUCCESS; | ||
64 | } | ||
65 | +#endif | ||
66 | -- | ||
67 | 2.7.4 | ||
68 | |||
diff --git a/meta/recipes-connectivity/dhcp/dhcp/0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch b/meta/recipes-connectivity/dhcp/dhcp/0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch deleted file mode 100644 index 1bc1422475..0000000000 --- a/meta/recipes-connectivity/dhcp/dhcp/0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | From 8194daabfd590f17825f0c61e9534bee5c99cc86 Mon Sep 17 00:00:00 2001 | ||
2 | From: Thomas Markwalder <tmark@isc.org> | ||
3 | Date: Fri, 14 Sep 2018 13:41:41 -0400 | ||
4 | Subject: [master] Added includes of new BIND9 compatibility headers | ||
5 | |||
6 | Merges in rt48072. | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Signed-off-by: Adrian Bunk <bunk@stusta.de> | ||
10 | |||
11 | diff --git a/includes/omapip/isclib.h b/includes/omapip/isclib.h | ||
12 | index 75a87ff6..538b927f 100644 | ||
13 | --- a/includes/omapip/isclib.h | ||
14 | +++ b/includes/omapip/isclib.h | ||
15 | @@ -48,6 +48,9 @@ | ||
16 | #include <string.h> | ||
17 | #include <netdb.h> | ||
18 | |||
19 | +#include <isc/boolean.h> | ||
20 | +#include <isc/int.h> | ||
21 | + | ||
22 | #include <isc/buffer.h> | ||
23 | #include <isc/lex.h> | ||
24 | #include <isc/lib.h> | ||
25 | diff --git a/includes/omapip/result.h b/includes/omapip/result.h | ||
26 | index 91243e1b..860298f6 100644 | ||
27 | --- a/includes/omapip/result.h | ||
28 | +++ b/includes/omapip/result.h | ||
29 | @@ -26,6 +26,7 @@ | ||
30 | #ifndef DHCP_RESULT_H | ||
31 | #define DHCP_RESULT_H 1 | ||
32 | |||
33 | +#include <isc/boolean.h> | ||
34 | #include <isc/lang.h> | ||
35 | #include <isc/resultclass.h> | ||
36 | #include <isc/types.h> | ||
37 | diff --git a/server/dhcpv6.c b/server/dhcpv6.c | ||
38 | index a7110f98..cde4f617 100644 | ||
39 | --- a/server/dhcpv6.c | ||
40 | +++ b/server/dhcpv6.c | ||
41 | @@ -1034,7 +1034,8 @@ void check_pool6_threshold(struct reply_state *reply, | ||
42 | shared_name, | ||
43 | inet_ntop(AF_INET6, &lease->addr, | ||
44 | tmp_addr, sizeof(tmp_addr)), | ||
45 | - used, count); | ||
46 | + (long long unsigned)(used), | ||
47 | + (long long unsigned)(count)); | ||
48 | } | ||
49 | return; | ||
50 | } | ||
51 | @@ -1066,7 +1067,8 @@ void check_pool6_threshold(struct reply_state *reply, | ||
52 | "address: %s; high threshold %d%% %llu/%llu.", | ||
53 | shared_name, | ||
54 | inet_ntop(AF_INET6, &lease->addr, tmp_addr, sizeof(tmp_addr)), | ||
55 | - poolhigh, used, count); | ||
56 | + poolhigh, (long long unsigned)(used), | ||
57 | + (long long unsigned)(count)); | ||
58 | |||
59 | /* handle the low threshold now, if we don't | ||
60 | * have one we default to 0. */ | ||
61 | @@ -1436,12 +1438,15 @@ pick_v6_address(struct reply_state *reply) | ||
62 | log_debug("Unable to pick client address: " | ||
63 | "no addresses available - shared network %s: " | ||
64 | " 2^64-1 < total, %llu active, %llu abandoned", | ||
65 | - shared_name, active - abandoned, abandoned); | ||
66 | + shared_name, (long long unsigned)(active - abandoned), | ||
67 | + (long long unsigned)(abandoned)); | ||
68 | } else { | ||
69 | log_debug("Unable to pick client address: " | ||
70 | "no addresses available - shared network %s: " | ||
71 | "%llu total, %llu active, %llu abandoned", | ||
72 | - shared_name, total, active - abandoned, abandoned); | ||
73 | + shared_name, (long long unsigned)(total), | ||
74 | + (long long unsigned)(active - abandoned), | ||
75 | + (long long unsigned)(abandoned)); | ||
76 | } | ||
77 | |||
78 | return ISC_R_NORESOURCES; | ||
79 | |||
diff --git a/meta/recipes-connectivity/dhcp/dhcp/0004-Fix-out-of-tree-builds.patch b/meta/recipes-connectivity/dhcp/dhcp/0004-Fix-out-of-tree-builds.patch index b71c93dd6d..7b57730ffb 100644 --- a/meta/recipes-connectivity/dhcp/dhcp/0004-Fix-out-of-tree-builds.patch +++ b/meta/recipes-connectivity/dhcp/dhcp/0004-Fix-out-of-tree-builds.patch | |||
@@ -85,9 +85,11 @@ Index: dhcp-4.4.1/relay/Makefile.am | |||
85 | =================================================================== | 85 | =================================================================== |
86 | --- dhcp-4.4.1.orig/relay/Makefile.am | 86 | --- dhcp-4.4.1.orig/relay/Makefile.am |
87 | +++ dhcp-4.4.1/relay/Makefile.am | 87 | +++ dhcp-4.4.1/relay/Makefile.am |
88 | @@ -1,4 +1,4 @@ | 88 | @@ -1,6 +1,6 @@ |
89 | SUBDIRS = . tests | ||
90 | |||
89 | -AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' | 91 | -AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' |
90 | +AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes | 92 | +AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes |
91 | 93 | ||
92 | sbin_PROGRAMS = dhcrelay | 94 | sbin_PROGRAMS = dhcrelay |
93 | dhcrelay_SOURCES = dhcrelay.c | 95 | dhcrelay_SOURCES = dhcrelay.c |
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.4.1.bb b/meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb index 020777b8f2..b56a204821 100644 --- a/meta/recipes-connectivity/dhcp/dhcp_4.4.1.bb +++ b/meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb | |||
@@ -9,13 +9,11 @@ SRC_URI += "file://0001-define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.pat | |||
9 | file://0009-remove-dhclient-script-bash-dependency.patch \ | 9 | file://0009-remove-dhclient-script-bash-dependency.patch \ |
10 | file://0012-dhcp-correct-the-intention-for-xml2-lib-search.patch \ | 10 | file://0012-dhcp-correct-the-intention-for-xml2-lib-search.patch \ |
11 | file://0013-fixup_use_libbind.patch \ | 11 | file://0013-fixup_use_libbind.patch \ |
12 | file://0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch \ | ||
13 | file://0001-Fix-a-NSUPDATE-compiling-issue.patch \ | ||
14 | file://0001-workaround-busybox-limitation-in-linux-dhclient-script.patch \ | 12 | file://0001-workaround-busybox-limitation-in-linux-dhclient-script.patch \ |
15 | " | 13 | " |
16 | 14 | ||
17 | SRC_URI[md5sum] = "18c7f4dcbb0a63df25098216d47b1ede" | 15 | SRC_URI[md5sum] = "2afdaf8498dc1edaf3012efdd589b3e1" |
18 | SRC_URI[sha256sum] = "2a22508922ab367b4af4664a0472dc220cc9603482cf3c16d9aff14f3a76b608" | 16 | SRC_URI[sha256sum] = "1a7ccd64a16e5e68f7b5e0f527fd07240a2892ea53fe245620f4f5f607004521" |
19 | 17 | ||
20 | LDFLAGS_append = " -pthread" | 18 | LDFLAGS_append = " -pthread" |
21 | 19 | ||