packages: readline/readline.spec, readline/readline60-001 (NEW), readline/r...

arekm arekm at pld-linux.org
Fri Jul 31 22:44:51 CEST 2009


Author: arekm                        Date: Fri Jul 31 20:44:51 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 6.0.004

---- Files affected:
packages/readline:
   readline.spec (1.112 -> 1.113) , readline60-001 (NONE -> 1.1)  (NEW), readline60-002 (NONE -> 1.1)  (NEW), readline60-003 (NONE -> 1.1)  (NEW), readline60-004 (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/readline/readline.spec
diff -u packages/readline/readline.spec:1.112 packages/readline/readline.spec:1.113
--- packages/readline/readline.spec:1.112	Thu Mar 26 07:11:10 2009
+++ packages/readline/readline.spec	Fri Jul 31 22:44:45 2009
@@ -1,4 +1,6 @@
 # $Revision$, $Date$
+%define	ver			6.0
+%define	patchlevel	004
 Summary:	Library for reading lines from a terminal
 Summary(de.UTF-8):	Library zum Lesen von Zeilen von einem Terminal
 Summary(es.UTF-8):	Biblioteca para lectura de líneas de un terminal
@@ -11,17 +13,18 @@
 Summary(tr.UTF-8):	Terminalden satır okumak için kullanılan bir kitaplık
 Summary(uk.UTF-8):	Бібліотека для читання стрічок з терміналу
 Name:		readline
-Version:	6.0
+Version:	%{ver}.%{patchlevel}
 Release:	1
 License:	GPL v3+
 Group:		Libraries
-Source0:	http://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz
+Source0:	http://ftp.gnu.org/gnu/readline/%{name}-%{ver}.tar.gz
 # Source0-md5:	b7f65a48add447693be6e86f04a63019
 Source1:	%{name}-sys_inputrc
 Patch0:		%{name}-shared.patch
 Patch1:		%{name}-info.patch
 Patch2:		%{name}-header.patch
 Patch3:		%{name}-lfs.patch
+%patchset_source -f http://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-%03g 1 %{patchlevel}
 URL:		http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -180,7 +183,7 @@
 Це статичні бібліотеки readline.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{ver}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -256,6 +259,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.113  2009/07/31 20:44:45  arekm
+- up to 6.0.004
+
 Revision 1.112  2009/03/26 06:11:10  qboosh
 - License is GPL v3(+) now
 

================================================================
Index: packages/readline/readline60-001
diff -u /dev/null packages/readline/readline60-001:1.1
--- /dev/null	Fri Jul 31 22:44:51 2009
+++ packages/readline/readline60-001	Fri Jul 31 22:44:45 2009
@@ -0,0 +1,79 @@
+			   READLINE PATCH REPORT
+			   =====================
+
+Readline-Release: 6.0
+Patch-ID: readline60-001
+
+Bug-Reported-by: Nicolai Lissner <nlissne at linux01.org>
+Bug-Reference-ID: <20090412020510.GA29658 at 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

================================================================
Index: packages/readline/readline60-002
diff -u /dev/null packages/readline/readline60-002:1.1
--- /dev/null	Fri Jul 31 22:44:51 2009
+++ packages/readline/readline60-002	Fri Jul 31 22:44:45 2009
@@ -0,0 +1,44 @@
+			   READLINE PATCH REPORT
+			   =====================
+
+Readline-Release: 6.0
+Patch-ID: readline60-002
+
+Bug-Reported-by:  Matt Zyzik <matt.zyzik at nyu.edu>
+Bug-Reference-ID: <20090319015542.696F62B8E8 at 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

================================================================
Index: packages/readline/readline60-003
diff -u /dev/null packages/readline/readline60-003:1.1
--- /dev/null	Fri Jul 31 22:44:51 2009
+++ packages/readline/readline60-003	Fri Jul 31 22:44:45 2009
@@ -0,0 +1,58 @@
+			   READLINE PATCH REPORT
+			   =====================
+
+Readline-Release: 6.0
+Patch-ID: readline60-003
+
+Bug-Reported-by: Andreas Schwab <schwab at linux-m68k.org>
+Bug-Reference-ID: <m21vrhhx08.fsf at igel.home>
+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

================================================================
Index: packages/readline/readline60-004
diff -u /dev/null packages/readline/readline60-004:1.1
--- /dev/null	Fri Jul 31 22:44:51 2009
+++ packages/readline/readline60-004	Fri Jul 31 22:44:45 2009
@@ -0,0 +1,63 @@
+			   READLINE PATCH REPORT
+			   =====================
+
+Readline-Release: 6.0
+Patch-ID: readline60-004
+
+Bug-Reported-by:	jim at jim.sh
+Bug-Reference-ID:	<200905262140.n4QLeO4X030664 at 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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/readline/readline.spec?r1=1.112&r2=1.113&f=u



More information about the pld-cvs-commit mailing list