rpms/newt/devel newt-0.52.7-whiptail.patch, NONE, 1.1 newt.spec, 1.52, 1.53

Miroslav Lichvar (mlichvar) fedora-extras-commits at redhat.com
Mon Aug 27 11:53:35 UTC 2007


Author: mlichvar

Update of /cvs/pkgs/rpms/newt/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16217

Modified Files:
	newt.spec 
Added Files:
	newt-0.52.7-whiptail.patch 
Log Message:
- fix segfault in whiptail when no entry is selected in radiolist
- buildrequire popt-devel


newt-0.52.7-whiptail.patch:

--- NEW FILE newt-0.52.7-whiptail.patch ---
Index: newt/whiptail.c
===================================================================
RCS file: /usr/local/CVS/newt/whiptail.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- newt/whiptail.c	31 Jan 2007 13:48:15 -0000	1.21
+++ newt/whiptail.c	25 Jun 2007 10:37:18 -0000	1.22
@@ -569,7 +569,8 @@
       case MODE_RADIOLIST:
 	rc = checkList(text, height, width, optCon, 1, flags, &selections);
 	if (rc == DLG_OKAY) {
-	    fprintf(output, "%s", selections[0]);
+	    if (selections[0])
+		fprintf(output, "%s", selections[0]);
 	    free(selections);
 	}
 	break;


Index: newt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/newt/devel/newt.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- newt.spec	22 Aug 2007 13:10:07 -0000	1.52
+++ newt.spec	27 Aug 2007 11:53:03 -0000	1.53
@@ -2,7 +2,7 @@
 Summary: A library for text mode user interfaces
 Name: newt
 Version: 0.52.7
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: LGPLv2
 Group: System Environment/Libraries
 # The source for this package was pulled from upstream's vcs.  Use the
@@ -10,10 +10,11 @@
 # cvs -d :pserver:anonymous at elvis.redhat.com:/usr/local/CVS co -r r0-52-7 newt
 # cd newt; ./autogen.sh; ./configure; make create-archive
 Source: newt-%{version}.tar.gz
-BuildRequires: python, python-devel, slang-devel
+BuildRequires: popt-devel python-devel slang-devel
 Provides: snack = %{version}-%{release}
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch1: newt-0.52.7-snack.patch
+Patch2: newt-0.52.7-whiptail.patch
 
 %package devel
 Summary: Newt windowing toolkit development files
@@ -61,6 +62,7 @@
 %prep
 %setup -q
 %patch1 -p1 -b .snack
+%patch2 -p1 -b .whiptail
 
 %build
 # gpm support seems to smash the stack w/ we use help in anaconda??
@@ -106,6 +108,10 @@
 %{python_sitearch}/*.py*
 
 %changelog
+* Mon Aug 27 2007 Miroslav Lichvar <mlichvar at redhat.com> - 0.52.7-4
+- fix segfault in whiptail when no entry is selected in radiolist
+- buildrequire popt-devel
+
 * Wed Aug 22 2007 Miroslav Lichvar <mlichvar at redhat.com> - 0.52.7-3
 - rebuild
 




More information about the fedora-extras-commits mailing list