Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-cucumber-create-meta.spec'], chrootPath='/var/lib/mock/rhel-9-x86_64-1687909928.825765/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=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rd8jec2d:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rd8jec2d:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '63c18b226cc94a4a9c347b020a066a74', '-D', '/var/lib/mock/rhel-9-x86_64-1687909928.825765/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rd8jec2d:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-cucumber-create-meta.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1687737600 Wrote: /builddir/build/SRPMS/rubygem-cucumber-create-meta-6.0.4-1.el9.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-cucumber-create-meta.spec'], chrootPath='/var/lib/mock/rhel-9-x86_64-1687909928.825765/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=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rd8jec2d:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rd8jec2d:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ff769464b1c64e57828144f7edc99fbc', '-D', '/var/lib/mock/rhel-9-x86_64-1687909928.825765/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rd8jec2d:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-cucumber-create-meta.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1687737600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SumbFF + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cucumber-create-meta-6.0.4 + /usr/bin/gem unpack /builddir/build/SOURCES/cucumber-create-meta-6.0.4.gem Unpacked gem: '/builddir/build/BUILD/cucumber-create-meta-6.0.4' + /usr/bin/gem spec /builddir/build/SOURCES/cucumber-create-meta-6.0.4.gem --ruby + STATUS=0 + '[' 0 -ne 0 ']' + cd cucumber-create-meta-6.0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + read -d '' gemspec_remove_dep_script + : + echo 'gemspec_file = '\''/builddir/build/BUILD/cucumber-create-meta-6.0.4.gemspec'\'' name = '\''cucumber-messages'\'' requirements = "~> 17.1" type = :runtime spec = Gem::Specification.load(gemspec_file) abort("#{gemspec_file} is not accessible.") unless spec dep = spec.dependencies.detect { |d| d.type == type && d.name == name } if dep if requirements requirements = Gem::Requirement.create(requirements).requirements requirements.each do |r| unless dep.requirement.requirements.reject! { |dependency_requirements| dependency_requirements == r } abort("Requirement '\''#{r.first} #{r.last}'\'' was not possible to remove for dependency '\''#{dep}'\''!") end end spec.dependencies.delete dep if dep.requirement.requirements.empty? else spec.dependencies.delete dep end else abort("Dependency '\''#{name}'\'' was not found!") end + ruby File.write gemspec_file, spec.to_ruby' + unset -v gemspec_remove_dep_script + read -d '' gemspec_add_dep_script + : + echo 'gemspec_file = '\''/builddir/build/BUILD/cucumber-create-meta-6.0.4.gemspec'\'' name = '\''cucumber-messages'\'' requirements = ["< 23"] type = :runtime spec = Gem::Specification.load(gemspec_file) abort("#{gemspec_file} is not accessible.") unless spec dep = spec.dependencies.detect { |d| d.type == type && d.name == name } if dep dep.requirement.concat requirements else spec.public_send "add_#{type}_dependency", name, requirements end + ruby File.write gemspec_file, spec.to_ruby' + unset -v gemspec_add_dep_script + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PnofER + umask 022 + cd /builddir/build/BUILD + cd cucumber-create-meta-6.0.4 + gem build ../cucumber-create-meta-6.0.4.gemspec Successfully built RubyGem Name: cucumber-create-meta Version: 6.0.4 File: cucumber-create-meta-6.0.4.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc cucumber-create-meta-6.0.4.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/cucumber-create-meta-6.0.4 Bin dir: /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/bin Gem home: /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems Plugins dir: /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/plugins /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/LICENSE /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/lib/cucumber/ciDict.json /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/lib/cucumber/create_meta.rb /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/lib/cucumber/create_meta/variable_expression.rb /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/spec/acceptance/create_meta_spec.rb /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/spec/capture_warnings.rb /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/spec/cucumber/create_meta_spec.rb /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/spec/cucumber/evaluate_variable_expression_spec.rb /builddir/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4/spec/cucumber/remove_userinfo_from_url_spec.rb Successfully installed cucumber-create-meta-6.0.4 Parsing documentation for cucumber-create-meta-6.0.4 Parsing sources... 33% [ 1/ 3] lib/cucumber/ciDict.json 66% [ 2/ 3] lib/cucumber/create_meta.rb 100% [ 3/ 3] lib/cucumber/create_meta/variable_expression.rb Installing ri documentation for cucumber-create-meta-6.0.4 Installing darkfish documentation for cucumber-create-meta-6.0.4 Done installing documentation for cucumber-create-meta after 0 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2s9AMb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 + cd cucumber-create-meta-6.0.4 + mkdir -p /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64/usr/share/gems/ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 6.0.4-1.el9 --unique-debug-suffix -6.0.4-1.el9.x86_64 --unique-debug-src-base rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/cucumber-create-meta-6.0.4 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.q5qaoa + umask 022 + cd /builddir/build/BUILD + cd cucumber-create-meta-6.0.4 + pushd ./usr/share/gems/gems/cucumber-create-meta-6.0.4 ~/build/BUILD/cucumber-create-meta-6.0.4/usr/share/gems/gems/cucumber-create-meta-6.0.4 ~/build/BUILD/cucumber-create-meta-6.0.4 + rspec spec An error occurred while loading ./spec/acceptance/create_meta_spec.rb. Failure/Error: Dir.each_child(TEST_DATA_DIR) do |test_data_file| next unless File.extname(test_data_file) == '.txt' context "with #{File.basename(test_data_file, '.*')}" do subject { JSON.parse(meta.ci.to_json) } let(:meta) { Cucumber::CreateMeta.create_meta('cucumber-something', '1.2.3', env) } let(:env) { Hash[entries] } let(:entries) { env_data.split(/\n/).map { |line| line.split(/=/) } } let(:env_data) { IO.read("#{TEST_DATA_DIR}/#{test_data_file}") } Errno::ENOENT: No such file or directory @ dir_initialize - ../testdata # ./spec/acceptance/create_meta_spec.rb:9:in `each_child' # ./spec/acceptance/create_meta_spec.rb:9:in `block in ' # ./spec/acceptance/create_meta_spec.rb:8:in `' Finished in 0.00003 seconds (files took 0.12484 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples + : + popd ~/build/BUILD/cucumber-create-meta-6.0.4 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-cucumber-create-meta-6.0.4-1.el9.noarch Provides: rubygem(cucumber-create-meta) = 6.0.4 rubygem-cucumber-create-meta = 6.0.4-1.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (rubygem(cucumber-messages) >= 17.1.1 with rubygem(cucumber-messages) < 23) (rubygem(sys-uname) >= 1.2 with rubygem(sys-uname) < 2 with rubygem(sys-uname) >= 1.2.2) ruby(rubygems) Processing files: rubygem-cucumber-create-meta-doc-6.0.4-1.el9.noarch Provides: rubygem-cucumber-create-meta-doc = 6.0.4-1.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 Wrote: /builddir/build/RPMS/rubygem-cucumber-create-meta-6.0.4-1.el9.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-cucumber-create-meta-doc-6.0.4-1.el9.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.A5Ivhk + umask 022 + cd /builddir/build/BUILD + cd cucumber-create-meta-6.0.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-cucumber-create-meta-6.0.4-1.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0