Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-pydoop.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681867852.184362/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-pydoop.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-pydoop-2.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-pydoop.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681867852.184362/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-pydoop.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-pydoop-2.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-pydoop.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681867852.184362/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-pydoop.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JJZo1H + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pydoop-2.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/pydoop-2.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pydoop-2.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.3P18BH + umask 022 + cd /builddir/build/BUILD + cd pydoop-2.0.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 -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' using setuptools version 59.4.0 running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/pydoop copying pydoop/__init__.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/hadut.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/jc.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/hadoop_utils.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/version.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/avrolib.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/test_utils.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/test_support.py -> build/lib.linux-x86_64-3.9/pydoop copying pydoop/config.py -> build/lib.linux-x86_64-3.9/pydoop creating build/lib.linux-x86_64-3.9/pydoop/hdfs copying pydoop/hdfs/__init__.py -> build/lib.linux-x86_64-3.9/pydoop/hdfs copying pydoop/hdfs/file.py -> build/lib.linux-x86_64-3.9/pydoop/hdfs copying pydoop/hdfs/fs.py -> build/lib.linux-x86_64-3.9/pydoop/hdfs copying pydoop/hdfs/common.py -> build/lib.linux-x86_64-3.9/pydoop/hdfs copying pydoop/hdfs/path.py -> build/lib.linux-x86_64-3.9/pydoop/hdfs creating build/lib.linux-x86_64-3.9/pydoop/mapreduce copying pydoop/mapreduce/__init__.py -> build/lib.linux-x86_64-3.9/pydoop/mapreduce copying pydoop/mapreduce/pipes.py -> build/lib.linux-x86_64-3.9/pydoop/mapreduce copying pydoop/mapreduce/connections.py -> build/lib.linux-x86_64-3.9/pydoop/mapreduce copying pydoop/mapreduce/api.py -> build/lib.linux-x86_64-3.9/pydoop/mapreduce copying pydoop/mapreduce/binary_protocol.py -> build/lib.linux-x86_64-3.9/pydoop/mapreduce creating build/lib.linux-x86_64-3.9/pydoop/utils copying pydoop/utils/__init__.py -> build/lib.linux-x86_64-3.9/pydoop/utils copying pydoop/utils/conversion_tables.py -> build/lib.linux-x86_64-3.9/pydoop/utils copying pydoop/utils/py3compat.py -> build/lib.linux-x86_64-3.9/pydoop/utils copying pydoop/utils/misc.py -> build/lib.linux-x86_64-3.9/pydoop/utils copying pydoop/utils/jvm.py -> build/lib.linux-x86_64-3.9/pydoop/utils creating build/lib.linux-x86_64-3.9/pydoop/app copying pydoop/app/__init__.py -> build/lib.linux-x86_64-3.9/pydoop/app copying pydoop/app/main.py -> build/lib.linux-x86_64-3.9/pydoop/app copying pydoop/app/script_template.py -> build/lib.linux-x86_64-3.9/pydoop/app copying pydoop/app/argparse_types.py -> build/lib.linux-x86_64-3.9/pydoop/app copying pydoop/app/script.py -> build/lib.linux-x86_64-3.9/pydoop/app copying pydoop/app/submit.py -> build/lib.linux-x86_64-3.9/pydoop/app creating build/lib.linux-x86_64-3.9/pydoop/hdfs/core copying pydoop/hdfs/core/__init__.py -> build/lib.linux-x86_64-3.9/pydoop/hdfs/core copying pydoop/pydoop.properties -> build/lib.linux-x86_64-3.9/pydoop running build_ext Traceback (most recent call last): File "/builddir/build/BUILD/pydoop-2.0.0/pydoop/utils/jvm.py", line 49, in get_java_home return os.environ["JAVA_HOME"] File "/usr/lib64/python3.9/os.py", line 679, in __getitem__ raise KeyError(key) from None KeyError: 'JAVA_HOME' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/pydoop-2.0.0/pydoop/utils/jvm.py", line 57, in get_java_home subprocess.check_call(["javac", jsrc]) File "/usr/lib64/python3.9/subprocess.py", line 368, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib64/python3.9/subprocess.py", line 349, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'javac' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/pydoop-2.0.0/setup.py", line 330, in setup( File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/builddir/build/BUILD/pydoop-2.0.0/setup.py", line 317, in run build.run(self) File "/usr/lib64/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/usr/lib64/python3.9/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/usr/lib64/python3.9/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/usr/lib64/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/builddir/build/BUILD/pydoop-2.0.0/setup.py", line 294, in build_extension self.__finalize_hdfs(ext) File "/builddir/build/BUILD/pydoop-2.0.0/setup.py", line 276, in __finalize_hdfs java_home = jvm.get_java_home() File "/builddir/build/BUILD/pydoop-2.0.0/pydoop/utils/jvm.py", line 62, in get_java_home raise error RuntimeError: java home not found, try setting JAVA_HOME error: Bad exit status from /var/tmp/rpm-tmp.3P18BH (%build) Bad exit status from /var/tmp/rpm-tmp.3P18BH (%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-pydoop.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 x86_64 --nodeps /builddir/build/SPECS/python-pydoop.spec