Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/spindown.spec'], chrootPath='/var/lib/mock/rhel-7-x86_64-1678117794.887051/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.vrpeoirt:/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.vrpeoirt:/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', 'c1fe8e7191754ca68a2b881d03ecd040', '-D', '/var/lib/mock/rhel-7-x86_64-1678117794.887051/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vrpeoirt:/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/spindown.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/spindown-0.4.0-34.el7_9.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/spindown.spec'], chrootPath='/var/lib/mock/rhel-7-x86_64-1678117794.887051/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.vrpeoirt:/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.vrpeoirt:/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', '885cbc93e06842558086db8d48c8255e', '-D', '/var/lib/mock/rhel-7-x86_64-1678117794.887051/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vrpeoirt:/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/spindown.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.6MnEaB + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf spindown-0.4.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/spindown-0.4.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd spindown-0.4.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf src/ininiparser3.0b + cp -pf /builddir/build/SOURCES/spindown.service spindown.service + cp -pf /builddir/build/SOURCES/01spindown 01spindown + echo 'Patch #0 (spindown-0.4.0-Makefile.patch):' Patch #0 (spindown-0.4.0-Makefile.patch): + /usr/bin/cat /builddir/build/SOURCES/spindown-0.4.0-Makefile.patch + /usr/bin/patch -p1 --fuzz=0 patching file Makefile Patch #1 (spindown-0.4.0-iniparser.patch): + echo 'Patch #1 (spindown-0.4.0-iniparser.patch):' + /usr/bin/cat /builddir/build/SOURCES/spindown-0.4.0-iniparser.patch + /usr/bin/patch -p1 --fuzz=0 patching file src/disk.cpp patching file src/disk.h patching file src/spindownd.cpp Patch #2 (spindown-0.4.0-iniparser-3.0-1.patch): + echo 'Patch #2 (spindown-0.4.0-iniparser-3.0-1.patch):' + /usr/bin/cat /builddir/build/SOURCES/spindown-0.4.0-iniparser-3.0-1.patch + /usr/bin/patch -p1 --fuzz=0 patching file src/disk.cpp patching file src/spindownd.cpp Patch #3 (spindown-0.4.0-bz1037334.patch): + echo 'Patch #3 (spindown-0.4.0-bz1037334.patch):' + /usr/bin/cat /builddir/build/SOURCES/spindown-0.4.0-bz1037334.patch + /usr/bin/patch -p1 --fuzz=0 patching file src/log.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Az0ulB + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + make -j2 'OPT=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/main.cpp g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/diskset.cpp g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/disk.cpp src/diskset.cpp: In destructor 'DiskSet::~DiskSet()': src/diskset.cpp:39:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; i < this->size() ; i++ ) ^ src/diskset.cpp: In member function 'void DiskSet::setStatsFrom(const DiskSet&)': src/diskset.cpp:52:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; i < set.size() ; i++ ) ^ src/diskset.cpp: In member function 'Disk* DiskSet::find(const Disk&)': src/diskset.cpp:81:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; !found && i < this->size() ; i++ ) ^ src/diskset.cpp: In member function 'int DiskSet::countEntries(const Disk&) const': src/diskset.cpp:98:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; i < this->size() ; i++ ) ^ g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/spindown.cpp src/disk.cpp: In member function 'void Disk::findDevName(std::string)': src/disk.cpp:143:69: warning: ignoring return value of 'ssize_t readlink(const char*, char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] readlink( (char*)dev.data(), (char*)buffer.data(), CHAR_BUF); ^ src/disk.cpp: In member function 'bool Disk::spindown()': src/disk.cpp:170:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ src/spindown.cpp: In static member function 'static void Spindown::updateDevNames(DiskSet*)': src/spindown.cpp:63:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (ep = readdir (dp)) ^ src/spindown.cpp:65:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; i < set->size() ; i++ ) ^ src/spindown.cpp: In static member function 'static void Spindown::updateDiskStats(DiskSet*)': src/spindown.cpp:90:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0 ; i < disks->size() ; i++) ^ src/spindown.cpp:100:107: warning: writing into constant object (argument 3) [-Wformat=] sscanf( str, "%*u %*u %s %*u %*u %u %*u %*u %*u %u", devNameInp.data(), &newRead, &newWritten ); ^ src/spindown.cpp:106:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0 ; i < disks->size() ; i++) ^ src/spindown.cpp:82:23: warning: unused variable 'blocks' [-Wunused-variable] unsigned long int blocks; ^ src/spindown.cpp: In member function 'void Spindown::spinDownIdleDisks()': src/spindown.cpp:163:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; i < disks->size() ; i++ ) ^ src/spindown.cpp: In member function 'std::string Spindown::getStatusString(bool) const': src/spindown.cpp:210:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0 ; i < disks->size() ; i++ ) ^ g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/log.cpp g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/spindownd.cpp g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c src/exceptions.cpp src/spindownd.cpp: In static member function 'static void Spindownd::sigHandlerPipe(int)': src/spindownd.cpp:123:51: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] write (file, status.data(), status.size()); ^ g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -o spindownd main.o diskset.o disk.o spindown.o log.o spindownd.o exceptions.o -liniparser --- THE CONFIGURATION FILE HAS CHANGED SINCE V0.2.1!!!! --- + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.cTS06D + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64 ++ dirname /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64 + cd spindown-0.4.0 + make DESTDIR=/builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64 install --- THE CONFIGURATION FILE HAS CHANGED SINCE V0.2.1!!!! --- install -D -m 755 spindownd /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/sbin/spindownd install -D -m 644 spindown.conf.example /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/etc/spindown.conf + mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64//usr/lib64/pm-utils/sleep.d + mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64//usr/lib/systemd/system + install -p -m 755 01spindown /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64//usr/lib64/pm-utils/sleep.d/01spindown + install -p -m 755 spindown.service /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64//usr/lib/systemd/system/spindown.service + /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/spindown-0.4.0 extracting debug info from /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/sbin/spindownd dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 88 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: spindown-0.4.0-34.el7_9.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.GcTaoH + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + DOCDIR=/builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/share/doc/spindown-0.4.0 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/share/doc/spindown-0.4.0 + cp -pr COPYING /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/share/doc/spindown-0.4.0 + cp -pr CHANGELOG /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/share/doc/spindown-0.4.0 + cp -pr README /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64/usr/share/doc/spindown-0.4.0 + exit 0 Provides: config(spindown) = 0.4.0-34.el7_9 spindown = 0.4.0-34.el7_9 spindown(x86-64) = 0.4.0-34.el7_9 Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(preun): /bin/sh systemd-units Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libiniparser.so.0()(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.1)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: spindown-debuginfo-0.4.0-34.el7_9.x86_64 Provides: spindown-debuginfo = 0.4.0-34.el7_9 spindown-debuginfo(x86-64) = 0.4.0-34.el7_9 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/spindown-0.4.0-34.el7_9.x86_64 Wrote: /builddir/build/RPMS/spindown-0.4.0-34.el7_9.x86_64.rpm Wrote: /builddir/build/RPMS/spindown-debuginfo-0.4.0-34.el7_9.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.61XGHR + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/spindown-0.4.0-34.el7_9.x86_64 + exit 0 Child return code was: 0