[libpwquality/el6] replace a symbol that is missing in RHEL-6 python (#783949)
Tomáš Mráz
tmraz at fedoraproject.org
Mon Jan 23 11:28:08 UTC 2012
commit 9c0d14ad5dd8630628161c84b2a214d729eeb5d3
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date: Mon Jan 23 12:28:02 2012 +0100
replace a symbol that is missing in RHEL-6 python (#783949)
libpwquality-1.0.0-oldpython.patch | 14 ++++++++++++++
libpwquality.spec | 7 ++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/libpwquality-1.0.0-oldpython.patch b/libpwquality-1.0.0-oldpython.patch
new file mode 100644
index 0000000..6e027cc
--- /dev/null
+++ b/libpwquality-1.0.0-oldpython.patch
@@ -0,0 +1,14 @@
+diff -up libpwquality-1.0.0/python/pwquality.c.oldpython libpwquality-1.0.0/python/pwquality.c
+--- libpwquality-1.0.0/python/pwquality.c.oldpython 2011-12-07 17:54:39.000000000 +0100
++++ libpwquality-1.0.0/python/pwquality.c 2012-01-23 12:24:29.402227025 +0100
+@@ -370,9 +370,7 @@ initpwquality(void)
+ if (module == NULL)
+ return;
+
+- PWQError = PyErr_NewExceptionWithDoc("pwquality.PWQError",
+- "Standard exception thrown from PWQSettings method calls\n\n"
+- "The exception value is always integer error code and string description",
++ PWQError = PyErr_NewException("pwquality.PWQError",
+ NULL, NULL);
+ if (PWQError == NULL) {
+ Py_DECREF(module);
diff --git a/libpwquality.spec b/libpwquality.spec
index 48c58e9..91d00a1 100644
--- a/libpwquality.spec
+++ b/libpwquality.spec
@@ -1,12 +1,13 @@
Summary: A library for password generation and password quality checking
Name: libpwquality
Version: 1.0.0
-Release: 2%{?dist}
+Release: 3%{?dist}
# The package is BSD licensed with option to relicense as GPL+
# - this option is redundant as the BSD license allows that anyway.
License: BSD or GPL+
Group: System Environment/Base
Source0: http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-%{version}.tar.bz2
+Patch1: libpwquality-1.0.0-oldpython.patch
%global _moduledir /%{_lib}/security
%global _secconfdir %{_sysconfdir}/security
@@ -62,6 +63,7 @@ pronounceable passwords from Python applications.
%prep
%setup -q
+%patch1 -p1 -b .oldpython
%build
%configure \
@@ -118,6 +120,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitearch}/pwquality.so
%changelog
+* Mon Jan 23 2012 Tomas Mraz <tmraz at redhat.com> 1.0.0-3
+- replace a symbol that is missing in RHEL-6 python (#783949)
+
* Tue Dec 13 2011 Tomas Mraz <tmraz at redhat.com> 1.0.0-2
- epel changes
More information about the scm-commits
mailing list