Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'], uid=1000chrootPath='/var/lib/mock/fedora-20-armhfp-pidora-root-18397/root'printOutput=Falsetimeout=0user='mockbuild'gid=135logger=shell=Falseenv={'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'SHELL': '/bin/bash', 'TERM': 'vt100'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'] with env {'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'SHELL': '/bin/bash', 'TERM': 'vt100'} and shell False warning: Could not canonicalize hostname: armbuilder Building target platforms: armv6hl Building for target armv6hl Wrote: /builddir/build/SRPMS/rubygem-bcrypt-3.1.10-2.fc20.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec '], uid=1000chrootPath='/var/lib/mock/fedora-20-armhfp-pidora-root-18397/root'private_network=Truetimeout=0logger=user='mockbuild'gid=135printOutput=Falseshell=Falseenv={'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'SHELL': '/bin/bash', 'TERM': 'vt100'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec '] with env {'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'SHELL': '/bin/bash', 'TERM': 'vt100'} and shell False Building target platforms: armv6hl Building for target armv6hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5JvxRm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rubygem-bcrypt-3.1.10 + /usr/bin/mkdir -p rubygem-bcrypt-3.1.10 + cd rubygem-bcrypt-3.1.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp'\'' ' + gem install -V --local --install-dir ./usr/share/gems --bindir ./usr/bin --force --document=ri,rdoc /builddir/build/SOURCES/bcrypt-3.1.10.gem /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/.gitignore /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/.rspec /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/.travis.yml /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/CHANGELOG /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/COPYING /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/Gemfile /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/Gemfile.lock /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/README.md /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/Rakefile /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/bcrypt.gemspec /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/jruby/bcrypt_jruby/BCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/bcrypt_ext.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt_blowfish.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt_gensalt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/extconf.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/ow-crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/wrapper.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/engine.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/error.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/password.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/TestBCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/engine_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/error_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/password_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/spec_helper.rb Building native extensions. This could take a while... /usr/bin/ruby -r ./siteconf20151213-26267-16bsb4.rb extconf.rb creating Makefile make "DESTDIR=" clean rm -f rm -f bcrypt_ext.so *.o *.bak mkmf.log .*.time make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o crypt_gensalt.o -c crypt_gensalt.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o wrapper.o -c wrapper.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o bcrypt_ext.o -c bcrypt_ext.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o crypt_blowfish.o -c crypt_blowfish.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o crypt.o -c crypt.c rm -f bcrypt_ext.so gcc -shared -o bcrypt_ext.so crypt_gensalt.o wrapper.o bcrypt_ext.o crypt_blowfish.o crypt.o -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20151213-26267-1pvrtzd exit > .RUBYARCHDIR.time /usr/bin/install -c -m 0755 bcrypt_ext.so ./.gem.20151213-26267-1pvrtzd Successfully installed bcrypt-3.1.10 Parsing documentation for bcrypt-3.1.10 Parsing sources... 4% [ 1/23] CHANGELOG 8% [ 2/23] COPYING 13% [ 3/23] README.md 17% [ 4/23] ext/jruby/bcrypt_jruby/BCrypt.java 21% [ 5/23] ext/mri/Makefile 26% [ 6/23] ext/mri/bcrypt_ext.c 30% [ 7/23] ext/mri/bcrypt_ext.o 34% [ 8/23] ext/mri/bcrypt_ext.so 39% [ 9/23] ext/mri/crypt.c 43% [10/23] ext/mri/crypt.h 47% [11/23] ext/mri/crypt.o 52% [12/23] ext/mri/crypt_blowfish.c 56% [13/23] ext/mri/crypt_blowfish.o 60% [14/23] ext/mri/crypt_gensalt.c 65% [15/23] ext/mri/crypt_gensalt.o 69% [16/23] ext/mri/extconf.rb 73% [17/23] ext/mri/ow-crypt.h 78% [18/23] ext/mri/wrapper.c 82% [19/23] ext/mri/wrapper.o 86% [20/23] lib/bcrypt.rb 91% [21/23] lib/bcrypt/engine.rb 95% [22/23] lib/bcrypt/error.rb 100% [23/23] lib/bcrypt/password.rb Installing ri documentation for bcrypt-3.1.10 Installing darkfish documentation for bcrypt-3.1.10 Done installing documentation for bcrypt after 4 seconds 1 gem installed + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KrBH9K + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.10 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.1oPk4c + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm ++ dirname /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm + cd rubygem-bcrypt-3.1.10 + mkdir -p /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm/usr/share/gems + cp -pa ./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-bcrypt-3.1.10-2.fc20.arm/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm/usr/lib/gems/ruby/bcrypt-3.1.10 + cp -pa ./usr/lib/gems/ruby/bcrypt-3.1.10/bcrypt_ext.so ./usr/lib/gems/ruby/bcrypt-3.1.10/gem.build_complete ./usr/lib/gems/ruby/bcrypt-3.1.10/gem_make.out /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm/usr/lib/gems/ruby/bcrypt-3.1.10/ + rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm/usr/share/gems/gems/bcrypt-3.1.10/ext/ + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/rubygem-bcrypt-3.1.10 extracting debug info from /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2.fc20.arm/usr/lib/gems/ruby/bcrypt-3.1.10/bcrypt_ext.so dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 79 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.xK3p1h + umask 022 ~/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10 ~/build/BUILD/rubygem-bcrypt-3.1.10 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.10 + pushd ./usr/share/gems/gems/bcrypt-3.1.10 ++ dirs +1 + rspec -I~/build/BUILD/rubygem-bcrypt-3.1.10/usr/lib/gems/ruby/bcrypt-3.1.10 spec The BCrypt engine should calculate the optimal cost factor to fit in a specific time Generating BCrypt salts should produce strings should produce random data should raise a InvalidCostError if the cost parameter isn't numeric should raise a InvalidCostError if the cost parameter isn't greater than 0 Autodetecting of salt cost should work Generating BCrypt hashes should produce a string should raise an InvalidSalt error if the salt is invalid should raise an InvalidSecret error if the secret is invalid should call #to_s on the secret and use the return value as the actual secret data should be interoperable with other implementations Errors BCrypt::Error can be rescued as a StandardError BCrypt::Errors::InvalidCost can be rescued as a BCrypt::Error BCrypt::Errors::InvalidHash can be rescued as a BCrypt::Error BCrypt::Errors::InvalidSalt can be rescued as a BCrypt::Error BCrypt::Errors::InvalidSecret can be rescued as a BCrypt::Error Creating a hashed password should return a BCrypt::Password should return a valid bcrypt password should behave normally if the secret is not a string should tolerate empty string secrets Reading a hashed password the cost is too damn high the cost should be set to the default if nil the cost should be set to the default if empty hash the cost should be set to the passed value if provided the cost should be set to the global value if set the cost should be set to an overridden constant for backwards compatibility should read the version, cost, salt, and hash should raise an InvalidHashError when given an invalid hash Comparing a hashed password with a secret should compare successfully to the original secret should compare unsuccessfully to anything besides original secret Validating a generated salt should not accept an invalid salt should accept a valid salt Validating a password hash should not accept an invalid password (FAILED - 1) should accept a valid password (FAILED - 2) Failures: 1) Validating a password hash should not accept an invalid password Failure/Error: expect(BCrypt::Password.valid_hash?("i_am_so_not_valid")).to be_falsey NoMethodError: undefined method `falsey?' for nil:NilClass # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be.rb:145:in `matches?' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/handler.rb:24:in `handle_matcher' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/expectation_target.rb:34:in `to' # ./spec/bcrypt/password_spec.rb:119:in `block (2 levels) in ' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `instance_eval' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:254:in `with_around_each_hooks' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:111:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:390:in `block in run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:371:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb:58:in `report' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:25:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun' 2) Validating a password hash should accept a valid password Failure/Error: expect(BCrypt::Password.valid_hash?(BCrypt::Password.create "i_am_so_valid")).to be_truthy NoMethodError: undefined method `truthy?' for 0:Fixnum # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be.rb:145:in `matches?' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/handler.rb:24:in `handle_matcher' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/expectation_target.rb:34:in `to' # ./spec/bcrypt/password_spec.rb:122:in `block (2 levels) in ' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `instance_eval' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:254:in `with_around_each_hooks' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:111:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:390:in `block in run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:371:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb:58:in `report' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:25:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun' Finished in 3.17 seconds 34 examples, 2 failures Failed examples: rspec ./spec/bcrypt/password_spec.rb:118 # Validating a password hash should not accept an invalid password rspec ./spec/bcrypt/password_spec.rb:121 # Validating a password hash should accept a valid password error: Bad exit status from /var/tmp/rpm-tmp.xK3p1h (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.xK3p1h (%check) Child return code was: 1 EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python3.4/site-packages/mockbuild/util.py", line 526, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) mockbuild.exception.Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec LEAVE do --> EXCEPTION RAISED Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'], logger=user='mockbuild'uid=1000shell=Falsetimeout=0printOutput=Falsegid=135env={'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'TERM': 'vt100', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8'}chrootPath='/var/lib/mock/fedora-20-armhfp-pidora-root-9995/root') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'] with env {'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'TERM': 'vt100', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8'} and shell False warning: Could not canonicalize hostname: armbuilder Building target platforms: armv6hl Building for target armv6hl Wrote: /builddir/build/SRPMS/rubygem-bcrypt-3.1.10-2bs01fc23.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec '], logger=user='mockbuild'private_network=Trueuid=1000shell=Falsetimeout=0printOutput=Falsegid=135env={'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'TERM': 'vt100', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8'}chrootPath='/var/lib/mock/fedora-20-armhfp-pidora-root-9995/root') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec '] with env {'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'TERM': 'vt100', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: armv6hl Building for target armv6hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8nnmQa + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rubygem-bcrypt-3.1.10 + /usr/bin/mkdir -p rubygem-bcrypt-3.1.10 + cd rubygem-bcrypt-3.1.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp'\'' ' + gem install -V --local --install-dir ./usr/share/gems --bindir ./usr/bin --force --document=ri,rdoc /builddir/build/SOURCES/bcrypt-3.1.10.gem /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/.gitignore /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/.rspec /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/.travis.yml /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/CHANGELOG /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/COPYING /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/Gemfile /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/Gemfile.lock /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/README.md /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/Rakefile /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/bcrypt.gemspec /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/jruby/bcrypt_jruby/BCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/bcrypt_ext.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt_blowfish.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt_gensalt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/extconf.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/ow-crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/wrapper.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/engine.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/error.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/password.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/TestBCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/engine_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/error_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/password_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10/spec/spec_helper.rb Building native extensions. This could take a while... /usr/bin/ruby -r ./siteconf20151219-17151-12a063o.rb extconf.rb creating Makefile make "DESTDIR=" clean rm -f rm -f bcrypt_ext.so *.o *.bak mkmf.log .*.time make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o crypt_gensalt.o -c crypt_gensalt.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o wrapper.o -c wrapper.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o bcrypt_ext.o -c bcrypt_ext.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o crypt_blowfish.o -c crypt_blowfish.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp -o crypt.o -c crypt.c rm -f bcrypt_ext.so gcc -shared -o bcrypt_ext.so crypt_gensalt.o wrapper.o bcrypt_ext.o crypt_blowfish.o crypt.o -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20151219-17151-1fkksu6 exit > .RUBYARCHDIR.time /usr/bin/install -c -m 0755 bcrypt_ext.so ./.gem.20151219-17151-1fkksu6 Successfully installed bcrypt-3.1.10 Parsing documentation for bcrypt-3.1.10 Parsing sources... 4% [ 1/23] CHANGELOG 8% [ 2/23] COPYING 13% [ 3/23] README.md 17% [ 4/23] ext/jruby/bcrypt_jruby/BCrypt.java 21% [ 5/23] ext/mri/Makefile 26% [ 6/23] ext/mri/bcrypt_ext.c 30% [ 7/23] ext/mri/bcrypt_ext.o 34% [ 8/23] ext/mri/bcrypt_ext.so 39% [ 9/23] ext/mri/crypt.c 43% [10/23] ext/mri/crypt.h 47% [11/23] ext/mri/crypt.o 52% [12/23] ext/mri/crypt_blowfish.c 56% [13/23] ext/mri/crypt_blowfish.o 60% [14/23] ext/mri/crypt_gensalt.c 65% [15/23] ext/mri/crypt_gensalt.o 69% [16/23] ext/mri/extconf.rb 73% [17/23] ext/mri/ow-crypt.h 78% [18/23] ext/mri/wrapper.c 82% [19/23] ext/mri/wrapper.o 86% [20/23] lib/bcrypt.rb 91% [21/23] lib/bcrypt/engine.rb 95% [22/23] lib/bcrypt/error.rb 100% [23/23] lib/bcrypt/password.rb Installing ri documentation for bcrypt-3.1.10 Installing darkfish documentation for bcrypt-3.1.10 Done installing documentation for bcrypt after 4 seconds 1 gem installed + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5rDr6r + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.10 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.qucwZM + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm ++ dirname /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm + cd rubygem-bcrypt-3.1.10 + mkdir -p /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm/usr/share/gems + cp -pa ./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-bcrypt-3.1.10-2bs01fc23.arm/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm/usr/lib/gems/ruby/bcrypt-3.1.10 + cp -pa ./usr/lib/gems/ruby/bcrypt-3.1.10/bcrypt_ext.so ./usr/lib/gems/ruby/bcrypt-3.1.10/gem.build_complete ./usr/lib/gems/ruby/bcrypt-3.1.10/gem_make.out /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm/usr/lib/gems/ruby/bcrypt-3.1.10/ + rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm/usr/share/gems/gems/bcrypt-3.1.10/ext/ + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/rubygem-bcrypt-3.1.10 extracting debug info from /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.10-2bs01fc23.arm/usr/lib/gems/ruby/bcrypt-3.1.10/bcrypt_ext.so dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 79 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.iIgYhV + umask 022 + cd /builddir/build/BUILD ~/build/BUILD/rubygem-bcrypt-3.1.10/usr/share/gems/gems/bcrypt-3.1.10 ~/build/BUILD/rubygem-bcrypt-3.1.10 + cd rubygem-bcrypt-3.1.10 + pushd ./usr/share/gems/gems/bcrypt-3.1.10 ++ dirs +1 + rspec -I~/build/BUILD/rubygem-bcrypt-3.1.10/usr/lib/gems/ruby/bcrypt-3.1.10 spec The BCrypt engine should calculate the optimal cost factor to fit in a specific time Generating BCrypt salts should produce strings should produce random data should raise a InvalidCostError if the cost parameter isn't numeric should raise a InvalidCostError if the cost parameter isn't greater than 0 Autodetecting of salt cost should work Generating BCrypt hashes should produce a string should raise an InvalidSalt error if the salt is invalid should raise an InvalidSecret error if the secret is invalid should call #to_s on the secret and use the return value as the actual secret data should be interoperable with other implementations Errors BCrypt::Error can be rescued as a StandardError BCrypt::Errors::InvalidCost can be rescued as a BCrypt::Error BCrypt::Errors::InvalidHash can be rescued as a BCrypt::Error BCrypt::Errors::InvalidSalt can be rescued as a BCrypt::Error BCrypt::Errors::InvalidSecret can be rescued as a BCrypt::Error Creating a hashed password should return a BCrypt::Password should return a valid bcrypt password should behave normally if the secret is not a string should tolerate empty string secrets Reading a hashed password the cost is too damn high the cost should be set to the default if nil the cost should be set to the default if empty hash the cost should be set to the passed value if provided the cost should be set to the global value if set the cost should be set to an overridden constant for backwards compatibility should read the version, cost, salt, and hash should raise an InvalidHashError when given an invalid hash Comparing a hashed password with a secret should compare successfully to the original secret should compare unsuccessfully to anything besides original secret Validating a generated salt should not accept an invalid salt should accept a valid salt Validating a password hash should not accept an invalid password (FAILED - 1) should accept a valid password (FAILED - 2) Failures: 1) Validating a password hash should not accept an invalid password Failure/Error: expect(BCrypt::Password.valid_hash?("i_am_so_not_valid")).to be_falsey NoMethodError: undefined method `falsey?' for nil:NilClass # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be.rb:145:in `matches?' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/handler.rb:24:in `handle_matcher' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/expectation_target.rb:34:in `to' # ./spec/bcrypt/password_spec.rb:119:in `block (2 levels) in ' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `instance_eval' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:254:in `with_around_each_hooks' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:111:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:390:in `block in run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:371:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb:58:in `report' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:25:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun' 2) Validating a password hash should accept a valid password Failure/Error: expect(BCrypt::Password.valid_hash?(BCrypt::Password.create "i_am_so_valid")).to be_truthy NoMethodError: undefined method `truthy?' for 0:Fixnum # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be.rb:145:in `matches?' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/handler.rb:24:in `handle_matcher' # /usr/share/gems/gems/rspec-expectations-2.14.5/lib/rspec/expectations/expectation_target.rb:34:in `to' # ./spec/bcrypt/password_spec.rb:122:in `block (2 levels) in ' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `instance_eval' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:114:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:254:in `with_around_each_hooks' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example.rb:111:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:390:in `block in run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:386:in `run_examples' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb:371:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `map' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:28:in `block in run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb:58:in `report' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:25:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run' # /usr/share/gems/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun' Finished in 3.17 seconds 34 examples, 2 failures Failed examples: rspec ./spec/bcrypt/password_spec.rb:118 # Validating a password hash should not accept an invalid password rspec ./spec/bcrypt/password_spec.rb:121 # Validating a password hash should accept a valid password error: Bad exit status from /var/tmp/rpm-tmp.iIgYhV (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.iIgYhV (%check) Child return code was: 1 EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python3.4/site-packages/mockbuild/util.py", line 526, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) mockbuild.exception.Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec LEAVE do --> EXCEPTION RAISED