Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1683716536.805180/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffff8bedb910>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
/etc/profile.d/system-info.sh: line 55: ps: command not found
Building target platforms: aarch64
Building for target aarch64
Wrote: /builddir/build/SRPMS/python-purepng-0.2.0-1.src.rpm
Child return code was: 0
Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1683716536.805180/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffb9171250>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
/etc/profile.d/system-info.sh: line 55: ps: command not found
Building target platforms: aarch64
Building for target aarch64
Wrote: /builddir/build/SRPMS/python-purepng-0.2.0-1.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1683716536.805180/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffb9171250>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
/etc/profile.d/system-info.sh: line 55: ps: command not found
Building target platforms: aarch64
Building for target aarch64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gGQwqg
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf purepng-0.2.0
+ /usr/bin/gzip -dc /builddir/build/SOURCES/purepng-0.2.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd purepng-0.2.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.avH1QO
+ umask 022
+ cd /builddir/build/BUILD
+ cd purepng-0.2.0
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'
+ LDFLAGS='-Wl,-z,relro   -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld'
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
creating build/lib.linux-aarch64-3.9/png
copying code/png/__init__.py -> build/lib.linux-aarch64-3.9/png
copying code/png/PngImagePlugin.py -> build/lib.linux-aarch64-3.9/png
copying code/png/png.py -> build/lib.linux-aarch64-3.9/png
running build_ext
building 'pngfilters' extension
creating build/temp.linux-aarch64-3.9
creating build/temp.linux-aarch64-3.9/code
creating build/temp.linux-aarch64-3.9/code/png
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c code/png/pngfilters.c -o build/temp.linux-aarch64-3.9/code/png/pngfilters.o
code/png/pngfilters.c: In function ‘PyInit_pngfilters’:
code/png/pngfilters.c:18330:42: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
18330 |   __pyx_type_3png_10pngfilters_BaseFilter.tp_print = 0;
      |                                          ^
code/png/pngfilters.c:18335:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
18335 |   __pyx_type___pyx_array.tp_print = 0;
      |                         ^
code/png/pngfilters.c:18338:31: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
18338 |   __pyx_type___pyx_MemviewEnum.tp_print = 0;
      |                               ^
code/png/pngfilters.c:18349:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
18349 |   __pyx_type___pyx_memoryview.tp_print = 0;
      |                              ^
code/png/pngfilters.c:18358:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
18358 |   __pyx_type___pyx_memoryviewslice.tp_print = 0;
      |                                   ^
code/png/pngfilters.c: In function ‘__Pyx_ParseOptionalKeywords’:
code/png/pngfilters.c:18617:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18617 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18617:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
18617 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18617:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18617 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18617:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18617 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18617:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
18617 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18617:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18617 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18633:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18633 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18633:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
18633 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18633:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18633 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18633:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18633 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18633:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
18633 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c:18633:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
18633 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c: In function ‘__Pyx_decode_c_string’:
code/png/pngfilters.c:19920:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
19920 |         return PyUnicode_FromUnicode(NULL, 0);
      |         ^~~~~~
In file included from /usr/include/python3.9/unicodeobject.h:1026,
                 from /usr/include/python3.9/Python.h:93,
                 from code/png/pngfilters.c:10:
/usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
code/png/pngfilters.c: In function ‘__Pyx_ExceptionSave’:
code/png/pngfilters.c:19959:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
19959 |     *type = tstate->exc_type;
      |                     ^~~~~~~~
      |                     curexc_type
code/png/pngfilters.c:19960:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
19960 |     *value = tstate->exc_value;
      |                      ^~~~~~~~~
      |                      curexc_value
code/png/pngfilters.c:19961:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
19961 |     *tb = tstate->exc_traceback;
      |                   ^~~~~~~~~~~~~
      |                   curexc_traceback
code/png/pngfilters.c: In function ‘__Pyx_ExceptionReset’:
code/png/pngfilters.c:19973:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
19973 |     tmp_type = tstate->exc_type;
      |                        ^~~~~~~~
      |                        curexc_type
code/png/pngfilters.c:19974:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
19974 |     tmp_value = tstate->exc_value;
      |                         ^~~~~~~~~
      |                         curexc_value
code/png/pngfilters.c:19975:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
19975 |     tmp_tb = tstate->exc_traceback;
      |                      ^~~~~~~~~~~~~
      |                      curexc_traceback
code/png/pngfilters.c:19976:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
19976 |     tstate->exc_type = type;
      |             ^~~~~~~~
      |             curexc_type
code/png/pngfilters.c:19977:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
19977 |     tstate->exc_value = value;
      |             ^~~~~~~~~
      |             curexc_value
code/png/pngfilters.c:19978:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
19978 |     tstate->exc_traceback = tb;
      |             ^~~~~~~~~~~~~
      |             curexc_traceback
code/png/pngfilters.c: In function ‘__Pyx_GetException’:
code/png/pngfilters.c:20021:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
20021 |     tmp_type = tstate->exc_type;
      |                        ^~~~~~~~
      |                        curexc_type
