[packages/python-nss] Rel 11; build fix

arekm arekm at pld-linux.org
Thu May 8 20:42:49 CEST 2025


commit 1f3a056c0e53f2601bf3aa90353a2752195ec937
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 8 20:30:44 2025 +0200

    Rel 11; build fix

 no-stdarg-proto-check.patch | 26 ++++++++++++++++++++++++++
 python-nss.spec             |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/python-nss.spec b/python-nss.spec
index ace716b..71738c2 100644
--- a/python-nss.spec
+++ b/python-nss.spec
@@ -7,12 +7,13 @@ Summary:	Python 2 bindings for NSS and NSPR
 Summary(pl.UTF-8):	Wiązania Pythona 2 do bibliotek NSS i NSPR
 Name:		python-nss
 Version:	1.0.1
-Release:	10
+Release:	11
 License:	MPL v2.0 or GPL v2+ or LGPL v2+
 Group:		Development/Languages/Python
 Source0:	http://ftp.mozilla.org/pub/security/python-nss/releases/PYNSS_RELEASE_1_0_1/src/%{name}-%{version}.tar.bz2
 # Source0-md5:	8c7fc2b76122d9d950138c61c876e2ee
 Patch0:		type-conflicts.patch
+Patch1:		no-stdarg-proto-check.patch
 URL:		http://www.mozilla.org/projects/security/pki/nss/
 BuildRequires:	nspr-devel >= 4
 BuildRequires:	nss-devel >= 3
@@ -48,6 +49,7 @@ NSPR (Netscape Portable Runtime).
 %prep
 %setup -q
 %patch -P 0 -p1
+%patch -P 1 -p1
 
 %build
 %if %{with python2}
diff --git a/no-stdarg-proto-check.patch b/no-stdarg-proto-check.patch
new file mode 100644
index 0000000..b1ee9d3
--- /dev/null
+++ b/no-stdarg-proto-check.patch
@@ -0,0 +1,26 @@
+--- a/src/py_nspr_error.c~	2021-08-02 19:23:55.000000000 -0500
++++ b/src/py_nspr_error.c	2023-07-10 16:01:55.170111358 -0500
+@@ -183,11 +183,7 @@
+     PyObject *exception_obj = NULL;
+ 
+     if (format) {
+-#ifdef HAVE_STDARG_PROTOTYPES
+         va_start(vargs, format);
+-#else
+-        va_start(vargs);
+-#endif
+         error_message = PyUnicode_FromFormatV(format, vargs);
+         va_end(vargs);
+     }
+@@ -219,11 +215,7 @@
+     PyObject *exception_obj = NULL;
+ 
+     if (format) {
+-#ifdef HAVE_STDARG_PROTOTYPES
+         va_start(vargs, format);
+-#else
+-        va_start(vargs);
+-#endif
+         error_message = PyUnicode_FromFormatV(format, vargs);
+         va_end(vargs);
+     }
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list