rpms/python/F-9 python-2.5.1-listdir.patch, NONE, 1.1 python.spec, 1.132, 1.133

James Antill (james) fedora-extras-commits at redhat.com
Sun Jun 15 22:20:42 UTC 2008


Author: james

Update of /cvs/pkgs/rpms/python/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14259

Modified Files:
	python.spec 
Added Files:
	python-2.5.1-listdir.patch 
Log Message:
* Sun Jun 15 2008 James Antill <jantill at redhat.com> - 2.5.1-26
- Fix sporadic listdir problem
- Resolves: bug#451494


python-2.5.1-listdir.patch:

--- NEW FILE python-2.5.1-listdir.patch ---
--- Python-2.5.1/Modules/posixmodule.c.orig	2007-04-04 14:30:56.000000000 -0400
+++ Python-2.5.1/Modules/posixmodule.c	2008-06-14 17:35:47.000000000 -0400
@@ -2160,7 +2160,6 @@
 	struct dirent *ep;
 	int arg_is_unicode = 1;
 
-	errno = 0;
 	if (!PyArg_ParseTuple(args, "U:listdir", &v)) {
 		arg_is_unicode = 0;
 		PyErr_Clear();
@@ -2176,6 +2175,7 @@
 		return NULL;
 	}
 	for (;;) {
+		errno = 0;
 		Py_BEGIN_ALLOW_THREADS
 		ep = readdir(dirp);
 		Py_END_ALLOW_THREADS


Index: python.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python/F-9/python.spec,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- python.spec	8 Apr 2008 05:14:21 -0000	1.132
+++ python.spec	15 Jun 2008 22:19:55 -0000	1.133
@@ -20,7 +20,7 @@
 Summary: An interpreted, interactive, object-oriented programming language.
 Name: %{python}
 Version: 2.5.1
-Release: 25%{?dist}
+Release: 26%{?dist}
 License: Python Software Foundation License v2 
 Group: Development/Languages
 Provides: python-abi = %{pybasever}
@@ -42,6 +42,7 @@
 Patch12: python-2.5.1-pysqlite.patch
 Patch13: python-2.5.1-socketmodule-constants.patch
 Patch14: python-2.5.1-socketmodule-constants2.patch
+Patch15: python-2.5.1-listdir.patch
 
 # upstreamed
 
@@ -209,6 +210,7 @@
 %patch12 -p1 -b .pysqlite-2.3.3-minimal
 %patch13 -p1 -b .socketmodule
 %patch14 -p1 -b .socketmodule
+%patch15 -p1 -b .socketmodule
 
 %ifarch alpha ia64
 # 64bit, but not lib64 arches need this too...
@@ -506,6 +508,10 @@
 %{_libdir}/python%{pybasever}/lib-dynload/_testcapimodule.so
 
 %changelog
+* Sun Jun 15 2008 James Antill <jantill at redhat.com> - 2.5.1-26
+- Fix sporadic listdir problem
+- Resolves: bug#451494
+
 * Mon Apr  7 2008 James Antill <jantill at redhat.com> - 2.5.1-25
 - Rebuild to re-gen autoconf file due to glibc change.
 - Resolves: bug#441003




More information about the fedora-extras-commits mailing list