Mock Version: 1.2.21 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'], uid=1001logger=chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-4198/root'printOutput=Falsetimeout=0gid=135user='mockbuild'shell=Falseenv={'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'] with env {'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell False warning: Could not canonicalize hostname: copr-builder-400855754.novalocal Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'], uid=1001logger=chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-4198/root'printOutput=Falsetimeout=0gid=135user='mockbuild'private_network=Trueenv={'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}shell=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'] with env {'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.DaY3ba + 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 . + scl enable rh-ror50 - WARNING: You build with buildroot. Build root: /builddir/build/BUILD/rubygem-bcrypt-3.1.10 Bin dir: /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/bin Gem home: /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/.gitignore /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/.rspec /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/.travis.yml /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/CHANGELOG /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/COPYING /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/Gemfile /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/Gemfile.lock /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/README.md /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/Rakefile /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/bcrypt.gemspec /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/jruby/bcrypt_jruby/BCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/bcrypt_ext.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt_blowfish.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/crypt_gensalt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/extconf.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/ow-crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri/wrapper.c /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/engine.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/error.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/lib/bcrypt/password.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/spec/TestBCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/engine_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/error_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/spec/bcrypt/password_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/spec/spec_helper.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri /opt/rh/rh-ruby23/root/usr/bin/ruby -r ./siteconf20161107-5767-aw5n08.rb extconf.rb creating Makefile current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri make "DESTDIR=" clean rm -f rm -f bcrypt_ext.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri make "DESTDIR=" gcc -I. -I/opt/rh/rh-ruby23/root/usr/include -I/opt/rh/rh-ruby23/root/usr/include/ruby/backward -I/opt/rh/rh-ruby23/root/usr/include -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -m64 -o wrapper.o -c wrapper.c gcc -I. -I/opt/rh/rh-ruby23/root/usr/include -I/opt/rh/rh-ruby23/root/usr/include/ruby/backward -I/opt/rh/rh-ruby23/root/usr/include -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -m64 -o crypt_gensalt.o -c crypt_gensalt.c gcc -I. -I/opt/rh/rh-ruby23/root/usr/include -I/opt/rh/rh-ruby23/root/usr/include/ruby/backward -I/opt/rh/rh-ruby23/root/usr/include -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -m64 -o crypt_blowfish.o -c crypt_blowfish.c gcc -I. -I/opt/rh/rh-ruby23/root/usr/include -I/opt/rh/rh-ruby23/root/usr/include/ruby/backward -I/opt/rh/rh-ruby23/root/usr/include -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -m64 -o crypt.o -c crypt.c gcc -I. -I/opt/rh/rh-ruby23/root/usr/include -I/opt/rh/rh-ruby23/root/usr/include/ruby/backward -I/opt/rh/rh-ruby23/root/usr/include -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -m64 -o bcrypt_ext.o -c bcrypt_ext.c rm -f bcrypt_ext.so gcc -shared -o bcrypt_ext.so wrapper.o crypt_gensalt.o crypt_blowfish.o crypt.o bcrypt_ext.o -L. -L/opt/rh/rh-ruby23/root/usr/lib64 -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -lruby -lpthread -ldl -lcrypt -lm -lc current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10/ext/mri make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20161107-5767-19l1ooe exit > .RUBYARCHDIR.time /usr/bin/install -c -m 0755 bcrypt_ext.so ./.gem.20161107-5767-19l1ooe 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 0 seconds 1 gem installed Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tBKoca Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.LDX2ca extracting debug info from /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64/opt/rh/rh-ror50/root/usr/lib64/gems/ruby/bcrypt-3.1.10/bcrypt_ext.so /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. + exit 0 + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.10 + exit 0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 + cd rubygem-bcrypt-3.1.10 + mkdir -p /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64/opt/rh/rh-ror50/root/usr/share/gems + cp -pa ./opt/rh/rh-ror50/root/usr/share/gems/build_info ./opt/rh/rh-ror50/root/usr/share/gems/cache ./opt/rh/rh-ror50/root/usr/share/gems/doc ./opt/rh/rh-ror50/root/usr/share/gems/extensions ./opt/rh/rh-ror50/root/usr/share/gems/gems ./opt/rh/rh-ror50/root/usr/share/gems/specifications /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64/opt/rh/rh-ror50/root/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64/opt/rh/rh-ror50/root/usr/lib64/gems/ruby/bcrypt-3.1.10 + cp -pa ./opt/rh/rh-ror50/root/usr/lib64/gems/ruby/bcrypt-3.1.10/bcrypt_ext.so ./opt/rh/rh-ror50/root/usr/lib64/gems/ruby/bcrypt-3.1.10/gem.build_complete ./opt/rh/rh-ror50/root/usr/lib64/gems/ruby/bcrypt-3.1.10/gem_make.out /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64/opt/rh/rh-ror50/root/usr/lib64/gems/ruby/bcrypt-3.1.10/ + rm -rf /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64/opt/rh/rh-ror50/root/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 110000000 /builddir/build/BUILD/rubygem-bcrypt-3.1.10 dwz: Too few files for multifile optimization 79 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-scl-compress /opt/rh/rh-ror50/root + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-scl-python-bytecompile /usr/bin/python 1 /opt/rh/rh-ror50/root + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.IizIab + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.10 + scl enable rh-ror50 - ~/build/BUILD/rubygem-bcrypt-3.1.10/opt/rh/rh-ror50/root/usr/share/gems/gems/bcrypt-3.1.10 ~/build/BUILD/rubygem-bcrypt-3.1.10 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 should accept a valid password Finished in 2.15 seconds (files took 0.09911 seconds to load) 34 examples, 0 failures ~/build/BUILD/rubygem-bcrypt-3.1.10 + exit 0 Processing files: rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 Provides: rh-ror50-rubygem(bcrypt) = 3.1.10 rh-ror50-rubygem-bcrypt = 3.1.10-6.el7.centos rh-ror50-rubygem-bcrypt(x86-64) = 3.1.10-6.el7.centos scl-package(rh-ror50) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypt.so.1()(64bit) libdl.so.2()(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libruby.so.2.3()(64bit) rh-ror50-runtime rtld(GNU_HASH) Processing files: rh-ror50-rubygem-bcrypt-doc-3.1.10-6.el7.centos.x86_64 Provides: rh-ror50-rubygem-bcrypt-doc = 3.1.10-6.el7.centos rh-ror50-rubygem-bcrypt-doc(x86-64) = 3.1.10-6.el7.centos scl-package(rh-ror50) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: rh-ror50-runtime Processing files: rh-ror50-rubygem-bcrypt-debuginfo-3.1.10-6.el7.centos.x86_64 Provides: scl-package(rh-ror50) rh-ror50-rubygem-bcrypt-debuginfo = 3.1.10-6.el7.centos rh-ror50-rubygem-bcrypt-debuginfo(x86-64) = 3.1.10-6.el7.centos Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-400855754.novalocal Wrote: /builddir/build/RPMS/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/rh-ror50-rubygem-bcrypt-doc-3.1.10-6.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/rh-ror50-rubygem-bcrypt-debuginfo-3.1.10-6.el7.centos.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ZwoTaM + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.10 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rh-ror50-rubygem-bcrypt-3.1.10-6.el7.centos.x86_64 + exit 0 Child return code was: 0