Mock Version: 1.4.20 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/colour-yahtzee-1.0.spec'], chrootPath='/var/lib/mock/1086766-fedora-rawhide-x86_64-1572952606.503051/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=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l3q3p6if:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l3q3p6if:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'a32d6bc0422f4381bb28f6247c110186', '-D', '/var/lib/mock/1086766-fedora-rawhide-x86_64-1572952606.503051/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l3q3p6if:/etc/resolv.conf', '--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=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/colour-yahtzee-1.0.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1540944000 Wrote: /builddir/build/SRPMS/colour-yahtzee-1.0-8.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/colour-yahtzee-1.0.spec'], chrootPath='/var/lib/mock/1086766-fedora-rawhide-x86_64-1572952606.503051/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=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l3q3p6if:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l3q3p6if:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8b04aa07a1484d4a9a74fe0b7c7d4810', '-D', '/var/lib/mock/1086766-fedora-rawhide-x86_64-1572952606.503051/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l3q3p6if:/etc/resolv.conf', '--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=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/colour-yahtzee-1.0.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1540944000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AEIcCv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf yahtzee + /usr/bin/gzip -dc /builddir/build/SOURCES/colour-yahtzee.tgz + /usr/bin/tar -xvvof - drwxrwxr-x root/root 0 1995-10-29 23:50 yahtzee/ -rw-r--r-- root/root 224 1995-10-29 04:59 yahtzee/Makefile -rw-rw-r-- root/root 625 1995-10-29 23:50 yahtzee/README -rw-r--r-- root/root 12188 1995-10-29 04:59 yahtzee/computer.c -rw-r--r-- root/root 390 1995-10-29 04:59 yahtzee/config.h -rw-r--r-- root/root 494 1995-10-29 04:59 yahtzee/README.old -rw-r--r-- root/root 22025 1995-10-29 04:59 yahtzee/main.c -rw-r--r-- root/root 472 1995-10-29 04:59 yahtzee/yahtzee.h -rwxrwxr-x root/root 73215 1995-10-29 05:00 yahtzee/yahtzee + STATUS=0 + '[' 0 -ne 0 ']' + cd yahtzee + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (colour-yahtzee-2015.patch):' Patch #1 (colour-yahtzee-2015.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file main.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HVCEAv + umask 022 + cd /builddir/build/BUILD + cd yahtzee + make cc -O2 -I/usr/include/ncurses -c -o computer.o computer.c computer.c: In function 'build_table': computer.c:132:16: warning: implicit declaration of function 'count' [-Wimplicit-function-declaration] 132 | overflow += (count(i+1) - 3) * (i+1); | ^~~~~ computer.c:173:7: warning: implicit declaration of function 'upper_total' [-Wimplicit-function-declaration] 173 | if (upper_total(player) >= 63) | ^~~~~~~~~~~ computer.c:217:10: warning: implicit declaration of function 'find_straight' [-Wimplicit-function-declaration] 217 | d2 = find_straight(i, 0); | ^~~~~~~~~~~~~ computer.c:418:9: warning: implicit declaration of function 'find_n_of_a_kind' [-Wimplicit-function-declaration] 418 | d = find_n_of_a_kind(i, 0); | ^~~~~~~~~~~~~~~~ computer.c:483:26: warning: implicit declaration of function 'add_dice' [-Wimplicit-function-declaration] 483 | bc_table[H_CH].value = add_dice(); | ^~~~~~~~ cc -O2 -I/usr/include/ncurses -c -o main.o main.c main.c:10:6: warning: conflicting types for built-in function 'abort'; expected 'void(void)' [-Wbuiltin-declaration-mismatch] 10 | void abort(char *msg); | ^~~~~ main.c:10:1: note: 'abort' is declared in header '' 9 | #include "yahtzee.h" +++ |+#include 10 | void abort(char *msg); main.c:88:1: warning: return type defaults to 'int' [-Wimplicit-int] 88 | init(void) | ^~~~ main.c: In function 'init': main.c:95:2: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration] 95 | srand(getpid()); | ^~~~~ main.c:95:8: warning: implicit declaration of function 'getpid'; did you mean 'getwin'? [-Wimplicit-function-declaration] 95 | srand(getpid()); | ^~~~~~ | getwin main.c: At top level: main.c:149:1: warning: return type defaults to 'int' [-Wimplicit-int] 149 | setup_screen(void) | ^~~~~~~~~~~~ main.c:176:1: warning: return type defaults to 'int' [-Wimplicit-int] 176 | yend(void) | ^~~~ main.c:185:1: warning: return type defaults to 'int' [-Wimplicit-int] 185 | abort(char *msg) | ^~~~~ main.c:185:1: warning: conflicting types for 'abort' main.c:10:6: note: previous declaration of 'abort' was here 10 | void abort(char *msg); | ^~~~~ main.c: In function 'abort': main.c:191:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 191 | exit(1); | ^~~~ main.c:191:2: warning: incompatible implicit declaration of built-in function 'exit' main.c:191:2: note: include '' or provide a declaration of 'exit' main.c: At top level: main.c:194:1: warning: return type defaults to 'int' [-Wimplicit-int] 194 | say(char *fmt, ...) | ^~~ main.c: In function 'query': main.c:226:3: warning: implicit declaration of function 'be_computer' [-Wimplicit-function-declaration] 226 | be_computer(player, question, ans, len); | ^~~~~~~~~~~ main.c:230:4: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 230 | sleep(COMPUTER_DELAY); /* let person read it */ | ^~~~~ main.c:264:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 264 | write(1, "\007", 1); | ^~~~~ | fwrite main.c: In function 'raw_roll_dice': main.c:297:10: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration] 297 | return((rand() % 6) + 1); | ^~~~ main.c: In function 'handle_play': main.c:667:8: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 667 | i = atoi(num); | ^~~~ main.c: In function 'lock': main.c:952:3: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 952 | unlink(lockfile); | ^~~~~~ main.c: In function 'update_scorefile': main.c:1014:10: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] 1014 | clock = time(0); | ^~~~ main.c:1016:21: warning: implicit declaration of function 'ctime' [-Wimplicit-function-declaration] 1016 | curdate = (char *) ctime(&clock); | ^~~~~ main.c:1016:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1016 | curdate = (char *) ctime(&clock); | ^ main.c:1119:2: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration] 1119 | system(scall); | ^~~~~~ main.c: In function 'calc_random': main.c:1198:2: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 1198 | gets(nrollstr); | ^~~~ | fgets main.c: In function 'signal_trap': main.c:1255:2: warning: incompatible implicit declaration of built-in function 'exit' 1255 | exit(0); | ^~~~ main.c:1255:2: note: include '' or provide a declaration of 'exit' main.c: At top level: main.c:1258:1: warning: return type defaults to 'int' [-Wimplicit-int] 1258 | set_signal_traps() | ^~~~~~~~~~~~~~~~ main.c:1265:1: warning: return type defaults to 'int' [-Wimplicit-int] 1265 | main(int argc, char **argv) | ^~~~ main.c: In function 'main': main.c:1292:6: warning: incompatible implicit declaration of built-in function 'exit' 1292 | exit(0); | ^~~~ main.c:1292:6: note: include '' or provide a declaration of 'exit' main.c:1374:4: warning: incompatible implicit declaration of built-in function 'exit' 1374 | exit(8); | ^~~~ main.c:1374:4: note: include '' or provide a declaration of 'exit' main.c:1394:2: warning: incompatible implicit declaration of built-in function 'exit' 1394 | exit(0); | ^~~~ main.c:1394:2: note: include '' or provide a declaration of 'exit' cc -o yahtzee computer.o main.o -lncurses -ltermcap /usr/bin/ld: main.o: in function `calc_random': main.c:(.text+0x230c): warning: the `gets' function is dangerous and should not be used. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.As1h4v + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64 ++ dirname /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64 + cd yahtzee + mkdir -p /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64//usr/bin + install yahtzee /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64//usr/bin + install -d /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64/etc/X11/wmconfig + install /builddir/build/SOURCES/colour-yahtzee.wmconfig /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64/etc/X11/wmconfig/colour-yahtzee + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /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 *** WARNING: ./etc/X11/wmconfig/colour-yahtzee is executable but has empty or no shebang, removing executable bit Processing files: colour-yahtzee-1.0-8.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2UOw4s + umask 022 + cd /builddir/build/BUILD + cd yahtzee + DOCDIR=/builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64/usr/share/doc/colour-yahtzee + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64/usr/share/doc/colour-yahtzee + cp -pr README /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64/usr/share/doc/colour-yahtzee + cp -pr README.old /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64/usr/share/doc/colour-yahtzee + RPM_EC=0 ++ jobs -p + exit 0 Provides: colour-yahtzee = 1.0-8 colour-yahtzee(x86-64) = 1.0-8 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) libncurses.so.6()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64 Wrote: /builddir/build/RPMS/colour-yahtzee-1.0-8.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.23jXNt + umask 022 + cd /builddir/build/BUILD + cd yahtzee + /usr/bin/rm -rf /builddir/build/BUILDROOT/colour-yahtzee-1.0-8.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0