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/rarpd.spec'], chrootPath='/var/lib/mock/f33-build-135631-41744/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/rarpd.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=1580342400 Wrote: /builddir/build/SRPMS/rarpd-ss981107-55.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/rarpd.spec'], chrootPath='/var/lib/mock/f33-build-135631-41744/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/rarpd.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=1580342400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UtZHKM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rarpd + /usr/bin/gzip -dc /builddir/build/SOURCES/rarpd-ss981107.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rarpd + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (rarpd-ss981107.patch):' Patch #0 (rarpd-ss981107.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ss981107 --fuzz=0 patching file Makefile patching file rarpd.8 patching file rarpd.c Patch #1 (rarpd-fd-leak.patch): + echo 'Patch #1 (rarpd-fd-leak.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fd-leak --fuzz=0 patching file rarpd.c + echo 'Patch #2 (rarpd-sprintf.patch):' Patch #2 (rarpd-sprintf.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sprintf --fuzz=0 patching file rarpd.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UK41HP + umask 022 + cd /builddir/build/BUILD + cd rarpd + 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 -fpic' + 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 -fpic' + export 'LDFLAGS=-pie -Wl,-z,relro,-z,now' + LDFLAGS='-pie -Wl,-z,relro,-z,now' + make '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 -fpic' gcc -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 -fpic -c -o rarpd.o rarpd.c rarpd.c: In function 'load_if': rarpd.c:159:15: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 159 | strncpy(ifl->name, ifrp->ifr_name, IFNAMSIZ); | ~~~^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:465, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from rarpd.c:13: /usr/include/bits/string_fortified.h:103:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' 103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ rarpd.c:161:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] 161 | p = strchr(ifl->name, ':'); | ~~~^~~~~~ | | | unsigned char * In file included from rarpd.c:18: /usr/include/string.h:226:34: note: expected 'const char *' but argument is of type 'unsigned char *' 226 | extern char *strchr (const char *__s, int __c) | ~~~~~~~~~~~~^~~ rarpd.c: In function 'serve_it': rarpd.c:435:75: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] 435 | n = recvfrom(fd, buf, sizeof(buf), MSG_DONTWAIT, (struct sockaddr*)&sll, &sll_len); | ^~~~~~~~ | | | int * In file included from /usr/include/sys/socket.h:269, from /usr/include/netinet/in.h:23, from /usr/include/netdb.h:27, from rarpd.c:20: /usr/include/bits/socket2.h:65:49: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 65 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rarpd.c:460:6: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 460 | ptr = tmpbuf; | ^ rarpd.c:462:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 462 | for (ptr=tmpbuf+2, i=1; iname, IFNAMSIZ); | ~~~^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:465, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from rarpd.c:13: /usr/include/bits/string_fortified.h:103:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ rarpd.c:547:34: warning: pointer targets in passing argument 2 of 'arp_advise' differ in signedness [-Wpointer-sign] 547 | arp_advise(sll.sll_ifindex, rmap->lladdr, rmap->lladdr_len, rmap->ipaddr); | ~~~~^~~~~~~~ | | | char * rarpd.c:392:45: note: expected 'unsigned char *' but argument is of type 'char *' 392 | void arp_advise(int ifindex, unsigned char *lladdr, int lllen, __u32 ipaddr) | ~~~~~~~~~~~~~~~^~~~~~ rarpd.c: In function 'main': rarpd.c:690:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 690 | chdir("/"); | ^~~~~~~~~~ In file included from /usr/include/string.h:495, from rarpd.c:18: In function 'strncpy', inlined from 'load_if' at rarpd.c:159:4: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output may be truncated copying 15 bytes from a string of length 10239 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rarpd.c: In function 'bootable': rarpd.c:241:14: warning: 'dent' may be used uninitialized in this function [-Wmaybe-uninitialized] 241 | return dent != NULL; | ^ rarpd.c: In function 'serve_it': rarpd.c:461:34: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 461 | snprintf(tmpbuf, 2, "%02x", sll.sll_addr[0]); | ^ In file included from /usr/include/stdio.h:871, from rarpd.c:13: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 3 bytes into a destination of size 2 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rarpd.c:463:26: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 463 | snprintf(ptr, 3, ":%02x", sll.sll_addr[i]); | ^ In file included from /usr/include/stdio.h:871, from rarpd.c:13: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 bytes into a destination of size 3 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -pie -Wl,-z,relro,-z,now rarpd.o -o rarpd + cp /builddir/build/SOURCES/LICENSE . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.aaV7jN + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64 + cd rarpd + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/share/man/man8 + install -m 644 /builddir/build/SOURCES/rarpd.service /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/lib/systemd/system/rarpd.service + install -m 755 rarpd /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/sbin/rarpd + install -m 644 rarpd.8 /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/share/man/man8/rarpd.8 + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed ss981107-55.fc33 --unique-debug-suffix -ss981107-55.fc33.riscv64 --unique-debug-src-base rarpd-ss981107-55.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rarpd explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/sbin/rarpd extracting debug info from /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/sbin/rarpd original debug info size: 76kB, size after compression: 76kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 31 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: rarpd-ss981107-55.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wt0HwN + umask 022 + cd /builddir/build/BUILD + cd rarpd + DOCDIR=/builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/share/doc/rarpd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/share/doc/rarpd + cp -pr README /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/share/doc/rarpd + cp -pr LICENSE /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64/usr/share/doc/rarpd + RPM_EC=0 ++ jobs -p + exit 0 Provides: rarpd = ss981107-55.fc33 rarpd(riscv-64) = ss981107-55.fc33 Requires(interp): /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(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units 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) rtld(GNU_HASH) Processing files: rarpd-debugsource-ss981107-55.fc33.riscv64 Provides: rarpd-debugsource = ss981107-55.fc33 rarpd-debugsource(riscv-64) = ss981107-55.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rarpd-debuginfo-ss981107-55.fc33.riscv64 Provides: debuginfo(build-id) = 23ff30e87fabb7d525916d29f812088b0ebafb8f rarpd-debuginfo = ss981107-55.fc33 rarpd-debuginfo(riscv-64) = ss981107-55.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rarpd-debugsource(riscv-64) = ss981107-55.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64 Wrote: /builddir/build/RPMS/rarpd-debugsource-ss981107-55.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/rarpd-ss981107-55.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/rarpd-debuginfo-ss981107-55.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.p1qkHM + umask 022 + cd /builddir/build/BUILD + cd rarpd + /usr/bin/rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-55.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0