Buildroot Patches I Use [6] - Version Upgrades to bind and dhcp Packages
This patch upgrades bind package to version 9.7.2-P2 and dhcp package to version 4.2.0-P1 and includes patches needed to cross compile them. One of the complexities added to dhcp 4.2+ is a dependency on export libs from bind. Unfortunately ISC's implementation of bundling bind inside of dhcp won't cross compile. The patches allow the export libs to be built as part of the bind package and the dhcp package makes use of it.
I think I got things worked out so that export libs are only built in bind if you choose that option to bind or if selected by you choosing dhcp. And if you don't choose bind (say intentionally) then you only get the export libs.
I doubt that this is appropriate for 2010.11 since it is in release candidate stage, but here it is for anyone who wants to play with the latest and greatest of bind and dhcp from ISC. (If someone plays with these more extensively then there may be a case to get it in).
Signed-off by: Darcy Watkins <[email protected]>
package/dhcp/dhcp.mk +5 -1
@@ -3,9 +3,12 @@ # dhcp # ############################################################# -DHCP_VERSION = 4.1.1-P1 +DHCP_VERSION = 4.2.0-P1 DHCP_SOURCE = dhcp-$(DHCP_VERSION).tar.gz DHCP_SITE = http://ftp.isc.org/isc/dhcp/ +DHCP_DEPENDENCIES = host-pkg-config bind +DHCP_LIBTOOL_PATCH = NO +DHCP_AUTORECONF = YES DHCP_CONF_ENV = ac_cv_file__dev_random=yes DHCP_CONF_OPT = \ --localstatedir=/var/lib/dhcp \
@@ -14,6 +17,7 @@ DHCP_CONF_OPT = \ --with-srv-pid-file=/var/run/dhcpd.pid \ --with-cli-pid-file=/var/run/dhclient.pid \ --with-relay-pid-file=/var/run/dhcrelay.pid \ + --with-libbind=$(STAGING_DIR)/usr/ \ --disable-dhcpv6 ifeq ($(BR2_PACKAGE_DHCP_SERVER),y)
package/bind/bind.mk +57 -7
92 lines not on this page · raw message
package/bind/bind-cross.patch +79 -0
82 lines not on this page · raw message
package/dhcp/dhcp-cross.patch new file +233 -0
233 lines not on this page · raw message
package/bind/Config.in +10 -0
@@ -27,5 +27,15 @@ config BR2_PACKAGE_BIND_TOOLS help Install tools (host, nslookup, dig, nsupdate) +config BR2_PACKAGE_BIND_EXPORT_LIBS + bool "Export libraries" + depends on BR2_PACKAGE_BIND + help + Export libraries (used by dhcp and perhaps others) + +config BR2_PACKAGE_BIND_BUILD_EXPORT_LIBS + bool + default y if BR2_PACKAGE_BIND_EXPORT_LIBS + comment "bind requires a toolchain with LARGEFILE support" depends on !BR2_LARGEFILE
package/dhcp/Config.in +1 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_DHCP bool "DHCP support" + select BR2_PACKAGE_BIND_BUILD_EXPORT_LIBS help DHCP relay agent from the ISC DHCP distribution.