Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/foremost.spec'], chrootPath='/var/lib/mock/centos+epel-7-x86_64-1674218686.979057/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.jld89jwz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.jld89jwz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ef3026ae6ce246f891c7717e0a7805c2', '-D', '/var/lib/mock/centos+epel-7-x86_64-1674218686.979057/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.jld89jwz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--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=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/foremost.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/foremost-1.5.7-28.el7.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/foremost.spec'], chrootPath='/var/lib/mock/centos+epel-7-x86_64-1674218686.979057/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.jld89jwz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.jld89jwz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'd6d698c8b0934f2ba930d6e3706bbeae', '-D', '/var/lib/mock/centos+epel-7-x86_64-1674218686.979057/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.jld89jwz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--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=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/foremost.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BIM9X2 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf foremost-1.5.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/foremost-1.5.7.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd foremost-1.5.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/foremost-broken-jpeg.patch + /usr/bin/patch -s + /usr/bin/cat /builddir/build/SOURCES/foremost-fix-permission-timestamp.patch + /usr/bin/patch -s + /usr/bin/cat /builddir/build/SOURCES/foremost-1.5.7-format-security.patch + /usr/bin/patch -s + /usr/bin/cat /builddir/build/SOURCES/foremost-1.5.7-gcc10.patch + /usr/bin/patch -s + sed -i 's!/usr/local/etc/foremost.conf!/etc/foremost.conf!' config.c + sed -i 's|^RAW_FLAGS =.*|RAW_FLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic|' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1sZV8w + umask 022 + cd /builddir/build/BUILD + cd foremost-1.5.7 + make -j2 CONF=/etc V=1 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c state.c state.c: In function 'set_config_file': state.c:78:10: warning: ignoring return value of 'realpath', declared with attribute warn_unused_result [-Wunused-result] realpath(fn, temp); ^ state.c: In function 'set_output_directory': state.c:99:10: warning: ignoring return value of 'realpath', declared with attribute warn_unused_result [-Wunused-result] realpath(fn, temp); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c helpers.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c config.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c cli.c config.c: In function 'translate': config.c:27:6: warning: value computed is not used [-Wunused-value] *rd++; ^ config.c:32:6: warning: value computed is not used [-Wunused-value] *rd++; ^ config.c:37:6: warning: value computed is not used [-Wunused-value] *rd++; ^ config.c:42:6: warning: value computed is not used [-Wunused-value] *rd++; ^ config.c:47:6: warning: value computed is not used [-Wunused-value] *rd++; ^ config.c:52:6: warning: value computed is not used [-Wunused-value] *rd++; ^ config.c:57:6: warning: value computed is not used [-Wunused-value] *rd++; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c engine.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c dir.c engine.c: In function 'search_chunk': engine.c:319:17: warning: variable 'current_pos' set but not used [-Wunused-but-set-variable] unsigned char *current_pos = NULL; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c extract.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c api.c extract.c: In function 'extract_htm': extract.c:557:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] unsigned char *currentpos = NULL; ^ api.c: In function 'dump_dirent': extract.c: In function 'extract_wmv': api.c:482:10: warning: variable 'unknown' set but not used [-Wunused-but-set-variable] short unknown; ^ extract.c:1158:14: warning: variable 'fileObjHeaderSize' set but not used [-Wunused-but-set-variable] u_int64_t fileObjHeaderSize = 0; ^ extract.c:1151:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] unsigned char *currentpos = NULL; ^ extract.c: In function 'extract_gif': extract.c:1405:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] unsigned char *currentpos = foundat; ^ extract.c: In function 'extract_jpeg': extract.c:1825:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] unsigned char *currentpos = NULL; ^ extract.c: In function 'extract_exe': extract.c:2115:15: warning: variable 'align' set but not used [-Wunused-but-set-variable] unsigned int align = 0; ^ extract.c:2111:15: warning: variable 'size_of_headers' set but not used [-Wunused-but-set-variable] unsigned int size_of_headers = 0; ^ extract.c:2109:15: warning: variable 'sizeofimage' set but not used [-Wunused-but-set-variable] unsigned int sizeofimage = 0; ^ extract.c:2106:15: warning: variable 'rva' set but not used [-Wunused-but-set-variable] unsigned int rva = 0; ^ extract.c:2105:15: warning: variable 'SizeOfUninitializedData' set but not used [-Wunused-but-set-variable] unsigned int SizeOfUninitializedData = 0; ^ extract.c:2104:15: warning: variable 'SizeOfInitializedData' set but not used [-Wunused-but-set-variable] unsigned int SizeOfInitializedData = 0; ^ extract.c:2103:15: warning: variable 'SizeOfCode' set but not used [-Wunused-but-set-variable] unsigned int SizeOfCode = 0; ^ extract.c: In function 'extract_rar': extract.c:2276:13: warning: variable 'file_size' set but not used [-Wunused-but-set-variable] u_int64_t file_size = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 main.o state.o helpers.o config.o cli.o engine.o dir.o extract.o api.o -o foremost + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.JJAAs3 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64 + cd foremost-1.5.7 + chmod 0644 CHANGES Makefile README api.c api.o cli.c cli.o config.c config.o dir.c dir.o engine.c engine.o extract.c extract.c.orig extract.h extract.o foremost foremost.8.gz foremost.conf helpers.c helpers.o main.c main.h main.o ole.h state.c state.o + mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/bin + mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/etc + make install BIN=/builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/bin MAN=/builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/man/man8 CONF=/builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/etc install -p -m 755 foremost /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/bin install -p -m 644 foremost.8.gz /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/man/man8 install -p -m 644 foremost.conf /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/etc + /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/foremost-1.5.7 extracting debug info from /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/bin/foremost dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 326 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 Processing files: foremost-1.5.7-28.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.tmcOdA + umask 022 + cd /builddir/build/BUILD + cd foremost-1.5.7 + DOCDIR=/builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/doc/foremost-1.5.7 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/doc/foremost-1.5.7 + cp -pr README /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/doc/foremost-1.5.7 + cp -pr CHANGES /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64/usr/share/doc/foremost-1.5.7 + exit 0 Provides: config(foremost) = 1.5.7-28.el7 foremost = 1.5.7-28.el7 foremost(x86-64) = 1.5.7-28.el7 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.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) rtld(GNU_HASH) Processing files: foremost-debuginfo-1.5.7-28.el7.x86_64 Provides: foremost-debuginfo = 1.5.7-28.el7 foremost-debuginfo(x86-64) = 1.5.7-28.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/foremost-1.5.7-28.el7.x86_64 Wrote: /builddir/build/RPMS/foremost-1.5.7-28.el7.x86_64.rpm Wrote: /builddir/build/RPMS/foremost-debuginfo-1.5.7-28.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.xNoKVa + umask 022 + cd /builddir/build/BUILD + cd foremost-1.5.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/foremost-1.5.7-28.el7.x86_64 + exit 0 Child return code was: 0