diff options
| -rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp/libxml2-configure-argument.patch | 27 | ||||
| -rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp_4.3.3.bb | 4 |
2 files changed, 31 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 @@ | |||
| 1 | Add configure argument to make the libxml2 dependency explicit and | ||
| 2 | determinisitic. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | |||
| 6 | Signed-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, | ||
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.3.3.bb b/meta/recipes-connectivity/dhcp/dhcp_4.3.3.bb index 4e8cd272b8..97dde1df48 100644 --- a/meta/recipes-connectivity/dhcp/dhcp_4.3.3.bb +++ b/meta/recipes-connectivity/dhcp/dhcp_4.3.3.bb | |||
| @@ -9,7 +9,11 @@ SRC_URI += "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \ | |||
| 9 | file://CVE-2015-8605.patch \ | 9 | file://CVE-2015-8605.patch \ |
| 10 | file://0001-site.h-enable-gentle-shutdown.patch \ | 10 | file://0001-site.h-enable-gentle-shutdown.patch \ |
| 11 | file://CVE-2016-2774.patch \ | 11 | file://CVE-2016-2774.patch \ |
| 12 | file://libxml2-configure-argument.patch \ | ||
| 12 | " | 13 | " |
| 13 | 14 | ||
| 14 | SRC_URI[md5sum] = "c5577b09c9017cdd319a11ff6364268e" | 15 | SRC_URI[md5sum] = "c5577b09c9017cdd319a11ff6364268e" |
| 15 | SRC_URI[sha256sum] = "553c4945b09b1c1b904c4780f34f72aaefa2fc8c6556715de0bc9d4e3d255ede" | 16 | SRC_URI[sha256sum] = "553c4945b09b1c1b904c4780f34f72aaefa2fc8c6556715de0bc9d4e3d255ede" |
| 17 | |||
| 18 | PACKAGECONFIG ?= "" | ||
| 19 | PACKAGECONFIG[bind-httpstats] = "--with-libxml2,--without-libxml2,libxml2" | ||
