Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/libfaketime.spec'], chrootPath='/srv/build/7/B/mock-root/c7-epel-i686/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=21600logger=uid=501) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/libfaketime.spec'] with env {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False warning: Could not canonicalize hostname: worker1.bsys.centos.org Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/libfaketime-0.9.6-1.el7.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/libfaketime.spec '], chrootPath='/srv/build/7/B/mock-root/c7-epel-i686/root'shell=Falseuid=501env={'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=21600private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/libfaketime.spec '] with env {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.O4s3iq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libfaketime-0.9.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/libfaketime-0.9.6.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd libfaketime-0.9.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (libfaketime-0.9.5-fix-infinite-recursion-on-real_clock_gettime.patch):' Patch #1 (libfaketime-0.9.5-fix-infinite-recursion-on-real_clock_gettime.patch): + /usr/bin/cat /builddir/build/SOURCES/libfaketime-0.9.5-fix-infinite-recursion-on-real_clock_gettime.patch + /usr/bin/patch -p1 --fuzz=0 patching file src/libfaketime.c Hunk #1 succeeded at 1425 (offset 45 lines). + sed -i -e 's/__asm__(".symver timer_gettime_22/\/\/__asm__(".symver timer_gettime_22/' src/libfaketime.c + sed -i -e 's/__asm__(".symver timer_settime_22/\/\/__asm__(".symver timer_settime_22/' src/libfaketime.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ANTsIB + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.6 + cd src + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -Wno-strict-aliasing' + make -j16 PREFIX=/usr LIBDIRNAME=/lib/faketime all cc -o libfaketime.o -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -Wno-strict-aliasing -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr'"' -DLIBDIRNAME='"'/lib/faketime'"' libfaketime.c cc -o libfaketimeMT.o -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -Wno-strict-aliasing -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr'"' -DLIBDIRNAME='"'/lib/faketime'"' libfaketime.c cc -o faketime -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -Wno-strict-aliasing -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr'"' -DLIBDIRNAME='"'/lib/faketime'"' faketime.c -Wl,--version-script=libfaketime.map -lpthread -lrt cc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1 -Wl,--version-script=libfaketime.map -lpthread -shared libfaketime.o -ldl -lm -lrt cc -o libfaketimeMT.so.1 -Wl,-soname,libfaketimeMT.so.1 -Wl,--version-script=libfaketime.map -lpthread -shared libfaketimeMT.o -ldl -lm -lrt + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.nOx7yO + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386 ++ dirname /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386 + cd libfaketime-0.9.6 + make PREFIX=/usr DESTDIR=/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386 LIBDIRNAME=/lib/faketime install make -C src install make[1]: Entering directory `/builddir/build/BUILD/libfaketime-0.9.6/src' Copying the faketime libraries to /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/lib/faketime and the faketime wrapper script to /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/bin ... install -dm0755 "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/lib/faketime/" install -m0644 libfaketime.so.1 libfaketimeMT.so.1 "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/lib/faketime/" install -Dm0755 faketime "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/bin/faketime" make[1]: Leaving directory `/builddir/build/BUILD/libfaketime-0.9.6/src' make -C man install make[1]: Entering directory `/builddir/build/BUILD/libfaketime-0.9.6/man' install -Dm0644 faketime.1 "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/man/man1/faketime.1" gzip -f "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/man/man1/faketime.1" make[1]: Leaving directory `/builddir/build/BUILD/libfaketime-0.9.6/man' install -dm0755 "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/faketime/" install -m0644 README "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/faketime/README" install -m0644 NEWS "/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/faketime/NEWS" + rm -r /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386//usr/share/doc/faketime + chmod a+rx /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386//usr/lib/faketime/libfaketime.so.1 /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386//usr/lib/faketime/libfaketimeMT.so.1 + /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/libfaketime-0.9.6 extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/bin/faketime extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/lib/faketime/libfaketime.so.1 extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/lib/faketime/libfaketimeMT.so.1 /usr/lib/rpm/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. 132 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.vbjcP2 + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.6 + make -j16 -C test all make: Entering directory `/builddir/build/BUILD/libfaketime-0.9.6/test' gcc -c -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra timetest.c ./testframe.sh functests # Begin Test Suites in functests # Begin functests/test_null.sh out=0 () ref=1470920469 - ok # functests/test_null.sh summary: 1 succeeded, 0 failed # End functests/test_null.sh - OK # Begin functests/test_true.sh # functests/test_true.sh summary: 1 succeeded, 0 failed # End functests/test_true.sh - OK # Begin functests/test_walkone.sh # PLATFORM=linuxlike out=1 (secs since Epoch) - ok out=2 (secs since Epoch) - ok out=4 (secs since Epoch) - ok out=8 (secs since Epoch) - ok out=16 (secs since Epoch) - ok out=32 (secs since Epoch) - ok out=64 (secs since Epoch) - ok out=128 (secs since Epoch) - ok out=256 (secs since Epoch) - ok gcc -o timetest timetest.o -lrt out=512 (secs since Epoch) - ok out=1024 (secs since Epoch) - ok out=2048 (secs since Epoch) - ok out=4096 (secs since Epoch) - ok out=8192 (secs since Epoch) - ok out=16384 (secs since Epoch) - ok out=32768 (secs since Epoch) - ok out=65536 (secs since Epoch) - ok out=131072 (secs since Epoch) - ok out=262144 (secs since Epoch) - ok out=524288 (secs since Epoch) - ok out=1048576 (secs since Epoch) - ok out=2097152 (secs since Epoch) - ok out=4194304 (secs since Epoch) - ok out=8388608 (secs since Epoch) - ok out=16777216 (secs since Epoch) - ok out=33554432 (secs since Epoch) - ok out=67108864 (secs since Epoch) - ok out=134217728 (secs since Epoch) - ok out=268435456 (secs since Epoch) - ok out=536870912 (secs since Epoch) - ok out=1073741824 (secs since Epoch) - ok # functests/test_walkone.sh summary: 31 succeeded, 0 failed # End functests/test_walkone.sh - OK # Test Suites summary: 3 succeeded, 0 failed # End Test Suites - OK Running the test program with no faked time specified $ LD_PRELOAD=../src/libfaketime.so.1 ./timetest Blocking signal 10 time() : Current date and time: Thu Aug 11 13:01:09 2016 time(NULL) : Seconds since Epoch : 1470920469 ftime() : Current date and time: Thu Aug 11 13:01:09 2016 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Thu Aug 11 13:01:11 2016 Caught signal 10 clock_gettime(): Current date and time: Thu Aug 11 13:01:11 2016 stat(): mod. time of file './timetest': Thu Aug 11 13:01:09 2016 ============================================================================= Running the test program with absolute date 2003-01-01 10:00:05 specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="2003-01-01 10:00:05" ./timetest Blocking signal 10 time() : Current date and time: Wed Jan 1 10:00:05 2003 time(NULL) : Seconds since Epoch : 1041415205 ftime() : Current date and time: Wed Jan 1 10:00:05 2003 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Wed Jan 1 10:00:05 2003 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Wed Jan 1 10:00:05 2003 stat(): mod. time of file './timetest': Wed Jan 1 10:00:05 2003 ============================================================================= Running the test program with START date @2005-03-29 14:14:14 specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="@2005-03-29 14:14:14" ./timetest Blocking signal 10 time() : Current date and time: Tue Mar 29 14:14:14 2005 time(NULL) : Seconds since Epoch : 1112105654 ftime() : Current date and time: Tue Mar 29 14:14:14 2005 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Tue Mar 29 14:14:16 2005 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Tue Mar 29 14:14:16 2005 stat(): mod. time of file './timetest': Tue Mar 29 14:14:09 2005 ============================================================================= Running the test program with 10 days negative offset specified LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-10d" ./timetest Blocking signal 10 time() : Current date and time: Mon Aug 1 13:01:15 2016 time(NULL) : Seconds since Epoch : 1470056475 ftime() : Current date and time: Mon Aug 1 13:01:15 2016 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Mon Aug 1 13:01:17 2016 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Mon Aug 1 13:01:17 2016 stat(): mod. time of file './timetest': Mon Aug 1 13:01:09 2016 ============================================================================= Running the test program with 10 days negative offset specified, and FAKE_STAT disabled $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-10d" NO_FAKE_STAT=1 ./timetest Blocking signal 10 time() : Current date and time: Mon Aug 1 13:01:17 2016 time(NULL) : Seconds since Epoch : 1470056477 ftime() : Current date and time: Mon Aug 1 13:01:17 2016 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Mon Aug 1 13:01:19 2016 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Mon Aug 1 13:01:19 2016 stat(): mod. time of file './timetest': Thu Aug 11 13:01:09 2016 ============================================================================= Running the test program with 10 days postive offset specified, and sped up 2 times $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="+10d x2" ./timetest Blocking signal 10 time() : Current date and time: Sun Aug 21 13:01:19 2016 time(NULL) : Seconds since Epoch : 1471784479 ftime() : Current date and time: Sun Aug 21 13:01:19 2016 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sun Aug 21 13:01:21 2016 Caught signal 10 clock_gettime(): Current date and time: Sun Aug 21 13:01:21 2016 timer_getoverrun(timerid1) FAILED, must be 3 but got: 0 stat(): mod. time of file './timetest': Thu Aug 11 13:01:09 2016 ============================================================================= Running the 'date' command with 15 days negative offset specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-15d" date Wed Jul 27 13:01:20 UTC 2016 ============================================================================= Testing finished. make: Leaving directory `/builddir/build/BUILD/libfaketime-0.9.6/test' + exit 0 Processing files: libfaketime-0.9.6-1.el7.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2yBm6J + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.6 + DOCDIR=/builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + cp -pr README /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + cp -pr COPYING /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + cp -pr NEWS /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + cp -pr README /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + cp -pr README.developers /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386/usr/share/doc/libfaketime-0.9.6 + exit 0 Provides: libfaketime = 0.9.6-1.el7 libfaketime(x86-32) = 0.9.6-1.el7 libfaketime.so.1 libfaketime.so.1(GLIBC_2.2) libfaketime.so.1(GLIBC_2.3.3) libfaketimeMT.so.1 libfaketimeMT.so.1(GLIBC_2.2) libfaketimeMT.so.1(GLIBC_2.3.3) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux.so.2 ld-linux.so.2(GLIBC_2.3) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libm.so.6 libm.so.6(GLIBC_2.0) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.1.1) librt.so.1 librt.so.1(GLIBC_2.2) rtld(GNU_HASH) Processing files: libfaketime-debuginfo-0.9.6-1.el7.i686 Provides: libfaketime-debuginfo = 0.9.6-1.el7 libfaketime-debuginfo(x86-32) = 0.9.6-1.el7 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/libfaketime-0.9.6-1.el7.i386 warning: Could not canonicalize hostname: worker1.bsys.centos.org Wrote: /builddir/build/RPMS/libfaketime-0.9.6-1.el7.i686.rpm Wrote: /builddir/build/RPMS/libfaketime-debuginfo-0.9.6-1.el7.i686.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CXCvLQ + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.6 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libfaketime-0.9.6-1.el7.i386 + exit 0 Child return code was: 0 LEAVE do -->