svn commit: trunk/buildroot/package/readline
Author: hamish
Date: 2008-02-05 17:26:03 -0800 (Tue, 05 Feb 2008) New Revision: 20948
Log:
Upgrade readline to 5.2, including all current upstream patches. Fetch it from $(BR2_GNU_MIRROR).
Note proper dependency on ncurses.
Modified:
trunk/buildroot/package/readline/Config.in trunk/buildroot/package/readline/readline.mk trunk/buildroot/package/readline/readline51-001 trunk/buildroot/package/readline/readline51-002 trunk/buildroot/package/readline/readline51-003 trunk/buildroot/package/readline/readline51-004
Changeset:
Modified: trunk/buildroot/package/readline/Config.in
===================================================================
buildroot/package/readline/Config.in +7 -1
@@ -9,5 +9,11 @@ bool "readline for the target" depends on BR2_READLINE help - Say yes here to install the readline libraries and headers + Say yes here to install the readline libraries on the target. + +config BR2_PACKAGE_READLINE_HEADERS + bool "readline headers for the target" + depends on BR2_PACKAGE_READLINE_TARGET + help + Say yes here to install the readline headers and documentation on the target.
Modified: trunk/buildroot/package/readline/readline.mk
===================================================================
buildroot/package/readline/readline.mk +11 -5
@@ -3,8 +3,8 @@ # build GNU readline # ############################################################# -READLINE_VERSION:=5.1 -READLINE_SITE:=ftp://ftp.cwru.edu/pub/bash +READLINE_VERSION:=5.2 +READLINE_SITE:=$(BR2_GNU_MIRROR)/readline READLINE_SOURCE:=readline-$(READLINE_VERSION).tar.gz READLINE_DIR:=$(BUILD_DIR)/readline-$(READLINE_VERSION) READLINE_CAT:=$(ZCAT)
@@ -21,6 +21,7 @@ $(READLINE_DIR)/.unpacked: $(DL_DIR)/$(READLINE_SOURCE) mkdir -p $(READLINE_DIR) tar -C $(BUILD_DIR) -zxf $(DL_DIR)/$(READLINE_SOURCE) + toolchain/patch-kernel.sh $(READLINE_DIR) package/readline/ readline??-??? $(CONFIG_UPDATE) $(READLINE_DIR) $(CONFIG_UPDATE) $(READLINE_DIR)/support touch $@
@@ -51,7 +52,7 @@ touch $@ $(READLINE_DIR)/$(READLINE_BINARY): $(READLINE_DIR)/.configured - $(MAKE) -C $(READLINE_DIR) + $(MAKE) -C $(READLINE_DIR) SHLIB_LIBS="-lncurses" ls $(READLINE_DIR)/$(READLINE_BINARY) touch -c $@
@@ -72,8 +73,13 @@ BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" CC=$(TARGET_CC) \ $(MAKE1) DESTDIR=$(TARGET_DIR) \ -C $(READLINE_DIR) install-shared uninstall-doc + chmod 775 $(TARGET_DIR)/lib/libreadline.so.$(READLINE_VERSION) $(TARGET_DIR)/lib/libhistory.so.$(READLINE_VERSION) + $(STRIPCMD) $(TARGET_DIR)/lib/libreadline.so.$(READLINE_VERSION) $(TARGET_DIR)/lib/libhistory.so.$(READLINE_VERSION) +ifneq ($(strip $(BR2_PACKAGE_READLINE_HEADERS)),y) + rm -rf $(TARGET_DIR)/usr/include/readline +endif -readline: $(STAGING_DIR)/usr/include/readline/readline.h +readline: ncurses $(STAGING_DIR)/usr/include/readline/readline.h readline-clean: $(MAKE) -C $(READLINE_DIR) DESTDIR=$(STAGING_DIR) uninstall
@@ -82,7 +88,7 @@ readline-dirclean: rm -rf $(READLINE_DIR) -readline-target: $(TARGET_DIR)/$(READLINE_TARGET_SHARED_BINARY) +readline-target: readline $(TARGET_DIR)/$(READLINE_TARGET_SHARED_BINARY) readline-target-clean: $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(READLINE_DIR) uninstall
Modified: trunk/buildroot/package/readline/readline51-001
===================================================================
buildroot/package/readline/readline51-001 +0 -77
77 lines not on this page · raw message
Modified: trunk/buildroot/package/readline/readline51-002
===================================================================
buildroot/package/readline/readline51-002 +0 -43
43 lines not on this page · raw message
Modified: trunk/buildroot/package/readline/readline51-003
===================================================================
buildroot/package/readline/readline51-003 +0 -29
@@ -1,29 +0,0 @@ - READLINE PATCH REPORT - ===================== - -Readline-Release: 5.1 -Patch-ID: readline51-003 - -Bug-Reported-by: Bob Rossi <[email protected]> -Bug-Reference-ID: <[email protected]> -Bug-Reference-URL: - -Bug-Description: - -In some cases, readline will reference freed memory when attempting to -display a portion of the prompt. - -Patch: - -*** readline-5.1/readline.c Tue Dec 20 17:38:29 2005 ---- readline-5.1/readline.c Fri Feb 17 22:54:22 2006 -*************** -*** 282,287 **** ---- 282,288 ---- - { - FREE (rl_prompt); - rl_prompt = prompt ? savestring (prompt) : (char *)NULL; -+ rl_display_prompt = rl_prompt ? rl_prompt : ""; - - rl_visible_prompt_length = rl_expand_prompt (rl_prompt); - return 0;
Modified: trunk/buildroot/package/readline/readline51-004
===================================================================
buildroot/package/readline/readline51-004 +0 -90
90 lines not on this page · raw message