Bug#1055552: python-nss ftbfs with Python 3.12

2023-12-12 Thread Bastian Germann

Control: tags -1 patch
X-Debbugs-Cc: tsu.y...@gmail.com

Please find a patch attached that fixes this issue.

I have forwarded it from the NMU RFS #1057631. Bo YU, please file your patches
so that the maintainer can act on them before asking for NMU sponsoring.Description: fix ftbfs on python3.12 
Author: Bo YU 
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=102 
Forwarded: no, no suitable upstream to submit this
Last-Update: 2023-12-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/py_nspr_error.c
+++ b/src/py_nspr_error.c
@@ -20,6 +20,8 @@
 #include "secerr.h"
 #include "sslerr.h"
 
+#define HAVE_STDARG_PROTOTYPES 1
+
 typedef struct {
 PyBaseExceptionObject base;
 PyObject *error_desc;


Bug#1055552: python-nss ftbfs with Python 3.12

2023-11-07 Thread Matthias Klose

Package: src:python-nss
Version: 1.0.1-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

python-nss ftbfs with Python 3.12:

[...]
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:310: /usr/bin/python3.12 setup.py build
/<>/setup.py:42: SyntaxWarning: invalid escape sequence '\s'
  version_re = re.compile("^\s*__version__\s*=\s*['\"]([^'\"]*)['\"]")
/<>/setup.py:216: SyntaxWarning: invalid escape sequence '\.'
  """
/usr/lib/python3/dist-packages/setuptools/dist.py:744: 
SetuptoolsDeprecationWarning: Invalid dash-separated options

!!



Usage of dash-separated 'dist-dir' will not be supported in future
versions. Please use the underscore name 'dist_dir' instead.

This deprecation is overdue, please update your project and 
remove deprecated

calls to avoid build errors in the future.

See 
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html 
for details.




!!
  opt = self.warn_dash_deprecation(opt, section)
src/py_nspr_error.c: In function ‘set_nspr_error’:
src/py_nspr_error.c:189:23: error: macro "va_start" requires 2 
arguments, but only 1 given

  189 | va_start(vargs);
  |   ^
In file included from /usr/include/python3.12/bytesobject.h:10,
 from /usr/include/python3.12/Python.h:50,
 from src/py_nspr_error.c:6:
/usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h:50: note: macro 
"va_start" defined here

   50 | #define va_start(v,l)   __builtin_va_start(v,l)
  |
src/py_nspr_error.c:189:9: error: ‘va_start’ undeclared (first use in 
this function)

  189 | va_start(vargs);
  | ^~~~
src/py_nspr_error.c:189:9: note: each undeclared identifier is reported 
only once for each function it appears in

src/py_nspr_error.c: In function ‘set_cert_verify_error’:
src/py_nspr_error.c:225:23: error: macro "va_start" requires 2 
arguments, but only 1 given

  225 | va_start(vargs);
  |   ^
/usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h:50: note: macro 
"va_start" defined here

   50 | #define va_start(v,l)   __builtin_va_start(v,l)
  |
src/py_nspr_error.c:225:9: error: ‘va_start’ undeclared (first use in 
this function)

  225 | va_start(vargs);
  | ^~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:395: build: plugin distutils failed with: exit 
code=1: /usr/bin/python3.12 setup.py build