Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/file-classifier.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1740039848.333045/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=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/file-classifier.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 :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 :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 :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/file-classifier-1.0.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 x86_64 --nodeps /builddir/build/SPECS/file-classifier.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1740039848.333045/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=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/file-classifier.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 :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 :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 :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/file-classifier-1.0.0-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/file-classifier.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1740039848.333045/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=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/file-classifier.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.018NyU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf file-classifier-1.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/file-classifier-1.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd file-classifier-1.0.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.UgNQYN + umask 022 + cd /builddir/build/BUILD + cd file-classifier-1.0.0 + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -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 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/file_classifier copying file_classifier/__init__.py -> build/lib/file_classifier copying file_classifier/file_classifier.py -> build/lib/file_classifier copying file_classifier/file_mover.py -> build/lib/file_classifier copying file_classifier/file_report.py -> build/lib/file_classifier copying file_classifier/file_traverser.py -> build/lib/file_classifier copying file_classifier/file_type_detector.py -> build/lib/file_classifier copying file_classifier/logger.py -> build/lib/file_classifier + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.h1wfXL + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64 ++ dirname /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64 + cd file-classifier-1.0.0 + pip3.11 install -I dist/python_magic-0.4.27-py2.py3-none-any.whl --root /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64 --no-deps Processing ./dist/python_magic-0.4.27-py2.py3-none-any.whl Installing collected packages: python-magic Successfully installed python-magic-0.4.27 + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -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 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64 running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/__init__.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/file_classifier.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/file_mover.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/file_report.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/file_traverser.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/file_type_detector.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier copying build/lib/file_classifier/logger.py -> /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/file_classifier.py to file_classifier.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/file_mover.py to file_mover.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/file_report.py to file_report.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/file_traverser.py to file_traverser.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/file_type_detector.py to file_type_detector.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier/logger.py to logger.cpython-311.pyc writing byte-compilation script '/tmp/tmp_i6kh29d.py' /usr/bin/python3 /tmp/tmp_i6kh29d.py removing /tmp/tmp_i6kh29d.py running install_egg_info running egg_info writing file_classifier.egg-info/PKG-INFO writing dependency_links to file_classifier.egg-info/dependency_links.txt writing entry points to file_classifier.egg-info/entry_points.txt writing requirements to file_classifier.egg-info/requires.txt writing top-level names to file_classifier.egg-info/top_level.txt reading manifest file 'file_classifier.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'file_classifier.egg-info/SOURCES.txt' Copying file_classifier.egg-info to /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/lib/python3.11/site-packages/file_classifier-1.0.0-py3.11.egg-info running install_scripts Installing file-classifier script to /builddir/build/BUILDROOT/file-classifier-1.0.0-1.x86_64/usr/bin + ln -s /usr/bin/file-classifier /usr/bin/main ln: failed to create symbolic link '/usr/bin/main': Permission denied error: Bad exit status from /var/tmp/rpm-tmp.h1wfXL (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.h1wfXL (%install) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/file-classifier.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/file-classifier.spec