Bug 1219842

Summary: [python-nss] FTBFS with Python 3.12
Product: [openSUSE] openSUSE Tumbleweed Reporter: Matej Cepl <mcepl>
Component: PythonAssignee: Matej Cepl <mcepl>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: http://bugs.debian.org/1055552
https://bugzilla.mozilla.org/show_bug.cgi?id=1879889
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Matej Cepl 2024-02-12 15:20:53 UTC
https://build.opensuse.org/package/live_build_log/openSUSE:Factory/python-nss/standard/x86_64

[   28s] + /usr/bin/python3.12 setup.py build '--executable=/usr/bin/python3.12 -s'
[   28s] /home/abuild/rpmbuild/BUILD/python-nss-1.0.1/setup.py:45: SyntaxWarning: invalid escape sequence '\s'
[   28s]   version_re = re.compile("^\s*__version__\s*=\s*['\"]([^'\"]*)['\"]")
[   28s] /home/abuild/rpmbuild/BUILD/python-nss-1.0.1/setup.py:188: SyntaxWarning: invalid escape sequence '\.'
[   28s]   """
[   28s] src/py_nspr_error.c: In function ‘set_nspr_error’:
[   28s] src/py_nspr_error.c:189:23: error: macro "va_start" requires 2 arguments, but only 1 given
[   28s]   189 |         va_start(vargs);
[   28s]       |                       ^
[   28s] In file included from /usr/include/python3.12/bytesobject.h:10,
[   28s]                  from /usr/include/python3.12/Python.h:50,
[   28s]                  from src/py_nspr_error.c:6:
[   28s] /usr/lib64/gcc/x86_64-suse-linux/13/include/stdarg.h:50: note: macro "va_start" defined here
[   28s]    50 | #define va_start(v,l)   __builtin_va_start(v,l)
[   28s]       | 
[   28s] src/py_nspr_error.c:189:9: error: ‘va_start’ undeclared (first use in this function)
[   28s]   189 |         va_start(vargs);
[   28s]       |         ^~~~~~~~
[   28s] src/py_nspr_error.c:189:9: note: each undeclared identifier is reported only once for each function it appears in
[   28s] src/py_nspr_error.c: In function ‘set_cert_verify_error’:
[   28s] src/py_nspr_error.c:225:23: error: macro "va_start" requires 2 arguments, but only 1 given
[   28s]   225 |         va_start(vargs);
[   28s]       |                       ^
[   28s] /usr/lib64/gcc/x86_64-suse-linux/13/include/stdarg.h:50: note: macro "va_start" defined here
[   28s]    50 | #define va_start(v,l)   __builtin_va_start(v,l)
[   28s]       | 
[   28s] src/py_nspr_error.c:225:9: error: ‘va_start’ undeclared (first use in this function)
[   28s]   225 |         va_start(vargs);
[   28s]       |         ^~~~~~~~
[   28s] error: command '/usr/bin/gcc' failed with exit code 1
[   28s] error: Bad exit status from /var/tmp/rpm-tmp.s7LpL0 (%build)
Comment 1 OBSbugzilla Bot 2024-02-13 11:15:02 UTC
This is an autogenerated message for OBS integration:
This bug (1219842) was mentioned in
https://build.opensuse.org/request/show/1146357 Factory / python-nss
Comment 2 Matej Cepl 2024-02-21 09:42:46 UTC
SR has been accepted.