diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-21 14:28:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-22 16:54:37 +0000 |
commit | dacf40d50323910fbba125d17accdb49543657e9 (patch) | |
tree | b2f9db5441bfafa33b6bbe1bd445c45d3f175a88 /meta | |
parent | 29a1c77d219f8c39f7aeb9afe1e5b303e4772fc3 (diff) | |
download | poky-dacf40d50323910fbba125d17accdb49543657e9.tar.gz |
dhcp: Fix case where ${B} != ${S}
Add patch to allow out of tree builds to work.
(From OE-Core rev: a3238c1e1317c4fd5526c8854403a2160cb51bb0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp-4.2.5/fixsepbuild.patch | 90 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp_4.2.5.bb | 1 |
2 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp-4.2.5/fixsepbuild.patch b/meta/recipes-connectivity/dhcp/dhcp-4.2.5/fixsepbuild.patch new file mode 100644 index 0000000000..e686afd2d2 --- /dev/null +++ b/meta/recipes-connectivity/dhcp/dhcp-4.2.5/fixsepbuild.patch | |||
@@ -0,0 +1,90 @@ | |||
1 | Fix out of tree builds | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | RP 2013/03/21 | ||
6 | |||
7 | Index: dhcp-4.2.5/common/Makefile.am | ||
8 | =================================================================== | ||
9 | --- dhcp-4.2.5.orig/common/Makefile.am 2013-03-21 12:54:11.345063519 +0000 | ||
10 | +++ dhcp-4.2.5/common/Makefile.am 2013-03-21 12:54:11.805063510 +0000 | ||
11 | @@ -1,4 +1,4 @@ | ||
12 | -AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"' | ||
13 | +AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"' | ||
14 | AM_CFLAGS = $(LDAP_CFLAGS) | ||
15 | |||
16 | noinst_LIBRARIES = libdhcp.a | ||
17 | Index: dhcp-4.2.5/dst/Makefile.am | ||
18 | =================================================================== | ||
19 | --- dhcp-4.2.5.orig/dst/Makefile.am 2013-03-21 12:54:11.345063519 +0000 | ||
20 | +++ dhcp-4.2.5/dst/Makefile.am 2013-03-21 12:54:11.805063510 +0000 | ||
21 | @@ -1,4 +1,4 @@ | ||
22 | -AM_CPPFLAGS = -DMINIRES_LIB -DHMAC_MD5 | ||
23 | +AM_CPPFLAGS = -DMINIRES_LIB -DHMAC_MD5 -I$(top_srcdir)/includes | ||
24 | |||
25 | lib_LIBRARIES = libdst.a | ||
26 | |||
27 | Index: dhcp-4.2.5/omapip/Makefile.am | ||
28 | =================================================================== | ||
29 | --- dhcp-4.2.5.orig/omapip/Makefile.am 2013-03-21 12:54:11.677063511 +0000 | ||
30 | +++ dhcp-4.2.5/omapip/Makefile.am 2013-03-21 12:54:11.809063510 +0000 | ||
31 | @@ -1,3 +1,5 @@ | ||
32 | +AM_CPPFLAGS = -I$(top_srcdir)/includes | ||
33 | + | ||
34 | lib_LIBRARIES = libomapi.a | ||
35 | noinst_PROGRAMS = svtest | ||
36 | |||
37 | Index: dhcp-4.2.5/client/Makefile.am | ||
38 | =================================================================== | ||
39 | --- dhcp-4.2.5.orig/client/Makefile.am 2013-03-21 12:54:11.677063511 +0000 | ||
40 | +++ dhcp-4.2.5/client/Makefile.am 2013-03-21 12:54:11.809063510 +0000 | ||
41 | @@ -1,3 +1,5 @@ | ||
42 | +AM_CPPFLAGS = -I$(top_srcdir)/includes | ||
43 | + | ||
44 | dist_sysconf_DATA = dhclient.conf.example | ||
45 | sbin_PROGRAMS = dhclient | ||
46 | dhclient_SOURCES = clparse.c dhclient.c dhc6.c \ | ||
47 | @@ -11,8 +13,8 @@ | ||
48 | |||
49 | dhclient.o: dhclient.c | ||
50 | $(COMPILE) -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \ | ||
51 | - -DLOCALSTATEDIR='"$(localstatedir)"' -c dhclient.c | ||
52 | + -DLOCALSTATEDIR='"$(localstatedir)"' -c $(srcdir)/dhclient.c | ||
53 | |||
54 | dhc6.o: dhc6.c | ||
55 | $(COMPILE) -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \ | ||
56 | - -DLOCALSTATEDIR='"$(localstatedir)"' -c dhc6.c | ||
57 | + -DLOCALSTATEDIR='"$(localstatedir)"' -c $(srcdir)/dhc6.c | ||
58 | Index: dhcp-4.2.5/dhcpctl/Makefile.am | ||
59 | =================================================================== | ||
60 | --- dhcp-4.2.5.orig/dhcpctl/Makefile.am 2013-03-21 12:54:11.677063511 +0000 | ||
61 | +++ dhcp-4.2.5/dhcpctl/Makefile.am 2013-03-21 12:54:11.809063510 +0000 | ||
62 | @@ -1,3 +1,5 @@ | ||
63 | +AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_srcdir) | ||
64 | + | ||
65 | bin_PROGRAMS = omshell | ||
66 | lib_LIBRARIES = libdhcpctl.a | ||
67 | noinst_PROGRAMS = cltest | ||
68 | Index: dhcp-4.2.5/relay/Makefile.am | ||
69 | =================================================================== | ||
70 | --- dhcp-4.2.5.orig/relay/Makefile.am 2013-03-21 12:54:11.677063511 +0000 | ||
71 | +++ dhcp-4.2.5/relay/Makefile.am 2013-03-21 12:54:11.809063510 +0000 | ||
72 | @@ -1,4 +1,4 @@ | ||
73 | -AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' | ||
74 | +AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes | ||
75 | |||
76 | sbin_PROGRAMS = dhcrelay | ||
77 | dhcrelay_SOURCES = dhcrelay.c | ||
78 | Index: dhcp-4.2.5/server/Makefile.am | ||
79 | =================================================================== | ||
80 | --- dhcp-4.2.5.orig/server/Makefile.am 2013-03-21 12:54:11.677063511 +0000 | ||
81 | +++ dhcp-4.2.5/server/Makefile.am 2013-03-21 12:55:01.509062081 +0000 | ||
82 | @@ -4,7 +4,7 @@ | ||
83 | # production code. Sadly, we are not there yet. | ||
84 | SUBDIRS = . tests | ||
85 | |||
86 | -AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"' | ||
87 | +AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"' -I$(top_srcdir)/includes | ||
88 | |||
89 | dist_sysconf_DATA = dhcpd.conf.example | ||
90 | sbin_PROGRAMS = dhcpd | ||
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.2.5.bb b/meta/recipes-connectivity/dhcp/dhcp_4.2.5.bb index 0f247ae055..3ec9f3b083 100644 --- a/meta/recipes-connectivity/dhcp/dhcp_4.2.5.bb +++ b/meta/recipes-connectivity/dhcp/dhcp_4.2.5.bb | |||
@@ -6,6 +6,7 @@ SRC_URI += "file://fixincludes.patch \ | |||
6 | file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \ | 6 | file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \ |
7 | file://fix-external-bind.patch \ | 7 | file://fix-external-bind.patch \ |
8 | file://link-with-lcrypto.patch \ | 8 | file://link-with-lcrypto.patch \ |
9 | file://fixsepbuild.patch \ | ||
9 | " | 10 | " |
10 | 11 | ||
11 | SRC_URI[md5sum] = "6489e919ac093d17249270ee9be1020e" | 12 | SRC_URI[md5sum] = "6489e919ac093d17249270ee9be1020e" |