Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713182935.081713/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-av-7.0.1-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713182935.081713/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-av-7.0.1-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713182935.081713/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hBccwJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyAV-7.0.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyAV-7.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyAV-7.0.1 + /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.TubSHx + umask 022 + cd /builddir/build/BUILD + cd PyAV-7.0.1 + 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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 -mpip wheel --verbose --progress-bar off --disable-pip-version-check --use-pep517 --no-build-isolation --no-deps --wheel-dir ./build . Processing /builddir/build/BUILD/PyAV-7.0.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /tmp/pip-modern-metadata-r2k_ohqq/av.egg-info writing /tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/PKG-INFO writing dependency_links to /tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/dependency_links.txt writing entry points to /tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/entry_points.txt writing top-level names to /tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/top_level.txt writing manifest file '/tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/SOURCES.txt' listing git files failed - pretending there aren't any reading manifest file '/tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.c' under directory 'src/av' adding license file 'LICENSE.txt' adding license file 'AUTHORS.py' adding license file 'AUTHORS.rst' writing manifest file '/tmp/pip-modern-metadata-r2k_ohqq/av.egg-info/SOURCES.txt' creating '/tmp/pip-modern-metadata-r2k_ohqq/av-7.0.1.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: av Building wheel for av (pyproject.toml): started Running command Building wheel for av (pyproject.toml) running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/av copying av/__init__.py -> build/lib.linux-x86_64-cpython-311/av copying av/__main__.py -> build/lib.linux-x86_64-cpython-311/av copying av/datasets.py -> build/lib.linux-x86_64-cpython-311/av copying av/deprecation.py -> build/lib.linux-x86_64-cpython-311/av creating build/lib.linux-x86_64-cpython-311/av/audio copying av/audio/__init__.py -> build/lib.linux-x86_64-cpython-311/av/audio creating build/lib.linux-x86_64-cpython-311/av/codec copying av/codec/__init__.py -> build/lib.linux-x86_64-cpython-311/av/codec creating build/lib.linux-x86_64-cpython-311/av/container copying av/container/__init__.py -> build/lib.linux-x86_64-cpython-311/av/container creating build/lib.linux-x86_64-cpython-311/av/data copying av/data/__init__.py -> build/lib.linux-x86_64-cpython-311/av/data creating build/lib.linux-x86_64-cpython-311/av/filter copying av/filter/__init__.py -> build/lib.linux-x86_64-cpython-311/av/filter creating build/lib.linux-x86_64-cpython-311/av/sidedata copying av/sidedata/__init__.py -> build/lib.linux-x86_64-cpython-311/av/sidedata creating build/lib.linux-x86_64-cpython-311/av/subtitles copying av/subtitles/__init__.py -> build/lib.linux-x86_64-cpython-311/av/subtitles creating build/lib.linux-x86_64-cpython-311/av/video copying av/video/__init__.py -> build/lib.linux-x86_64-cpython-311/av/video running build_ext running config Warning: We don't understand some of CFLAGS (and will leave it in the envvar): -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection Warning: We don't understand some of LDFLAGS (and will leave it in the envvar): -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld PyAV: 7.0.1 (unknown commit) Python: 3.11.4 (main, Sep 21 2023, 23:14:05) [GCC 12.3.1 (openEuler 12.3.1-16.oe2309)] platform: Linux-5.10.0-60.118.0.145.oe2203.x86_64-x86_64-with-glibc2.38 extension_extra: include_dirs: [b'include'] libraries: [] library_dirs: [] define_macros: [] runtime_library_dirs: [] config_macros: PYAV_COMMIT_STR="unknown-commit" PYAV_VERSION=7.0.1 PYAV_VERSION_STR="7.0.1" Could not find libavformat with pkg-config. Could not find libavcodec with pkg-config. Could not find libavdevice with pkg-config. Could not find libavutil with pkg-config. Could not find libavfilter with pkg-config. Could not find libswscale with pkg-config. Could not find libswresample with pkg-config. error: subprocess-exited-with-error × Building wheel for av (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /usr/bin/python3 /usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmphclxpwcg cwd: /builddir/build/BUILD/PyAV-7.0.1 Building wheel for av (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for av Failed to build av ERROR: Failed to build one or more wheels error: Bad exit status from /var/tmp/rpm-tmp.TubSHx (%build) Bad exit status from /var/tmp/rpm-tmp.TubSHx (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 x86_64 --nodeps /builddir/build/SPECS/python-av.spec