Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-ncursesw.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678475322.430478/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=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-ncursesw.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/rubygem-ncursesw-1.4.10-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/rubygem-ncursesw.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678475322.430478/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=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-ncursesw.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/rubygem-ncursesw-1.4.10-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/rubygem-ncursesw.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678475322.430478/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=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-ncursesw.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.aPwoHM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ncursesw-1.4.10 + /usr/bin/gem unpack /builddir/build/SOURCES/ncursesw-1.4.10.gem `did_you_mean' was not loaded. Unpacked gem: '/builddir/build/BUILD/ncursesw-1.4.10' + /usr/bin/gem spec /builddir/build/SOURCES/ncursesw-1.4.10.gem --ruby `did_you_mean' was not loaded. + STATUS=0 + '[' 0 -ne 0 ']' + cd ncursesw-1.4.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/ncursesw-1.4.10.gem -l --ruby `did_you_mean' was not loaded. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yC3Jiu + umask 022 + cd /builddir/build/BUILD + cd ncursesw-1.4.10 + gem build ncursesw.gemspec `did_you_mean' was not loaded. Successfully built RubyGem Name: ncursesw Version: 1.4.10 File: ncursesw-1.4.10.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-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 '\'' --with-cxxflags='\''-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 '\'' --with-ldflags='\''-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc ncursesw-1.4.10.gem `did_you_mean' was not loaded. WARNING: You build with buildroot. Build root: /builddir/build/BUILD/ncursesw-1.4.10 Bin dir: /builddir/build/BUILD/ncursesw-1.4.10/usr/bin Gem home: /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems Plugins dir: /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/plugins /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/COPYING /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/Changes /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/README.md /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/THANKS /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/TODO /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/compat.h /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/LICENSES_for_examples /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/example.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/form.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/form2.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/form_get_wch.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/hello_ncurses.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/rain.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/read_line.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/tclock.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/examples/test_scanw.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/extconf.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/form_wrap.c /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/form_wrap.h /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/lib/ncurses_sugar.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/lib/ncursesw.rb /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/menu_wrap.c /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/menu_wrap.h /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/ncurses_wrap.c /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/ncurses_wrap.h /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/panel_wrap.c /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10/panel_wrap.h Building native extensions. This could take a while... current directory: /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10 ["/usr/bin/ruby", "-I", "/usr/share/rubygems", "-r", "./siteconf20230310-1301-frn2ea.rb", "extconf.rb"] ERROR: Error installing ncursesw-1.4.10.gem: ERROR: Failed to build gem native extension. current directory: /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10 /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230310-1301-frn2ea.rb extconf.rb Building has failed. See above output for more information on the failure. To see why this extension failed to compile, please check the mkmf.log which can be found here: /builddir/build/BUILD/ncursesw-1.4.10/usr/lib64/gems/ruby/ncursesw-1.4.10/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /builddir/build/BUILD/ncursesw-1.4.10/usr/share/gems/gems/ncursesw-1.4.10 for inspection. Results logged to /builddir/build/BUILD/ncursesw-1.4.10/usr/lib64/gems/ruby/ncursesw-1.4.10/gem_make.out `did_you_mean' was not loaded. checking for pkg-config... yes Package ncursesw was not found in the pkg-config search path. Perhaps you should add the directory containing `ncursesw.pc' to the PKG_CONFIG_PATH environment variable Package 'ncursesw', required by 'virtual:world', not found Package ncursesw was not found in the pkg-config search path. Perhaps you should add the directory containing `ncursesw.pc' to the PKG_CONFIG_PATH environment variable Package 'ncursesw', required by 'virtual:world', not found checking for unistd.h... yes checking for locale.h... yes checking for ncursesw/curses.h... no checking for ncurses.h... no checking for ncurses/curses.h... no checking for curses.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME) --with-ncurses-dir --without-ncurses-dir --with-ncurses-include --without-ncurses-include=${ncurses-dir}/include --with-ncurses-lib --without-ncurses-lib=${ncurses-dir}/lib64 --with-unistd-dir --without-unistd-dir --with-unistd-include --without-unistd-include=${unistd-dir}/include --with-unistd-lib --without-unistd-lib=${unistd-dir}/lib64 --with-locale-dir --without-locale-dir --with-locale-include --without-locale-include=${locale-dir}/include --with-locale-lib --without-locale-lib=${locale-dir}/lib64 --with-ncursesw-dir --without-ncursesw-dir --with-ncursesw-include --without-ncursesw-include=${ncursesw-dir}/include --with-ncursesw-lib --without-ncursesw-lib=${ncursesw-dir}/lib64 --with-curses-dir --without-curses-dir --with-curses-include --without-curses-include=${curses-dir}/include --with-curses-lib --without-curses-lib=${curses-dir}/lib64 extconf.rb:47:in `
': ncurses header file not found (RuntimeError) error: Bad exit status from /var/tmp/rpm-tmp.yC3Jiu (%build) Bad exit status from /var/tmp/rpm-tmp.yC3Jiu (%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/rubygem-ncursesw.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/rubygem-ncursesw.spec