Update the required version of "sed" from 4.1.2 to 4.1.5 and, furthermore, avoid building it if it's already installed.
Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- using "ccache" as a model, does this extension make sense? it seems to work on my system. Index: tools/sed/Makefile =================================================================== --- tools/sed/Makefile (revision 9820) +++ tools/sed/Makefile (working copy) @@ -7,26 +7,37 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sed -PKG_VERSION:=4.1.2 +PKG_VERSION:=4.1.5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/$(PKG_NAME) -PKG_MD5SUM:=928f0e06422f414091917401f1a834d0 +PKG_MD5SUM:=7a1cbbbb3341287308e140bd4834c3ba PKG_CAT:=zcat export SED:= include $(INCLUDE_DIR)/host-build.mk -define Build/Compile +ifneq ($(strip $(shell which sed >/dev/null && echo found)),found) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) SHELL="$(BASH)" -endef + endef -define Build/Install + define Build/Install $(INSTALL_BIN) $(PKG_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/ -endef + endef -define Build/Clean + define Build/Clean rm -f $(STAGING_DIR_HOST)/bin/sed -endef + endef +else + define Build/Prepare + endef + define Build/Configure + endef + define Build/Compile + endef + define Build/Clean + endef +endif $(eval $(call HostBuild)) ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== _______________________________________________ openwrt-devel mailing list [email protected] http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
