Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/pam_shield.spec'], chrootPath='/var/lib/mock/f29-build-9722-4371/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=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/pam_shield.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 Wrote: /builddir/build/SRPMS/pam_shield-0.9.5-22.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pam_shield.spec'], chrootPath='/var/lib/mock/f29-build-9722-4371/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=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pam_shield.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GGcQ7i + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pam_shield-0.9.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/pam_shield-0.9.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pam_shield-0.9.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv GPL LICENSE + echo 'Patch #0 (shield_purge_segfault.patch):' Patch #0 (shield_purge_segfault.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .shield_purge_segfault --fuzz=0 patching file shield_purge.c + echo 'Patch #1 (shield-trigger-iptables.patch):' Patch #1 (shield-trigger-iptables.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .shield_trigger_iptables --fuzz=0 patching file shield-trigger-iptables + sed -i -e 's/debug on/debug off/' shield.conf + sed -i -e 's/block unknown-users/block all-users/' shield.conf + sed -i -e 's/max_conns 10/max_conns 3/' shield.conf + sed -i -e 's/retention 1w/retention 1h/' shield.conf + sed -i -e 's/shield\-trigger/shield-trigger-iptables/' shield.conf + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.q1ggzF + umask 022 + cd /builddir/build/BUILD + cd pam_shield-0.9.5 + 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 -M pam_shield.c shield_purge.c > .depend 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 pam_shield.c BUILDSTDERR: In file included from pam_shield.c:43: BUILDSTDERR: pam_shield_lib.c: In function 'fatal_func': BUILDSTDERR: pam_shield_lib.c:790:62: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if ((dbf = gdbm_open(dbfile, GDBM_NEWDB, 512, (mode_t)0600, fatal_func)) == NULL) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from pam_shield_lib.c:46, BUILDSTDERR: from pam_shield.c:43: BUILDSTDERR: /usr/include/gdbm.h:115:8: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' BUILDSTDERR: void (*)(const char *)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: pam_shield.c: In function 'pam_sm_authenticate': BUILDSTDERR: pam_shield.c:265:68: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: while ((dbf = gdbm_open(dbfile, 512, GDBM_WRCREAT, (mode_t)0600, fatal_func)) == NULL) { BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from pam_shield_lib.c:46, BUILDSTDERR: from pam_shield.c:43: BUILDSTDERR: /usr/include/gdbm.h:115:8: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' BUILDSTDERR: void (*)(const char *)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ gcc -shared -Xlinker -x -o pam_shield.so pam_shield.o -lpam -lgdbm 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 shield_purge.c BUILDSTDERR: In file included from shield_purge.c:28: BUILDSTDERR: pam_shield_lib.c: In function 'fatal_func': BUILDSTDERR: pam_shield_lib.c:790:62: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if ((dbf = gdbm_open(dbfile, GDBM_NEWDB, 512, (mode_t)0600, fatal_func)) == NULL) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from pam_shield_lib.c:46, BUILDSTDERR: from shield_purge.c:28: BUILDSTDERR: /usr/include/gdbm.h:115:8: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' BUILDSTDERR: void (*)(const char *)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: shield_purge.c: In function 'main': BUILDSTDERR: shield_purge.c:237:63: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if ((dbf = gdbm_open(dbfile, 512, GDBM_WRITER, (mode_t)0600, fatal_func)) == NULL) { BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from pam_shield_lib.c:46, BUILDSTDERR: from shield_purge.c:28: BUILDSTDERR: /usr/include/gdbm.h:115:8: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' BUILDSTDERR: void (*)(const char *)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from shield_purge.c:28: BUILDSTDERR: At top level: BUILDSTDERR: pam_shield_lib.c:236:12: warning: 'match_name_list' defined but not used [-Wunused-function] BUILDSTDERR: static int match_name_list(char *name) { BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: pam_shield_lib.c:163:12: warning: 'match_ipv6_list' defined but not used [-Wunused-function] BUILDSTDERR: static int match_ipv6_list(unsigned char *saddr) { BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: pam_shield_lib.c:139:12: warning: 'match_ipv4_list' defined but not used [-Wunused-function] BUILDSTDERR: static int match_ipv4_list(unsigned char *saddr) { BUILDSTDERR: ^~~~~~~~~~~~~~~ gcc shield_purge.o -o shield-purge -lgdbm + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Tcaqje + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 + cd pam_shield-0.9.5 + rm -rf /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/etc/security + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/etc/cron.daily + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/sbin + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/lib64/security + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/man/man8 + install -m 755 pam_shield.so /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/lib64/security/ + install -m 755 -T pam_shield.cron /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/etc/cron.daily/pam_shield + install -m 755 shield-trigger /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/sbin/ + install -m 755 shield-trigger-iptables /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/sbin/ + install -m 755 shield-purge /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/sbin/ + install -m 644 shield.conf /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/etc/security/ + mkdir -p -m 700 /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/var/lib/pam_shield + install -m 644 /builddir/build/SOURCES/shield-trigger.8.gz /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/man/man8/ + install -m 644 /builddir/build/SOURCES/shield-purge.8.gz /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/man/man8/ + install -m 644 /builddir/build/SOURCES/shield-trigger-iptables.8.gz /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/man/man8/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.9.5-22.fc29 --unique-debug-suffix -0.9.5-22.fc29.riscv64 --unique-debug-src-base pam_shield-0.9.5-22.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pam_shield-0.9.5 extracting debug info from /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/sbin/shield-purge extracting debug info from /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/lib64/security/pam_shield.so /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. BUILDSTDERR: 72 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.g6By7e Processing files: pam_shield-0.9.5-22.fc29.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.dgVQ2D + umask 022 + cd /builddir/build/BUILD + cd pam_shield-0.9.5 + DOCDIR=/builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + cp -pr INSTALL /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + cp -pr README /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + cp -pr LICENSE /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + cp -pr CREDITS /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + cp -pr Changelog /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64/usr/share/doc/pam_shield + exit 0 Provides: config(pam_shield) = 0.9.5-22.fc29 pam_shield = 0.9.5-22.fc29 pam_shield(riscv-64) = 0.9.5-22.fc29 Requires(interp): /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 Requires(postun): /bin/sh Requires: /bin/sh 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) libgdbm.so.5()(64bit) libpam.so.0()(64bit) libpam.so.0(LIBPAM_1.0)(64bit) rtld(GNU_HASH) Processing files: pam_shield-debugsource-0.9.5-22.fc29.riscv64 Provides: pam_shield-debugsource = 0.9.5-22.fc29 pam_shield-debugsource(riscv-64) = 0.9.5-22.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: pam_shield-debuginfo-0.9.5-22.fc29.riscv64 Provides: debuginfo(build-id) = 433c551a28d2f587b0018dd781a17a185f89d2c6 debuginfo(build-id) = 787c72b37c6cf9592671f0adad38aebce7b2fed1 pam_shield-debuginfo = 0.9.5-22.fc29 pam_shield-debuginfo(riscv-64) = 0.9.5-22.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: pam_shield-debugsource(riscv-64) = 0.9.5-22.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 Wrote: /builddir/build/RPMS/pam_shield-0.9.5-22.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/pam_shield-debugsource-0.9.5-22.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/pam_shield-debuginfo-0.9.5-22.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.hIvIQV + umask 022 + cd /builddir/build/BUILD + cd pam_shield-0.9.5 + rm -rf /builddir/build/BUILDROOT/pam_shield-0.9.5-22.fc29.riscv64 + exit 0 Child return code was: 0