code/png/pngfilters.c:20022:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
20022 |     tmp_value = tstate->exc_value;
      |                         ^~~~~~~~~
      |                         curexc_value
code/png/pngfilters.c:20023:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
20023 |     tmp_tb = tstate->exc_traceback;
      |                      ^~~~~~~~~~~~~
      |                      curexc_traceback
code/png/pngfilters.c:20024:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
20024 |     tstate->exc_type = local_type;
      |             ^~~~~~~~
      |             curexc_type
code/png/pngfilters.c:20025:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
20025 |     tstate->exc_value = local_value;
      |             ^~~~~~~~~
      |             curexc_value
code/png/pngfilters.c:20026:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
20026 |     tstate->exc_traceback = local_tb;
      |             ^~~~~~~~~~~~~
      |             curexc_traceback
code/png/pngfilters.c: In function ‘__Pyx_ExceptionSwap’:
code/png/pngfilters.c:20048:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
20048 |     tmp_type = tstate->exc_type;
      |                        ^~~~~~~~
      |                        curexc_type
code/png/pngfilters.c:20049:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
20049 |     tmp_value = tstate->exc_value;
      |                         ^~~~~~~~~
      |                         curexc_value
code/png/pngfilters.c:20050:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
20050 |     tmp_tb = tstate->exc_traceback;
      |                      ^~~~~~~~~~~~~
      |                      curexc_traceback
code/png/pngfilters.c:20051:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
20051 |     tstate->exc_type = *type;
      |             ^~~~~~~~
      |             curexc_type
code/png/pngfilters.c:20052:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
20052 |     tstate->exc_value = *value;
      |             ^~~~~~~~~
      |             curexc_value
code/png/pngfilters.c:20053:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
20053 |     tstate->exc_traceback = *tb;
      |             ^~~~~~~~~~~~~
      |             curexc_traceback
/builddir/build/BUILD/purepng-0.2.0/setup.py:54: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
  logging.warn('building optional extension "%s" failed: %s' %
WARNING:root:building optional extension "pngfilters" failed: command '/usr/bin/gcc' failed with exit code 1
+ sleep 1
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.M4dqGa
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64
++ dirname /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64
+ cd purepng-0.2.0
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'
+ LDFLAGS='-Wl,-z,relro   -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld'
+ /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64
running install
/usr/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running install_lib
creating /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr
creating /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64
creating /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9
creating /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages
creating /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png
copying build/lib.linux-aarch64-3.9/png/__init__.py -> /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png
copying build/lib.linux-aarch64-3.9/png/PngImagePlugin.py -> /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png
copying build/lib.linux-aarch64-3.9/png/png.py -> /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png
byte-compiling /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png/__init__.py to __init__.cpython-39.pyc
byte-compiling /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png/PngImagePlugin.py to PngImagePlugin.cpython-39.pyc
byte-compiling /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/png/png.py to png.cpython-39.pyc
writing byte-compilation script '/tmp/tmpx8pee6cv.py'
/usr/bin/python3 /tmp/tmpx8pee6cv.py
removing /tmp/tmpx8pee6cv.py
running install_egg_info
running egg_info
writing purepng.egg-info/PKG-INFO
writing dependency_links to purepng.egg-info/dependency_links.txt
writing top-level names to purepng.egg-info/top_level.txt
reading manifest file 'purepng.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.pyx' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*$py.class' found anywhere in distribution
warning: no previously-included files matching '*.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
adding license file 'LICENCE'
writing manifest file 'purepng.egg-info/SOURCES.txt'
Copying purepng.egg-info to /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9/site-packages/purepng-0.2.0-py3.9.egg-info
running install_scripts
+ install -d -m755 /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64//usr/share/doc/python-purepng
+ '[' -d doc ']'
~/build/BUILDROOT/python-purepng-0.2.0-1.aarch64 ~/build/BUILD/purepng-0.2.0
+ '[' -d docs ']'
+ '[' -d example ']'
+ '[' -d examples ']'
+ pushd /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64
+ '[' -d usr/lib ']'
+ '[' -d usr/lib64 ']'
+ find usr/lib64 -type f -printf '/%h/%f\n'
+ '[' -d usr/bin ']'
+ '[' -d usr/sbin ']'
+ touch doclist.lst
+ '[' -d usr/share/man ']'
~/build/BUILD/purepng-0.2.0
+ popd
+ mv /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/filelist.lst .
+ mv /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/doclist.lst .
+ /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 0.2.0-1 --unique-debug-suffix -0.2.0-1.aarch64 --unique-debug-src-base python-purepng-0.2.0-1.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/purepng-0.2.0
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1
Bytecompiling .py files below /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib64/python3.9 using /usr/bin/python3.9
+ /usr/lib/rpm/brp-python-hardlink
Processing files: python3-purepng-0.2.0-1.noarch
error: Directory not found: /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib/python3.9/site-packages/*
RPM build errors:
    Directory not found: /builddir/build/BUILDROOT/python-purepng-0.2.0-1.aarch64/usr/lib/python3.9/site-packages/*
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec\n', 1)]
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
mockbuild.exception.Error: Command failed: 
 # bash --login -c /usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-purepng.spec