rpms/readline/devel readline60-004, NONE, 1.1 readline.spec, 1.44, 1.45

Miroslav Lichvar mlichvar at fedoraproject.org
Tue Aug 25 15:02:53 UTC 2009


Author: mlichvar

Update of /cvs/pkgs/rpms/readline/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30278

Modified Files:
	readline.spec 
Added Files:
	readline60-004 
Log Message:
- include patch 004
- suppress install-info errors (#515910)
- remove dir* in infodir after install (#492097)



--- NEW FILE readline60-004 ---
			   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


Index: readline.spec
===================================================================
RCS file: /cvs/pkgs/rpms/readline/devel/readline.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -p -r1.44 -r1.45
--- readline.spec	27 Jul 2009 02:53:21 -0000	1.44
+++ readline.spec	25 Aug 2009 15:02:53 -0000	1.45
@@ -1,7 +1,7 @@
 Summary: A library for editing typed command lines
 Name: readline
 Version: 6.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv3+
 Group: System Environment/Libraries
 URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
@@ -9,6 +9,7 @@ Source: ftp://ftp.gnu.org/gnu/readline/r
 Patch1: ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-001
 Patch2: ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-002
 Patch3: ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-003
+Patch4: ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-004
 # fix file permissions, remove RPATH, use CFLAGS
 Patch20: readline-6.0-shlib.patch
 Requires(post): /sbin/install-info
@@ -52,6 +53,7 @@ library.
 %patch1 -p0 -b .001
 %patch2 -p0 -b .002
 %patch3 -p0 -b .003
+%patch4 -p0 -b .004
 %patch20 -p1 -b .shlib
 
 pushd examples
@@ -79,33 +81,33 @@ for l in $RPM_BUILD_ROOT%{_libdir}/libre
 done
 
 rm -rf $RPM_BUILD_ROOT%{_datadir}/readline
-rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir
-/sbin/install-info %{_infodir}/rluserman.info.gz %{_infodir}/dir
+/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir &> /dev/null
+/sbin/install-info %{_infodir}/rluserman.info.gz %{_infodir}/dir &> /dev/null
 :
 
 %postun -p /sbin/ldconfig
 
 %preun
 if [ $1 = 0 ]; then
-   /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir
-   /sbin/install-info --delete %{_infodir}/rluserman.info.gz %{_infodir}/dir
+   /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir &> /dev/null
+   /sbin/install-info --delete %{_infodir}/rluserman.info.gz %{_infodir}/dir &> /dev/null
 fi
 :
 
 %post devel
-/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir
+/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir &> /dev/null
 :
 
 %preun devel
 if [ $1 = 0 ]; then
-   /sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir
+   /sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir &> /dev/null
 fi
 :
 
@@ -130,6 +132,11 @@ fi
 %{_libdir}/lib*.a
 
 %changelog
+* Tue Aug 25 2009 Miroslav Lichvar <mlichvar at redhat.com> 6.0-3
+- include patch 004
+- suppress install-info errors (#515910)
+- remove dir* in infodir after install (#492097)
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list