Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rubygem-ruby-shadow.spec'], chrootPath='/var/lib/mock/f31-build-100941-33326/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rubygem-ruby-shadow.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564099200 Wrote: /builddir/build/SRPMS/rubygem-ruby-shadow-2.5.0-10.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-ruby-shadow.spec'], chrootPath='/var/lib/mock/f31-build-100941-33326/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-ruby-shadow.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564099200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZGB0al + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/ruby-shadow-2.5.0.gem + cd /builddir/build/BUILD + cd ruby-shadow-2.5.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/ruby-shadow-2.5.0.gem -l --ruby + echo 'Patch #0 (ruby-shadow-2.5.0-cflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 + cp /builddir/build/SOURCES/basic_test.rb . + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Unpacked gem: '/builddir/build/BUILD/ruby-shadow-2.5.0' Patch #0 (ruby-shadow-2.5.0-cflags.patch): patching file extconf.rb Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.c3QoAj + umask 022 + cd /builddir/build/BUILD + cd ruby-shadow-2.5.0 + export 'CONFIGURE_ARGS=--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\''' + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\''' + gem build ruby-shadow.gemspec BUILDSTDERR: WARNING: license value 'Public Domain License' is invalid. Use a license identifier from BUILDSTDERR: http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. BUILDSTDERR: Did you mean 'Unlicense'? BUILDSTDERR: WARNING: See http://guides.rubygems.org/specification-reference/ for help + 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 -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\'' --with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\''' + gem install -V --local --build-root . --force --document=ri,rdoc ruby-shadow-2.5.0.gem BUILDSTDERR: WARNING: You build with buildroot. BUILDSTDERR: Build root: /builddir/build/BUILD/ruby-shadow-2.5.0 BUILDSTDERR: Bin dir: /builddir/build/BUILD/ruby-shadow-2.5.0/usr/bin BUILDSTDERR: Gem home: /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems BUILDSTDERR: shadow/shadow.c: In function 'rb_shadow_getspent': BUILDSTDERR: shadow/shadow.c:108:9: warning: unused variable 'result' [-Wunused-variable] BUILDSTDERR: 108 | VALUE result; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: shadow/shadow.c: In function 'rb_shadow_getspnam': BUILDSTDERR: shadow/shadow.c:122:9: warning: unused variable 'result' [-Wunused-variable] BUILDSTDERR: 122 | VALUE result; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: shadow/shadow.c: In function 'rb_shadow_putspent': BUILDSTDERR: shadow/shadow.c:142:7: warning: unused variable 'i' [-Wunused-variable] BUILDSTDERR: 142 | int i; BUILDSTDERR: | ^ BUILDSTDERR: shadow/shadow.c:141:9: warning: unused variable 'val' [-Wunused-variable] BUILDSTDERR: 141 | VALUE val[NUM_FIELDS]; BUILDSTDERR: | ^~~ + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Successfully built RubyGem Name: ruby-shadow Version: 2.5.0 File: ruby-shadow-2.5.0.gem /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/HISTORY /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/LICENSE /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/MANIFEST /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/README /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/README.euc /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/extconf.rb /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/pwd/depend /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/pwd/shadow.c /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/ruby-shadow.gemspec /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/shadow/depend /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/shadow/shadow.c Building native extensions. This could take a while... current directory: /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0 /usr/bin/ruby -r ./siteconf20190901-4409-1fs9419.rb extconf.rb checking for getspent() in -lshadow... no checking for getspent()... yes checking for fgetspent()... yes checking for setspent()... yes checking for endspent()... yes checking for lckpwdf()... yes checking for ulckpwdf()... yes checking for sgetspent()... yes checking for ruby/io.h... yes creating Makefile current directory: /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0 make "DESTDIR=" clean rm -f rm -f shadow.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0 make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -Ishadow -DHAVE_GETSPENT -DHAVE_FGETSPENT -DHAVE_SETSPENT -DHAVE_ENDSPENT -DHAVE_LCKPWDF -DHAVE_ULCKPWDF -DHAVE_SGETSPENT -DHAVE_RUBY_IO_H -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DRUBY19 -o shadow.o -c shadow/shadow.c rm -f shadow.so gcc -shared -o shadow.so shadow.o -L. -L/usr/lib64 -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lruby -lc current directory: /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0 make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20190901-4409-1bukuhm exit > .sitearchdir.time /usr/bin/install -c -m 0755 shadow.so ./.gem.20190901-4409-1bukuhm Successfully installed ruby-shadow-2.5.0 Parsing documentation for ruby-shadow-2.5.0 Parsing sources... 100% [ 1/ 1] extconf.rb Installing ri documentation for ruby-shadow-2.5.0 Installing darkfish documentation for ruby-shadow-2.5.0 Done installing documentation for ruby-shadow after 15 seconds 1 gem installed Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QKpToi + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 + cd ruby-shadow-2.5.0 + mkdir -p /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/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/specifications /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/share/gems/ + find /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/share/gems/ -name '*.so' -delete + mkdir -p /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/lib64/gems/ruby/ruby-shadow-2.5.0 + cp -a ./usr/lib64/gems/ruby/ruby-shadow-2.5.0/gem.build_complete ./usr/lib64/gems/ruby/ruby-shadow-2.5.0/shadow.so /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/lib64/gems/ruby/ruby-shadow-2.5.0/ + rm -rf /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/share/gems/gems/ruby-shadow-2.5.0/ext/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2.5.0-10.fc31 --unique-debug-suffix -2.5.0-10.fc31.riscv64 --unique-debug-src-base rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/ruby-shadow-2.5.0 BUILDSTDERR: 13 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/lib64/gems/ruby/ruby-shadow-2.5.0/shadow.so extracting debug info from /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64/usr/lib64/gems/ruby/ruby-shadow-2.5.0/shadow.so original debug info size: 68kB, size after compression: 68kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.qF6CDk + umask 022 + cd /builddir/build/BUILD + cd ruby-shadow-2.5.0 + cp /builddir/build/SOURCES/basic_test.rb ./usr/share/gems/gems/ruby-shadow-2.5.0 + pushd ./usr/share/gems/gems/ruby-shadow-2.5.0 BUILDSTDERR: ++ id -u + '[' 986 = 0 ']' + ruby -I. -e 'Dir.glob "*_test.rb", &method(:require)' + : + popd + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 ~/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0 ~/build/BUILD/ruby-shadow-2.5.0 Loaded suite -e Started .F =============================================================================== Failure: test_getspnam_for_user(RubyShadowTest): ensure you have permissions to check this (sudo?). is not true. /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/basic_test.rb:17:in `test_getspnam_for_user' 14: def test_getspnam_for_user 15: user = `whoami`.strip 16: x = Shadow::Passwd.getspnam( user ) => 17: assert( x, "ensure you have permissions to check this (sudo?)" ) 18: check_struct( x ) 19: end 20: # ---------------------------------------- test_getspnam_for_non_existent_user =============================================================================== .F =============================================================================== Failure: test_smoke_test_getspent(RubyShadowTest): ensure you have permissions to check this (sudo?). is not true. /builddir/build/BUILD/ruby-shadow-2.5.0/usr/share/gems/gems/ruby-shadow-2.5.0/basic_test.rb:10:in `test_smoke_test_getspent' 7: # --------------------------------------------------- test_smoke_test_getspent 8: def test_smoke_test_getspent 9: x = Shadow::Passwd.getspent => 10: assert( x, "ensure you have permissions to check this (sudo?)" ) 11: check_struct( x ) 12: end 13: # ----------------------------------------------------- test_getspnam_for_user =============================================================================== Finished in 0.703642961 seconds. ------------------------------------------------------------------------------- 4 tests, 4 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 50% passed ------------------------------------------------------------------------------- 5.68 tests/s, 5.68 assertions/s ~/build/BUILD/ruby-shadow-2.5.0 Processing files: rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 Provides: ruby(shadow) = 2.5.0 ruby-shadow = 2.5.0-10.fc31 rubygem(ruby-shadow) = 2.5.0-1 rubygem-ruby-shadow = 2.5.0-10.fc31 rubygem-ruby-shadow(riscv-64) = 2.5.0-10.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libruby.so.2.5()(64bit) rtld(GNU_HASH) ruby(rubygems) Obsoletes: ruby-shadow < 1.4.1-36 Processing files: rubygem-ruby-shadow-doc-2.5.0-10.fc31.noarch Provides: rubygem-ruby-shadow-doc = 2.5.0-10.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-ruby-shadow-debugsource-2.5.0-10.fc31.riscv64 Provides: rubygem-ruby-shadow-debugsource = 2.5.0-10.fc31 rubygem-ruby-shadow-debugsource(riscv-64) = 2.5.0-10.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-ruby-shadow-debuginfo-2.5.0-10.fc31.riscv64 Provides: debuginfo(build-id) = cb618ee083e8df6c45257322ded47a5d0c1dd4a7 rubygem-ruby-shadow-debuginfo = 2.5.0-10.fc31 rubygem-ruby-shadow-debuginfo(riscv-64) = 2.5.0-10.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rubygem-ruby-shadow-debugsource(riscv-64) = 2.5.0-10.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 Wrote: /builddir/build/RPMS/rubygem-ruby-shadow-debugsource-2.5.0-10.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rubygem-ruby-shadow-debuginfo-2.5.0-10.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rubygem-ruby-shadow-doc-2.5.0-10.fc31.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.xKvenk + umask 022 + cd /builddir/build/BUILD + cd ruby-shadow-2.5.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-ruby-shadow-2.5.0-10.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0