[packages/python-nss] - updated to 0.14.1 - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Fri Nov 1 19:44:47 CET 2013


commit d4efc9485b6637da5a2c812c8469a671fb9252e7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Nov 1 19:44:53 2013 +0100

    - updated to 0.14.1
    - added format patch (fixes build with -Werror=format-security)

 python-nss-format.patch | 20 ++++++++++++++++++++
 python-nss.spec         |  8 +++++---
 2 files changed, 25 insertions(+), 3 deletions(-)
---
diff --git a/python-nss.spec b/python-nss.spec
index c71ebdf..199c521 100644
--- a/python-nss.spec
+++ b/python-nss.spec
@@ -1,12 +1,13 @@
 Summary:	Python bindings for NSS and NSPR
 Summary(pl.UTF-8):	Wiązania Pythona do bibliotek NSS i NSPR
 Name:		python-nss
-Version:	0.14.0
+Version:	0.14.1
 Release:	1
 License:	MPL v1.1 or GPL v2+ or LGPL v2+
 Group:		Development/Languages/Python
-Source0:	http://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/PYNSS_RELEASE_0_14_0/src/%{name}-%{version}.tar.bz2
-# Source0-md5:	374b9745558356e05ce2e88a804ccb34
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/PYNSS_RELEASE_0_14_1/src/%{name}-%{version}.tar.bz2
+# Source0-md5:	1aa9187d38cf9b35afa20e2159f28581
+Patch0:		%{name}-format.patch
 URL:		http://www.mozilla.org/projects/security/pki/nss/
 BuildRequires:	nspr-devel >= 4
 BuildRequires:	nss-devel >= 3
@@ -26,6 +27,7 @@ NSPR (Netscape Portable Runtime).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CFLAGS="%{rpmcflags}"
diff --git a/python-nss-format.patch b/python-nss-format.patch
new file mode 100644
index 0000000..70b90ab
--- /dev/null
+++ b/python-nss-format.patch
@@ -0,0 +1,20 @@
+--- python-nss-0.14.1/src/py_nss.c.orig	2013-06-13 15:58:32.000000000 +0200
++++ python-nss-0.14.1/src/py_nss.c	2013-11-01 18:55:12.905646633 +0100
+@@ -22258,7 +22258,7 @@
+         PyObject *py_err_msg = PyString_FromFormat("Failed to %s %s (%lx) pkcs12 cipher",
+                                                    enabled ? _("enable") : _("disable"),
+                                                    PyString_AsString(py_cipher_name), cipher);
+-        set_nspr_error(PyString_AsString(py_err_msg));
++        set_nspr_error("%s", PyString_AsString(py_err_msg));
+         Py_DECREF(py_cipher_name);
+         Py_DECREF(py_err_msg);
+         return NULL;
+@@ -22299,7 +22299,7 @@
+             PyObject *py_cipher_name = pkcs12_cipher_to_pystr(cipher);
+             PyObject *py_err_msg = PyString_FromFormat("Failed to enable %s (%lx) pkcs12 cipher",
+                                                        PyString_AsString(py_cipher_name), cipher);
+-            set_nspr_error(PyString_AsString(py_err_msg));
++            set_nspr_error("%s", PyString_AsString(py_err_msg));
+             Py_DECREF(py_cipher_name);
+             Py_DECREF(py_err_msg);
+             return NULL;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-nss.git/commitdiff/d4efc9485b6637da5a2c812c8469a671fb9252e7



More information about the pld-cvs-commit mailing list