Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/ruby.spec'], chrootPath='/var/lib/mock/dist-an23-build-243129-63114/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=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/ruby.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 setting SOURCE_DATE_EPOCH=1680480000 Wrote: /builddir/build/SRPMS/ruby-3.1.4-1.an23.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/ruby.spec'], chrootPath='/var/lib/mock/dist-an23-build-243129-63114/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=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/ruby.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 setting SOURCE_DATE_EPOCH=1680480000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WYefqH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ruby-3.1.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ruby-3.1.4.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd ruby-3.1.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf ext/psych/yaml + rm -rf ext/fiddle/libffi-3.2.1 + echo 'Patch #0 (ruby-2.3.0-ruby_version.patch):' Patch #0 (ruby-2.3.0-ruby_version.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Hunk #1 succeeded at 3990 (offset 7 lines). Hunk #2 succeeded at 4012 (offset 7 lines). Hunk #3 succeeded at 4084 (offset 7 lines). patching file template/ruby.pc.in patching file lib/rdoc/ri/paths.rb patching file tool/rbinstall.rb patching file lib/rubygems/defaults.rb patching file test/rubygems/test_gem.rb patching file configure.ac + echo 'Patch #1 (ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch):' Patch #1 (ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Hunk #1 succeeded at 4039 (offset 7 lines). patching file loadpath.c patching file tool/mkconfig.rb + echo 'Patch #2 (ruby-2.1.0-Enable-configuration-of-archlibdir.patch):' Patch #2 (ruby-2.1.0-Enable-configuration-of-archlibdir.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Hunk #1 succeeded at 3381 (offset 7 lines). Patch #3 (ruby-2.1.0-always-use-i386.patch): + echo 'Patch #3 (ruby-2.1.0-always-use-i386.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Hunk #1 succeeded at 4103 (offset 7 lines). Patch #4 (ruby-2.1.0-custom-rubygems-location.patch): + echo 'Patch #4 (ruby-2.1.0-custom-rubygems-location.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Hunk #1 succeeded at 4075 (offset 7 lines). Hunk #2 succeeded at 4103 (offset 7 lines). patching file loadpath.c patching file template/verconf.h.tmpl patching file tool/rbinstall.rb Patch #6 (ruby-2.7.0-Initialize-ABRT-hook.patch): + echo 'Patch #6 (ruby-2.7.0-Initialize-ABRT-hook.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file abrt.c patching file common.mk patching file ruby.c Patch #7 (ruby-3.1.0-Don-t-query-RubyVM-FrozenCore-for-class-path.patch): + echo 'Patch #7 (ruby-3.1.0-Don-t-query-RubyVM-FrozenCore-for-class-path.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file vm.c Patch #19 (ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch): + echo 'Patch #19 (ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file test/-ext-/bug_reporter/test_bug_reporter.rb + echo 'Patch #22 (ruby-3.2.0-define-unsupported-gc-compaction-methods-as-rb_f_notimplement.patch):' Patch #22 (ruby-3.2.0-define-unsupported-gc-compaction-methods-as-rb_f_notimplement.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gc.c Hunk #1 succeeded at 10165 (offset 1 line). Hunk #2 succeeded at 10251 (offset 1 line). Hunk #3 succeeded at 10334 (offset 1 line). Hunk #4 succeeded at 10800 (offset 1 line). Hunk #5 succeeded at 10825 (offset 1 line). Hunk #6 succeeded at 13732 (offset 39 lines). patching file gc.rb patching file gc.c Hunk #1 succeeded at 9439 (offset 1 line). Hunk #2 succeeded at 9487 (offset 1 line). Hunk #3 succeeded at 10167 (offset 1 line). Hunk #4 succeeded at 10204 (offset 1 line). Hunk #5 succeeded at 10270 (offset 1 line). Hunk #6 succeeded at 10283 (offset 1 line). Hunk #7 succeeded at 10356 (offset 1 line). Hunk #8 succeeded at 10818 (offset 1 line). Hunk #9 succeeded at 10834 (offset 1 line). Hunk #10 succeeded at 10854 (offset 1 line). patching file test/ruby/test_gc_compact.rb Patch #23 (ruby-3.2.0-define-unsupported-gc-compaction-methods_generated-files.patch): + echo 'Patch #23 (ruby-3.2.0-define-unsupported-gc-compaction-methods_generated-files.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gc.rbinc patching file miniprelude.c Patch #24 (ruby-3.2.0-Detect-compaction-support-during-runtime.patch): + echo 'Patch #24 (ruby-3.2.0-Detect-compaction-support-during-runtime.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gc.c Hunk #1 succeeded at 4985 (offset 1 line). Hunk #2 succeeded at 5022 (offset 1 line). Hunk #3 succeeded at 9286 (offset 1 line). Hunk #4 succeeded at 9451 (offset 1 line). Hunk #5 succeeded at 10179 (offset 1 line). Hunk #6 succeeded at 10220 (offset 1 line). Hunk #7 succeeded at 10299 (offset 1 line). Hunk #8 succeeded at 10830 (offset 1 line). Hunk #9 succeeded at 10844 (offset 1 line). Hunk #10 succeeded at 10853 (offset 1 line). Hunk #11 succeeded at 13765 (offset 39 lines). Hunk #12 succeeded at 13803 (offset 39 lines). Patch #27 (ruby-irb-1.4.1-drop-rdoc-hard-dep.patch): + echo 'Patch #27 (ruby-irb-1.4.1-drop-rdoc-hard-dep.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/irb/input-method.rb Patch #28 (ruby-irb-1.4.1-set-rdoc-soft-dep.patch): + echo 'Patch #28 (ruby-irb-1.4.1-set-rdoc-soft-dep.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/irb/input-method.rb + echo 'Patch #29 (ruby-3.2.0-ruby-cgi-Fix-test_cgi_cookie_new_with_domain-to-pass.patch):' Patch #29 (ruby-3.2.0-ruby-cgi-Fix-test_cgi_cookie_new_with_domain-to-pass.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file test/cgi/test_cgi_cookie.rb Hunk #1 FAILED at 62. 1 out of 1 hunk FAILED -- saving rejects to file test/cgi/test_cgi_cookie.rb.rej error: Bad exit status from /var/tmp/rpm-tmp.WYefqH (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.WYefqH (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, 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/ruby.spec