Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rarpd.spec'], chrootPath='/var/lib/mock/f37-build-666071-74275/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=604800uid=991gid=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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Wrote: /builddir/build/SRPMS/rarpd-ss981107-61.fc37.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/f37-build-666071-74275/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=604800uid=991gid=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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.f9xseQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rarpd + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rarpd-ss981107.tar.gz + 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 -f -p1 -b --suffix .ss981107 --fuzz=0 patching file Makefile patching file rarpd.8 patching file rarpd.c + echo 'Patch #1 (rarpd-fd-leak.patch):' Patch #1 (rarpd-fd-leak.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .fd-leak --fuzz=0 patching file rarpd.c Patch #2 (rarpd-sprintf.patch): + echo 'Patch #2 (rarpd-sprintf.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -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.RC64U2 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd rarpd + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -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 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -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:36: 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:490, 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:92:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ rarpd.c:161:39: 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:246:34: note: expected 'const char *' but argument is of type 'unsigned char *' 246 | extern char *strchr (const char *__s, int __c) | ~~~~~~~~~~~~^~~ rarpd.c: In function 'serve_it': rarpd.c:435:82: 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:343, from /usr/include/netinet/in.h:23, from /usr/include/netdb.h:27, from rarpd.c:20: /usr/include/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rarpd.c:460:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 460 | ptr = tmpbuf; | ^ rarpd.c:462:17: 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 * /usr/include/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ rarpd.c:547:41: 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:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 690 | chdir("/"); | ^~~~~~~~~~ rarpd.c: In function 'load_if': rarpd.c:159:25: warning: 'strncpy' output may be truncated copying 15 bytes from a string of length 10239 [-Wstringop-truncation] 159 | strncpy(ifl->name, ifrp->ifr_name, IFNAMSIZ); | ^ rarpd.c: In function 'bootable': rarpd.c:241:21: warning: 'dent' may be used uninitialized [-Wmaybe-uninitialized] 241 | return dent != NULL; | ^ rarpd.c:225:24: note: 'dent' was declared here 225 | struct dirent *dent; | ^~~~ rarpd.c: In function 'serve_it': rarpd.c:461:34: warning: '__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:906: In function 'snprintf', inlined from 'serve_it' at rarpd.c:461:9: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 3 bytes into a destination of size 2 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ rarpd.c: In function 'serve_it': rarpd.c:463:40: warning: '__snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 463 | snprintf(ptr, 3, ":%02x", sll.sll_addr[i]); | ^ In function 'snprintf', inlined from 'serve_it' at rarpd.c:463:3: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 4 bytes into a destination of size 3 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __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.cjoyHw + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64 ++ dirname /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd rarpd + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/share/man/man8 + install -m 644 /builddir/build/SOURCES/rarpd.service /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/lib/systemd/system/rarpd.service + install -m 755 rarpd /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/sbin/rarpd + install -m 644 rarpd.8 /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/share/man/man8/rarpd.8 + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed ss981107-61.fc37 --unique-debug-suffix -ss981107-61.fc37.riscv64 --unique-debug-src-base rarpd-ss981107-61.fc37.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rarpd extracting debug info from /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/sbin/rarpd original debug info size: 132kB, size after compression: 132kB /usr/bin/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/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: rarpd-ss981107-61.fc37.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wOqZpH + umask 022 + cd /builddir/build/BUILD + cd rarpd + DOCDIR=/builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/share/doc/rarpd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/share/doc/rarpd + cp -pr README /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/share/doc/rarpd + cp -pr LICENSE /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64/usr/share/doc/rarpd + RPM_EC=0 ++ jobs -p + exit 0 Provides: rarpd = ss981107-61.fc37 rarpd(riscv-64) = ss981107-61.fc37 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) libc.so.6(GLIBC_2.34)(64bit) rtld(GNU_HASH) Processing files: rarpd-debugsource-ss981107-61.fc37.riscv64 Provides: rarpd-debugsource = ss981107-61.fc37 rarpd-debugsource(riscv-64) = ss981107-61.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rarpd-debuginfo-ss981107-61.fc37.riscv64 Provides: debuginfo(build-id) = a61d947f15735f16ce501ba3f56de07a0af8d926 rarpd-debuginfo = ss981107-61.fc37 rarpd-debuginfo(riscv-64) = ss981107-61.fc37 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-61.fc37 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64 Wrote: /builddir/build/RPMS/rarpd-debugsource-ss981107-61.fc37.riscv64.rpm Wrote: /builddir/build/RPMS/rarpd-ss981107-61.fc37.riscv64.rpm Wrote: /builddir/build/RPMS/rarpd-debuginfo-ss981107-61.fc37.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.zHufRA + umask 022 + cd /builddir/build/BUILD + cd rarpd + /usr/bin/rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-61.fc37.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.AXV9X1 + umask 022 + cd /builddir/build/BUILD + rm -rf rarpd rarpd.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0