Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.spec'], chrootPath='/var/lib/mock/f33-build-126546-40045/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=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1580256000 Wrote: /builddir/build/SRPMS/netdump-server-0.7.16-502.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.spec'], chrootPath='/var/lib/mock/f33-build-126546-40045/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=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1580256000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7nRc3A + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf netdump-0.7.16 + /usr/bin/gzip -dc /builddir/build/SOURCES/netdump-0.7.16.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd netdump-0.7.16 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (netdump-init-typo.patch):' Patch #0 (netdump-init-typo.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init + echo 'Patch #1 (netdump-localport-option.patch):' Patch #1 (netdump-localport-option.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init + echo 'Patch #2 (netdump-dumpdir.patch):' Patch #2 (netdump-dumpdir.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.c Hunk #1 succeeded at 92 (offset 22 lines). Hunk #2 succeeded at 144 (offset 22 lines). Hunk #3 succeeded at 191 (offset 22 lines). Hunk #4 succeeded at 435 (offset 22 lines). patching file configuration.h Hunk #1 succeeded at 36 (offset 22 lines). patching file configuration.c Hunk #1 succeeded at 68 (offset 22 lines). Hunk #2 succeeded at 301 (offset 22 lines). + echo 'Patch #3 (netdump-dumpdir-docs-scripts.patch):' Patch #3 (netdump-dumpdir-docs-scripts.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump-server.init patching file netdump-server.8 Hunk #1 succeeded at 7 (offset -17 lines). Hunk #2 succeeded at 35 (offset -17 lines). Patch #4 (netdump-retrans-on-log.patch): + echo 'Patch #4 (netdump-retrans-on-log.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdumpclient.c Hunk #1 succeeded at 2493 (offset 22 lines). Patch #5 (netdump-verbose-logging.patch): + echo 'Patch #5 (netdump-verbose-logging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file configuration.h Hunk #1 succeeded at 36 (offset 22 lines). patching file netdumpclient.c Hunk #1 succeeded at 209 (offset 22 lines). Hunk #2 succeeded at 1009 (offset 22 lines). Hunk #3 succeeded at 1109 (offset 22 lines). Hunk #4 succeeded at 1223 (offset 22 lines). patching file server.c Hunk #1 succeeded at 558 (offset 22 lines). patching file configuration.c Hunk #1 succeeded at 323 (offset 22 lines). patching file server.h Hunk #1 succeeded at 43 (offset 22 lines). Patch #6 (netdump-makefile-servonly.patch): + echo 'Patch #6 (netdump-makefile-servonly.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Patch #7 (netdump-server-Makefile.patch): + echo 'Patch #7 (netdump-server-Makefile.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Patch #8 (netdump-server-init.patch): + echo 'Patch #8 (netdump-server-init.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init + echo 'Patch #9 (netdump-clientport.patch):' Patch #9 (netdump-clientport.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.c patching file netdumpclient.c patching file netdumpclient.h Patch #10 (netdump-server-use-ip-cmd.patch): + echo 'Patch #10 (netdump-server-use-ip-cmd.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init Patch #11 (netdump-server-default-dir.patch): + echo 'Patch #11 (netdump-server-default-dir.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.h Patch #12 (netdump-ldflags.patch): + echo 'Patch #12 (netdump-ldflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Patch #13 (netdump-server-format-security.patch): + echo 'Patch #13 (netdump-server-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.c Patch #14 (netdump-server-offsetof.patch): + echo 'Patch #14 (netdump-server-offsetof.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file configuration.c Patch #15 (netdump-do-not-redeclare-procfs.patch): + echo 'Patch #15 (netdump-do-not-redeclare-procfs.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdumpelf.h Patch #16 (netdump-glib-2.0.patch): + echo 'Patch #16 (netdump-glib-2.0.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile patching file server.c patching file configuration.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bSSnzC + umask 022 + cd /builddir/build/BUILD + cd netdump-0.7.16 ++ pkg-config --cflags glib-2.0 + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE' + export LDFLAGS=-pie + LDFLAGS=-pie + make -j4 cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE `pkg-config --cflags glib-2.0` -c -o server.o server.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE `pkg-config --cflags glib-2.0` -c -o netdumpclient.o netdumpclient.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE `pkg-config --cflags glib-2.0` -c -o configuration.o configuration.c server.c: In function 'write_log': server.c:277:11: warning: variable 'res' set but not used [-Wunused-but-set-variable] 277 | int res; | ^~~ server.c: In function 'main': server.c:429:9: warning: unused variable 'str' [-Wunused-variable] 429 | char *str; | ^~~ netdumpclient.c: In function 'netdump_client_send_reboot': netdumpclient.c:146:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] 146 | int len; | ^~~ server.c:446:5: warning: ignoring return value of 'daemon' declared with attribute 'warn_unused_result' [-Wunused-result] 446 | daemon(1, 0); | ^~~~~~~~~~~~ netdumpclient.c: In function 'netdump_client_send_request': netdumpclient.c:367:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] 367 | int len; | ^~~ server.c: In function 'setup_pidfile': server.c:407:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 407 | write(pidfd, pid, strlen(pid)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netdumpclient.c: In function 'netdump_client_destroy': netdumpclient.c:289:2: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 289 | system(compress_command); | ^~~~~~~~~~~~~~~~~~~~~~~~ netdumpclient.c: In function 'status_packet': netdumpclient.c:2491:4: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2491 | write (fd, | ^~~~~~~~~~ 2492 | buffer + 1 + sizeof (reply_t), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2493 | buf_len - (1 + sizeof (reply_t))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'config_load_segments': server.c:611:9: warning: 'load_segments' may be used uninitialized in this function [-Wmaybe-uninitialized] 611 | return load_segments; | ^~~~~~~~~~~~~ gcc -o netdump-server server.o netdumpclient.o configuration.o -pie `pkg-config --libs glib-2.0` -lpopt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3uNgNB + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 + cd netdump-0.7.16 + rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 + DESTDIR=/builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 + make install mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash/scripts mkdir -m 700 -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash/magic mkdir -m 700 -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash/.ssh echo "#netdump stores client keys here" > /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash/.ssh/authorized_keys2 chmod u=rw,go= /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash/.ssh/authorized_keys2 mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/sbin mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/sysconfig mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/rc.d/init.d cp netdump-server /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/sbin cp netdump-server.init /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/rc.d/init.d/netdump-server chmod a+x /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/rc.d/init.d/netdump-server mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/share/man/man8 cp netdump-server.8 /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/sysconfig + install -m 644 /builddir/build/SOURCES/netdump-server.sysconfig /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/sysconfig/netdump-server + install -D -p -m 0644 /builddir/build/SOURCES/netdump-server.service /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64//usr/lib/systemd/system/netdump-server.service + mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/var/netdump/crash/netdump + rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/etc/rc.d + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.7.16-502.fc33 --unique-debug-suffix -0.7.16-502.fc33.riscv64 --unique-debug-src-base netdump-server-0.7.16-502.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/netdump-0.7.16 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/sbin/netdump-server extracting debug info from /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/sbin/netdump-server original debug info size: 204kB, size after compression: 204kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 230 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /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 Processing files: netdump-server-0.7.16-502.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.kIz9MC + umask 022 + cd /builddir/build/BUILD + cd netdump-0.7.16 + DOCDIR=/builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/share/doc/netdump-server + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/share/doc/netdump-server + cp -pr README /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/share/doc/netdump-server + cp -pr COPYING /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64/usr/share/doc/netdump-server + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(netdump-server) = 0.7.16-502.fc33 netdump-server = 0.7.16-502.fc33 netdump-server(riscv-64) = 0.7.16-502.fc33 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libglib-2.0.so.0()(64bit) libpopt.so.0()(64bit) libpopt.so.0(LIBPOPT_0)(64bit) rtld(GNU_HASH) Processing files: netdump-server-debugsource-0.7.16-502.fc33.riscv64 Provides: netdump-server-debugsource = 0.7.16-502.fc33 netdump-server-debugsource(riscv-64) = 0.7.16-502.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: netdump-server-debuginfo-0.7.16-502.fc33.riscv64 Provides: debuginfo(build-id) = 146c5cc07f69e2aa2e85eb857ff224ad6c46652d netdump-server-debuginfo = 0.7.16-502.fc33 netdump-server-debuginfo(riscv-64) = 0.7.16-502.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: netdump-server-debugsource(riscv-64) = 0.7.16-502.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 Wrote: /builddir/build/RPMS/netdump-server-0.7.16-502.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/netdump-server-debugsource-0.7.16-502.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/netdump-server-debuginfo-0.7.16-502.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.yuAjMD + umask 022 + cd /builddir/build/BUILD + cd netdump-0.7.16 + /usr/bin/rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-502.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0