summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2016-06-13 05:16:26 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:02 +0100
commitc6930da838df8e1cabe2f71180e02d1f6ecc15a6 (patch)
tree4dbf4b86e7043b70e6d2dca2a85b87f7d0b8ea90 /meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch
parent7028192246552fd9e4aa3674da9c30670fd4ec86 (diff)
downloadpoky-c6930da838df8e1cabe2f71180e02d1f6ecc15a6.tar.gz
dhcp: upgrade to 4.3.4
- Drop fix-external-bind.patch, which dhcp 4.3.4 supports option --with-libbind=PATH - Add tweak-to-support-external-bind.patch, tweak the external bind to oe-core's sysroot rather than external bind source build. - Drop CVE-2015-8605.patch, CVE-2016-2774.patch, dhcp 4.3.4 has fixed them - Add configure option --with-randomdev=/dev/random (From OE-Core rev: f9172ba3a26a1dc6fc010ed0f1300782fa411636) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch')
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch78
1 files changed, 43 insertions, 35 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch b/meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch
index b3f8fdb0a1..2f44147ad6 100644
--- a/meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch
+++ b/meta/recipes-connectivity/dhcp/dhcp/fixsepbuild.patch
@@ -4,80 +4,88 @@ Upstream-Status: Pending
4 4
5RP 2013/03/21 5RP 2013/03/21
6 6
7Rebase to 4.3.1 7Rebase to 4.3.4
8
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 9Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9--- 10---
11 client/Makefile.am | 4 ++--
12 common/Makefile.am | 3 ++-
13 dhcpctl/Makefile.am | 2 ++
14 omapip/Makefile.am | 1 +
15 relay/Makefile.am | 2 +-
16 server/Makefile.am | 2 +-
17 6 files changed, 9 insertions(+), 5 deletions(-)
18
10diff --git a/client/Makefile.am b/client/Makefile.am 19diff --git a/client/Makefile.am b/client/Makefile.am
11index 8411960..1740f72 100644 20index 2cb83d8..4730bb3 100644
12--- a/client/Makefile.am 21--- a/client/Makefile.am
13+++ b/client/Makefile.am 22+++ b/client/Makefile.am
14@@ -4,6 +4,8 @@ 23@@ -7,11 +7,11 @@ SUBDIRS = . tests
15 # production code. Sadly, we are not there yet. 24 BINDLIBDIR = @BINDDIR@/lib
16 SUBDIRS = . tests 25
26 AM_CPPFLAGS = -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
27- -DLOCALSTATEDIR='"$(localstatedir)"'
28+ -DLOCALSTATEDIR='"$(localstatedir)"' -I$(top_srcdir)/includes
17 29
18+AM_CPPFLAGS = -I$(top_srcdir)/includes
19+
20 dist_sysconf_DATA = dhclient.conf.example 30 dist_sysconf_DATA = dhclient.conf.example
21 sbin_PROGRAMS = dhclient 31 sbin_PROGRAMS = dhclient
22 dhclient_SOURCES = clparse.c dhclient.c dhc6.c \ 32-dhclient_SOURCES = clparse.c dhclient.c dhc6.c \
23@@ -17,8 +19,8 @@ EXTRA_DIST = $(man_MANS) 33+dhclient_SOURCES = $(srcdir)/clparse.c $(srcdir)/dhclient.c $(srcdir)/dhc6.c \
24 34 scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
25 dhclient.o: dhclient.c 35 scripts/netbsd scripts/nextstep scripts/openbsd \
26 $(COMPILE) -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \ 36 scripts/solaris scripts/openwrt
27- -DLOCALSTATEDIR='"$(localstatedir)"' -c dhclient.c
28+ -DLOCALSTATEDIR='"$(localstatedir)"' -c $(srcdir)/dhclient.c
29
30 dhc6.o: dhc6.c
31 $(COMPILE) -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
32- -DLOCALSTATEDIR='"$(localstatedir)"' -c dhc6.c
33+ -DLOCALSTATEDIR='"$(localstatedir)"' -c $(srcdir)/dhc6.c
34diff --git a/common/Makefile.am b/common/Makefile.am 37diff --git a/common/Makefile.am b/common/Makefile.am
35index eddef05..5ce045f 100644 38index 113aee8..0f24fbb 100644
36--- a/common/Makefile.am 39--- a/common/Makefile.am
37+++ b/common/Makefile.am 40+++ b/common/Makefile.am
38@@ -1,4 +1,4 @@ 41@@ -1,4 +1,5 @@
39-AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"' 42-AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"'
40+AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"' 43+AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"'
44+
41 AM_CFLAGS = $(LDAP_CFLAGS) 45 AM_CFLAGS = $(LDAP_CFLAGS)
42 46
43 noinst_LIBRARIES = libdhcp.a 47 noinst_LIBRARIES = libdhcp.a
44diff --git a/dhcpctl/Makefile.am b/dhcpctl/Makefile.am 48diff --git a/dhcpctl/Makefile.am b/dhcpctl/Makefile.am
45index 2987a53..cd72d75 100644 49index ceb0de1..ba8dd8b 100644
46--- a/dhcpctl/Makefile.am 50--- a/dhcpctl/Makefile.am
47+++ b/dhcpctl/Makefile.am 51+++ b/dhcpctl/Makefile.am
48@@ -1,3 +1,5 @@ 52@@ -1,5 +1,7 @@
53 BINDLIBDIR = @BINDDIR@/lib
54
49+AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_srcdir) 55+AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_srcdir)
50+ 56+
51 bin_PROGRAMS = omshell 57 bin_PROGRAMS = omshell
52 lib_LIBRARIES = libdhcpctl.a 58 lib_LIBRARIES = libdhcpctl.a
53 noinst_PROGRAMS = cltest 59 noinst_PROGRAMS = cltest
54diff --git a/omapip/Makefile.am b/omapip/Makefile.am 60diff --git a/omapip/Makefile.am b/omapip/Makefile.am
55index 5074479..9c0fab3 100644 61index 446a594..dd1afa0 100644
56--- a/omapip/Makefile.am 62--- a/omapip/Makefile.am
57+++ b/omapip/Makefile.am 63+++ b/omapip/Makefile.am
58@@ -1,3 +1,5 @@ 64@@ -1,4 +1,5 @@
65 BINDLIBDIR = @BINDDIR@/lib
59+AM_CPPFLAGS = -I$(top_srcdir)/includes 66+AM_CPPFLAGS = -I$(top_srcdir)/includes
60+ 67
61 lib_LIBRARIES = libomapi.a 68 lib_LIBRARIES = libomapi.a
62 noinst_PROGRAMS = svtest 69 noinst_PROGRAMS = svtest
63
64diff --git a/relay/Makefile.am b/relay/Makefile.am 70diff --git a/relay/Makefile.am b/relay/Makefile.am
65index ec72a31..f842071 100644 71index 3060eca..6d652f6 100644
66--- a/relay/Makefile.am 72--- a/relay/Makefile.am
67+++ b/relay/Makefile.am 73+++ b/relay/Makefile.am
68@@ -1,4 +1,4 @@ 74@@ -1,6 +1,6 @@
75 BINDLIBDIR = @BINDDIR@/lib
76
69-AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' 77-AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"'
70+AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes 78+AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes
71 79
72 sbin_PROGRAMS = dhcrelay 80 sbin_PROGRAMS = dhcrelay
73 dhcrelay_SOURCES = dhcrelay.c 81 dhcrelay_SOURCES = dhcrelay.c
74diff --git a/server/Makefile.am b/server/Makefile.am 82diff --git a/server/Makefile.am b/server/Makefile.am
75index a446f0b..d0b873a 100644 83index 54feedf..3990b9c 100644
76--- a/server/Makefile.am 84--- a/server/Makefile.am
77+++ b/server/Makefile.am 85+++ b/server/Makefile.am
78@@ -4,7 +4,7 @@ 86@@ -6,7 +6,7 @@ SUBDIRS = . tests
79 # production code. Sadly, we are not there yet. 87
80 SUBDIRS = . tests 88 BINDLIBDIR = @BINDDIR@/lib
81 89
82-AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"' 90-AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"'
83+AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes 91+AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes
@@ -85,5 +93,5 @@ index a446f0b..d0b873a 100644
85 dist_sysconf_DATA = dhcpd.conf.example 93 dist_sysconf_DATA = dhcpd.conf.example
86 sbin_PROGRAMS = dhcpd 94 sbin_PROGRAMS = dhcpd
87-- 95--
881.9.1 962.8.1
89 97