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-1713110668.000859/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-12.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/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713110668.000859/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-12.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/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713110668.000859/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.IJxthR + umask 022 + cd /builddir/build/BUILD + cat + tee -a /builddir/.bashrc alias python=python3 + source /builddir/.bashrc ++ '[' -f /etc/bashrc ']' ++ . /etc/bashrc +++ '[' -z '' ']' +++ BASHRCSOURCED=Y +++ '[' '' ']' +++ shopt -q login_shell ++++ umask +++ '[' 0022 -eq 0 ']' +++ SHELL=/bin/bash +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/00-modulepath.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/00-modulepath.sh ++++ '[' -z '' ']' +++++ readlink /etc/alternatives/modules.sh ++++ '[' '' = /usr/share/lmod/lmod/init/profile -o -f /etc/profile.d/z00_lmod.sh ']' ++++ : +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/alias.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/alias.sh ++++ alias '..=cd ..' ++++ alias '...=cd ../..' +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/color_grep.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/color_grep.sh ++++ /usr/libexec/grepconf.sh -c ++++ alias 'grep=grep --color=auto' ++++ alias 'egrep=egrep --color=auto' ++++ alias 'fgrep=fgrep --color=auto' +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/colorls.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/colorls.sh ++++ '[' '!' -t 0 ']' ++++ return +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/colorxzgrep.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/colorxzgrep.sh ++++ /usr/libexec/grepconf.sh -c ++++ alias 'xzgrep=xzgrep --color=auto' ++++ alias 'xzegrep=xzegrep --color=auto' ++++ alias 'xzfgrep=xzfgrep --color=auto' +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/colorzgrep.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/colorzgrep.sh ++++ '[' -f /usr/libexec/grepconf.sh ']' ++++ /usr/libexec/grepconf.sh -c ++++ alias 'zgrep=zgrep --color=auto' ++++ alias 'zfgrep=zfgrep --color=auto' ++++ alias 'zegrep=zegrep --color=auto' +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/gawk.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/gawk.sh +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/lang.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/lang.sh ++++ unset LANG_backup +++++ /usr/bin/locale ++++ '[' -n '' ']' ++++ LANG_backup=C ++++ for config in /etc/locale.conf "${HOME}/.i18n" ++++ '[' -f /etc/locale.conf ']' ++++ for config in /etc/locale.conf "${HOME}/.i18n" ++++ '[' -f /builddir/.i18n ']' ++++ '[' -n C ']' ++++ LANG=C ++++ unset LANG_backup config ++++ '[' -n '' ']' ++++ '[' -n C ']' ++++ '[' vt100 = linux ']' +++ for i in /etc/profile.d/*.sh +++ '[' -r /etc/profile.d/system-info.sh ']' +++ '[' '' ']' +++ . /etc/profile.d/system-info.sh +++++ uname -r ++++ welcome=5.10.0-60.118.0.145.oe2203.x86_64 +++++ cat /proc/meminfo +++++ awk '/^MemTotal:/ {printf($2)}' ++++ memory_total=7612144 +++++ cat /proc/meminfo +++++ awk '/^MemFree:/ { printf($2)}' ++++ memory_free=2054496 +++++ cat /proc/meminfo +++++ awk '/^Buffers:/ { printf($2)}' ++++ buffers=4304 +++++ cat /proc/meminfo +++++ awk '/^Cached:/ { printf($2)}' ++++ cached=4922540 +++++ cat /proc/meminfo +++++ awk '/^SReclaimable:/ { printf($2)}' ++++ sreclaimable=221480 +++++ cat /proc/meminfo +++++ awk '/^SwapTotal:/ { printf($2)}' ++++ swap_total=0 +++++ cat /proc/meminfo +++++ awk '/^SwapFree:/ { printf($2)}' ++++ swap_free=0 ++++ [[ 7612144 -gt 0 ]] +++++ echo 'scale=1; (7612144 - 2054496 - 4304 - 4922540 - 221480) * 100.0 / 7612144' +++++ bc ++++ memory_usage=5.3 ++++ memory_usage=5.3% ++++ [[ 0 -gt 0 ]] ++++ swap_mem=0.0% +++++ df -h / +++++ awk '/\// {print $(NF-1)}' ++++ usageof=21% +++++ awk '{print $1}' /proc/loadavg ++++ load_average=1.24 +++++ whoami ++++ whoiam=mockbuild +++++ date ++++ time_cur='Mon Apr 15 00:07:12 CST 2024' +++++ ps aux +++++ wc -l ++++ processes=137 +++++ users +++++ wc -w ++++ user_num=0 ++++ ip_pre= ++++ '[' -x /sbin/ip ']' ++++ echo -e '\n' ++++ echo -e 'Welcome to 5.10.0-60.118.0.145.oe2203.x86_64\n' ++++ echo -e 'System information as of time: \tMon Apr 15 00:07:12 CST 2024\n' ++++ echo -e 'System load: \t\033[0;33;40m1.24\033[0m' ++++ echo -e 'Processes: \t137' ++++ echo -e 'Memory used: \t5.3%' ++++ echo -e 'Swap used: \t0.0%' ++++ echo -e 'Usage On: \t21%' ++++ echo -e 'Users online: \t0' ++++ '[' mockbuild = root ']' ++++ echo -e 'To run a command as administrator(user "root"),use "sudo ".' +++ unset i +++ unset -f pathmunge ++ PATH=/builddir/.local/bin:/builddir/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin ++ export PATH ++ alias python=python3 + cd /builddir/build/BUILD + rm -rf PyAV-12.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyAV-12.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyAV-12.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.jqjrUo + umask 022 + cd /builddir/build/BUILD + cd PyAV-12.0.0 + make CFLAGS="-O0" LDFLAGS="" python setup.py build_ext --inplace --debug /bin/sh: line 1: python: command not found make: *** [Makefile:14: build] Error 127 error: Bad exit status from /var/tmp/rpm-tmp.jqjrUo (%build) Bad exit status from /var/tmp/rpm-tmp.jqjrUo (%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