summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/dhcp
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2016-05-24 09:28:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-30 15:58:10 +0100
commit4d6f027e514ed02cdd1b5b119f2fe83e87107dd0 (patch)
tree33e13110828eb55a0032e853251dc041566a25b8 /meta/recipes-connectivity/dhcp/dhcp
parenta0acd705baa8de2687124cccc9647b74f4d75242 (diff)
downloadpoky-4d6f027e514ed02cdd1b5b119f2fe83e87107dd0.tar.gz
dhcp: fix non-deterministic libxml2 dependency
This dependency was floating, which results in non-deterministic builds. Add a configure argument and associated PACKAGECONFIG to fix this. The libxml dep is only needed when bind was built with a dep on libxml due to its httpstats feature. So, when you enable the httpstats config in bind, and want to build dhcp, be sure to also enable the bind-httpstats config in dhcp. (From OE-Core rev: 16c30d85a8bae3cbebb80c082ccd34e2ab0d2540) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/dhcp')
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp/libxml2-configure-argument.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp/libxml2-configure-argument.patch b/meta/recipes-connectivity/dhcp/dhcp/libxml2-configure-argument.patch
new file mode 100644
index 0000000000..9d2fbfb292
--- /dev/null
+++ b/meta/recipes-connectivity/dhcp/dhcp/libxml2-configure-argument.patch
@@ -0,0 +1,27 @@
1Add configure argument to make the libxml2 dependency explicit and
2determinisitic.
3
4Upstream-Status: Pending
5
6Signed-off-by: Christopher Larson <chris_larson@mentor.com>
7
8--- dhcp-4.3.3.orig/configure.ac 2016-03-16 20:25:53.830697637 -0700
9+++ dhcp-4.3.3/configure.ac 2016-03-16 20:28:19.415355257 -0700
10@@ -631,7 +631,16 @@
11
12 # We need to find libxml2 if bind was built with support enabled
13 # otherwise we'll fail to build omapip/test.c
14-AC_SEARCH_LIBS(xmlTextWriterStartElement, [xml2],)
15+AC_ARG_WITH(libxml2,
16+ AS_HELP_STRING([--with-libxml2], [link against libxml2. this is needed if bind was built with xml2 support enabled]),
17+ with_libxml2="$withval", with_libxml2="no")
18+
19+if test x$with_libxml2 != xno; then
20+ AC_SEARCH_LIBS(xmlTextWriterStartElement, [xml2],
21+ [if test x$with_libxml2 != xauto; then
22+ AC_MSG_FAILURE([*** Cannot find xmlTextWriterStartElement with -lxml2 and libxml2 was requested])
23+ fi])
24+fi
25
26 # OpenLDAP support.
27 AC_ARG_WITH(ldap,