+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/pam_shield.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NzCeFW + 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.ys2qFd + 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 -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 -fPIC -c pam_shield.c In file included from pam_shield.c:43:0: pam_shield_lib.c: In function 'fatal_func': pam_shield_lib.c:790:62: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] if ((dbf = gdbm_open(dbfile, GDBM_NEWDB, 512, (mode_t)0600, fatal_func)) == NULL) ^~~~~~~~~~ In file included from pam_shield_lib.c:46:0, from pam_shield.c:43: /usr/include/gdbm.h:114:18: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' extern GDBM_FILE gdbm_open (const char *, int, int, int, ^~~~~~~~~ pam_shield.c: In function 'pam_sm_authenticate': pam_shield.c:265:68: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] while ((dbf = gdbm_open(dbfile, 512, GDBM_WRCREAT, (mode_t)0600, fatal_func)) == NULL) { ^~~~~~~~~~ In file included from pam_shield_lib.c:46:0, from pam_shield.c:43: /usr/include/gdbm.h:114:18: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' extern GDBM_FILE gdbm_open (const char *, int, int, int, ^~~~~~~~~ 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 -fPIC -c shield_purge.c In file included from shield_purge.c:28:0: pam_shield_lib.c: In function 'fatal_func': pam_shield_lib.c:790:62: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] if ((dbf = gdbm_open(dbfile, GDBM_NEWDB, 512, (mode_t)0600, fatal_func)) == NULL) ^~~~~~~~~~ In file included from pam_shield_lib.c:46:0, from shield_purge.c:28: /usr/include/gdbm.h:114:18: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' extern GDBM_FILE gdbm_open (const char *, int, int, int, ^~~~~~~~~ shield_purge.c: In function 'main': shield_purge.c:237:63: warning: passing argument 5 of 'gdbm_open' from incompatible pointer type [-Wincompatible-pointer-types] if ((dbf = gdbm_open(dbfile, 512, GDBM_WRITER, (mode_t)0600, fatal_func)) == NULL) { ^~~~~~~~~~ In file included from pam_shield_lib.c:46:0, from shield_purge.c:28: /usr/include/gdbm.h:114:18: note: expected 'void (*)(const char *)' but argument is of type 'void (*)(char *)' extern GDBM_FILE gdbm_open (const char *, int, int, int, ^~~~~~~~~ In file included from shield_purge.c:28:0: At top level: pam_shield_lib.c:236:12: warning: 'match_name_list' defined but not used [-Wunused-function] static int match_name_list(char *name) { ^~~~~~~~~~~~~~~ pam_shield_lib.c:163:12: warning: 'match_ipv6_list' defined but not used [-Wunused-function] static int match_ipv6_list(unsigned char *saddr) { ^~~~~~~~~~~~~~~ pam_shield_lib.c:139:12: warning: 'match_ipv4_list' defined but not used [-Wunused-function] static int match_ipv4_list(unsigned char *saddr) { ^~~~~~~~~~~~~~~ gcc shield_purge.o -o shield-purge -lgdbm + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.buaQ0t + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 + cd pam_shield-0.9.5 + rm -rf /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/etc/security + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/etc/cron.daily + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/sbin + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/lib64/security + mkdir -p -m 755 /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/man/man8 + install -m 755 pam_shield.so /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/lib64/security/ + install -m 755 -T pam_shield.cron /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/etc/cron.daily/pam_shield + install -m 755 shield-trigger /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/sbin/ + install -m 755 shield-trigger-iptables /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/sbin/ + install -m 755 shield-purge /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/sbin/ + install -m 644 shield.conf /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/etc/security/ + mkdir -p -m 700 /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/var/lib/pam_shield + install -m 644 /builddir/build/SOURCES/shield-trigger.8.gz /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/man/man8/ + install -m 644 /builddir/build/SOURCES/shield-purge.8.gz /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/man/man8/ + install -m 644 /builddir/build/SOURCES/shield-trigger-iptables.8.gz /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/man/man8/ + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /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 mangling shebang in ./usr/sbin/shield-trigger-iptables from #! /bin/sh to #!/bin/sh mangling shebang in ./usr/sbin/shield-trigger from #! /bin/sh to #!/bin/sh mangling shebang in ./etc/cron.daily/pam_shield from #! /bin/sh to #!/bin/sh Processing files: pam_shield-0.9.5-21.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.de1q1z + umask 022 + cd /builddir/build/BUILD + cd pam_shield-0.9.5 + DOCDIR=/builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.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-21.fc28.riscv64/usr/share/doc/pam_shield + cp -pr INSTALL /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/doc/pam_shield + cp -pr README /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/doc/pam_shield + cp -pr LICENSE /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/doc/pam_shield + cp -pr CREDITS /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/doc/pam_shield + cp -pr Changelog /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64/usr/share/doc/pam_shield + exit 0 Provides: config(pam_shield) = 0.9.5-21.fc28 pam_shield = 0.9.5-21.fc28 pam_shield(riscv-64) = 0.9.5-21.fc28 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) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 Wrote: /builddir/build/SRPMS/pam_shield-0.9.5-21.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/pam_shield-0.9.5-21.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.MRNQsD + umask 022 + cd /builddir/build/BUILD + cd pam_shield-0.9.5 + rm -rf /builddir/build/BUILDROOT/pam_shield-0.9.5-21.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff