From: Victor Martinez Date: Tue, 15 Mar 2011 08:13:18 +0000 (+0000) Subject: readline: update to 6.2.1 X-Git-Url: http://gitweb/?a=commitdiff_plain;h=7f8f7f35d24ba10a8529af4170c7e016503c9a65;p=crossrootfs.git readline: update to 6.2.1 --- diff --git a/readline/.footprint b/readline/.footprint index 096bb15..2b07fbd 100644 --- a/readline/.footprint +++ b/readline/.footprint @@ -1,6 +1,12 @@ drwxr-xr-x root/root etc/ -rw-r--r-- root/root etc/inputrc +drwxr-xr-x root/root lib/ +lrwxrwxrwx root/root lib/libhistory.so.6 -> libhistory.so.6.2 +-r-xr-xr-x root/root lib/libhistory.so.6.2 +lrwxrwxrwx root/root lib/libreadline.so.6 -> libreadline.so.6.2 +-r-xr-xr-x root/root lib/libreadline.so.6.2 drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ drwxr-xr-x root/root usr/include/ drwxr-xr-x root/root usr/include/readline/ -rw-r--r-- root/root usr/include/readline/chardefs.h @@ -13,13 +19,9 @@ drwxr-xr-x root/root usr/include/readline/ -rw-r--r-- root/root usr/include/readline/tilde.h drwxr-xr-x root/root usr/lib/ -rw-r--r-- root/root usr/lib/libhistory.a -lrwxrwxrwx root/root usr/lib/libhistory.so -> libhistory.so.6 -lrwxrwxrwx root/root usr/lib/libhistory.so.6 -> libhistory.so.6.1 --r-xr-xr-x root/root usr/lib/libhistory.so.6.1 +lrwxrwxrwx root/root usr/lib/libhistory.so -> ../../lib/libhistory.so.6.2 -rw-r--r-- root/root usr/lib/libreadline.a -lrwxrwxrwx root/root usr/lib/libreadline.so -> libreadline.so.6 -lrwxrwxrwx root/root usr/lib/libreadline.so.6 -> libreadline.so.6.1 --r-xr-xr-x root/root usr/lib/libreadline.so.6.1 +lrwxrwxrwx root/root usr/lib/libreadline.so -> ../../lib/libreadline.so.6.2 drwxr-xr-x root/root usr/man/ drwxr-xr-x root/root usr/man/man3/ -rw-r--r-- root/root usr/man/man3/history.3.gz diff --git a/readline/.md5sum b/readline/.md5sum index 3403c00..cdf3b85 100644 --- a/readline/.md5sum +++ b/readline/.md5sum @@ -1,2 +1,3 @@ 553cf04fdeec54dca12062864c3ffba3 inputrc -fc2f7e714fe792db1ce6ddc4c9fb4ef3 readline-6.1.tar.gz +20ad06e656f2d36846987f116d620147 readline-6.2.1.patch.gz +67948acb2ca081f23359d0256e9a271c readline-6.2.tar.gz diff --git a/readline/Pkgfile b/readline/Pkgfile index ebaa40b..1e9e2d3 100644 --- a/readline/Pkgfile +++ b/readline/Pkgfile @@ -2,22 +2,34 @@ # URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html # Maintainer: CRUX System Team, core-ports at crux dot nu # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu -# Depends on: +# Depends on: ncurses name=readline -version=6.1 +version=6.2.1 release=1 -source=(http://ftp.gnu.org/gnu/$name/$name-${version}.tar.gz \ - inputrc) +source=(http://ftp.gnu.org/gnu/$name/$name-${version::3}.tar.gz \ + $name-$version.patch.gz inputrc) build() { - cd $name-${version} + cd $name-${version::3} + + gunzip -c $SRC/$name-$version.patch.gz | patch -p0 + + # Don't use rpath for linking the shared libs + sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf + ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --mandir=/usr/man - make + make SHLIB_LIBS=-lncurses make DESTDIR=$PKG install + + install -d $PKG/lib + mv $PKG/usr/lib/lib*.so.* $PKG/lib + ln -sf ../../lib/libhistory.so.${version::3} $PKG/usr/lib/libhistory.so + ln -sf ../../lib/libreadline.so.${version::3} $PKG/usr/lib/libreadline.so + install -D -m 644 $SRC/inputrc $PKG/etc/inputrc - rm -rf $PKG/usr/share/info + rm -r $PKG/usr/share/info } diff --git a/readline/readline-6.0-001-004.patch b/readline/readline-6.0-001-004.patch deleted file mode 100644 index d9e555f..0000000 --- a/readline/readline-6.0-001-004.patch +++ /dev/null @@ -1,244 +0,0 @@ - READLINE PATCH REPORT - ===================== - -Readline-Release: 6.0 -Patch-ID: readline60-001 - -Bug-Reported-by: Nicolai Lissner -Bug-Reference-ID: <20090412020510.GA29658@lilith> -Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-04/msg00104.html - -Bug-Description: - -If a SIGWINCH arrives while bash is performing redisplay, multi-line prompts -are displayed incorrectly due to the display code being called recursively. - -Patch: - -*** ../readline-6.0/readline.h 2009-01-04 14:32:33.000000000 -0500 ---- readline.h 2009-04-13 08:47:00.000000000 -0400 -*************** -*** 815,820 **** - #define RL_STATE_MULTIKEY 0x200000 /* reading multiple-key command */ - #define RL_STATE_VICMDONCE 0x400000 /* entered vi command mode at least once */ - -! #define RL_STATE_DONE 0x800000 /* done; accepted line */ - - #define RL_SETSTATE(x) (rl_readline_state |= (x)) ---- 815,821 ---- - #define RL_STATE_MULTIKEY 0x200000 /* reading multiple-key command */ - #define RL_STATE_VICMDONCE 0x400000 /* entered vi command mode at least once */ -+ #define RL_STATE_REDISPLAYING 0x800000 /* updating terminal display */ - -! #define RL_STATE_DONE 0x1000000 /* done; accepted line */ - - #define RL_SETSTATE(x) (rl_readline_state |= (x)) -*** ../readline-6.0/display.c 2009-01-04 14:32:32.000000000 -0500 ---- display.c 2009-04-13 08:29:54.000000000 -0400 -*************** -*** 513,516 **** ---- 513,517 ---- - data structures. */ - _rl_block_sigint (); -+ RL_SETSTATE (RL_STATE_REDISPLAYING); - - if (!rl_display_prompt) -*************** -*** 1237,1240 **** ---- 1238,1242 ---- - } - -+ RL_UNSETSTATE (RL_STATE_REDISPLAYING); - _rl_release_sigint (); - } -*** ../readline-6.0/terminal.c 2009-01-04 14:32:34.000000000 -0500 ---- terminal.c 2009-04-13 08:43:00.000000000 -0400 -*************** -*** 356,360 **** - if (CUSTOM_REDISPLAY_FUNC ()) - rl_forced_update_display (); -! else - _rl_redisplay_after_sigwinch (); - } ---- 356,360 ---- - if (CUSTOM_REDISPLAY_FUNC ()) - rl_forced_update_display (); -! else if (RL_ISSTATE(RL_STATE_REDISPLAYING) == 0) - _rl_redisplay_after_sigwinch (); - } -*** ../readline-6.0/patchlevel 2008-11-18 11:01:14.000000000 -0500 ---- patchlevel 2009-05-09 12:01:06.000000000 -0400 -*************** -*** 1,3 **** - # Do not edit -- exists only for use by patch - -! 0 ---- 1,3 ---- - # Do not edit -- exists only for use by patch - -! 1 - READLINE PATCH REPORT - ===================== - -Readline-Release: 6.0 -Patch-ID: readline60-002 - -Bug-Reported-by: Matt Zyzik -Bug-Reference-ID: <20090319015542.696F62B8E8@ice.filescope.com> -Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00149.html - -Bug-Description: - -When not in a locale supporting multibyte characters, readline will occasionally -not erase characters between the cursor position and the end of the line -when killing text backwards. - -Patch: - -*** ../readline-6.0/display.c 2009-01-04 14:32:32.000000000 -0500 ---- display.c 2009-04-14 14:00:18.000000000 -0400 -*************** -*** 1775,1779 **** - adjust col_lendiff based on the difference between _rl_last_c_pos - and _rl_screenwidth */ -! if (col_lendiff && (_rl_last_c_pos < _rl_screenwidth)) - #endif - { ---- 1775,1779 ---- - adjust col_lendiff based on the difference between _rl_last_c_pos - and _rl_screenwidth */ -! if (col_lendiff && ((MB_CUR_MAX == 1 || rl_byte_oriented) || (_rl_last_c_pos < _rl_screenwidth))) - #endif - { -*** ../readline-6.0/patchlevel 2008-11-18 11:01:14.000000000 -0500 ---- patchlevel 2009-05-09 12:01:06.000000000 -0400 -*************** -*** 1,3 **** - # Do not edit -- exists only for use by patch - -! 1 ---- 1,3 ---- - # Do not edit -- exists only for use by patch - -! 2 - READLINE PATCH REPORT - ===================== - -Readline-Release: 6.0 -Patch-ID: readline60-003 - -Bug-Reported-by: Andreas Schwab -Bug-Reference-ID: -Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-04/msg00160.html - -Bug-Description: - -If the prompt length exactly matches the screen width, and the prompt ends -with invisible characters, readline positions the cursor incorrectly. - -Patch: - -*** ../readline-6.0/display.c 2009-01-04 14:32:32.000000000 -0500 ---- display.c 2009-04-25 21:42:18.000000000 -0400 -*************** -*** 1895,1898 **** ---- 1897,1904 ---- - woff = WRAP_OFFSET (_rl_last_v_pos, wrap_offset); - cpos = _rl_last_c_pos; -+ -+ if (cpos == 0 && cpos == new) -+ return; -+ - #if defined (HANDLE_MULTIBYTE) - /* If we have multibyte characters, NEW is indexed by the buffer point in -*************** -*** 1908,1914 **** - desired display position. */ - if ((new > prompt_last_invisible) || /* XXX - don't use woff here */ -! (prompt_physical_chars > _rl_screenwidth && - _rl_last_v_pos == prompt_last_screen_line && -! wrap_offset >= woff && - new > (prompt_last_invisible-(_rl_screenwidth*_rl_last_v_pos)-wrap_offset))) - /* XXX last comparison might need to be >= */ ---- 1914,1920 ---- - desired display position. */ - if ((new > prompt_last_invisible) || /* XXX - don't use woff here */ -! (prompt_physical_chars >= _rl_screenwidth && - _rl_last_v_pos == prompt_last_screen_line && -! wrap_offset >= woff && dpos >= woff && - new > (prompt_last_invisible-(_rl_screenwidth*_rl_last_v_pos)-wrap_offset))) - /* XXX last comparison might need to be >= */ -*** ../readline-6.0/patchlevel 2008-11-18 11:01:14.000000000 -0500 ---- patchlevel 2009-05-09 12:01:06.000000000 -0400 -*************** -*** 1,3 **** - # Do not edit -- exists only for use by patch - -! 2 ---- 1,3 ---- - # Do not edit -- exists only for use by patch - -! 3 - READLINE PATCH REPORT - ===================== - -Readline-Release: 6.0 -Patch-ID: readline60-004 - -Bug-Reported-by: jim@jim.sh -Bug-Reference-ID: <200905262140.n4QLeO4X030664@psychosis.jim.sh> -Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-05/msg00074.html - -Bug-Description: - -There are occasional cursor positioning errors when using readline's -horizontal scroll mode. - -Patch: - -*** ../readline-6.0-patched/display.c 2009-05-22 12:32:25.000000000 -0400 ---- display.c 2009-05-29 23:32:20.000000000 -0400 -*************** -*** 1190,1196 **** - line[t - 1] = '>'; - -! if (!rl_display_fixed || forced_display || lmargin != last_lmargin) - { - forced_display = 0; - update_line (&visible_line[last_lmargin], - &invisible_line[lmargin], ---- 1192,1200 ---- - line[t - 1] = '>'; - -! if (rl_display_fixed == 0 || forced_display || lmargin != last_lmargin) - { - forced_display = 0; -+ o_cpos = _rl_last_c_pos; -+ cpos_adjusted = 0; - update_line (&visible_line[last_lmargin], - &invisible_line[lmargin], -*************** -*** 1200,1203 **** ---- 1204,1214 ---- - 0); - -+ if ((MB_CUR_MAX > 1 && rl_byte_oriented == 0) && -+ cpos_adjusted == 0 && -+ _rl_last_c_pos != o_cpos && -+ _rl_last_c_pos > wrap_offset && -+ o_cpos < prompt_last_invisible) -+ _rl_last_c_pos -= prompt_invis_chars_first_line; /* XXX - was wrap_offset */ -+ - /* If the visible new line is shorter than the old, but the number - of invisible characters is greater, and we are at the end of -*** ../readline-6.0/patchlevel 2008-11-18 11:01:14.000000000 -0500 ---- patchlevel 2009-05-09 12:01:06.000000000 -0400 -*************** -*** 1,3 **** - # Do not edit -- exists only for use by patch - -! 3 ---- 1,3 ---- - # Do not edit -- exists only for use by patch - -! 4