+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/chkrootkit.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.f6HVQK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf chkrootkit-0.52 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/chkrootkit-0.52.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd chkrootkit-0.52 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (chkrootkit-0.44-getCMD.patch):' Patch #1 (chkrootkit-0.44-getCMD.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .getCMD --fuzz=0 patching file chkrootkit Hunk #1 succeeded at 1325 (offset 265 lines). + echo 'Patch #2 (chkrootkit-0.44-inetd.patch):' Patch #2 (chkrootkit-0.44-inetd.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .inetd --fuzz=0 patching file chkrootkit Hunk #1 succeeded at 1490 (offset 274 lines). + echo 'Patch #6 (chkrootkit-0.47-chklastlog.patch):' Patch #6 (chkrootkit-0.47-chklastlog.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .chklastlog --fuzz=0 patching file chklastlog.c Hunk #1 succeeded at 65 (offset 3 lines). patching file README.chklastlog + echo 'Patch #9 (chkrootkit-0.49-chkproc-psver.patch):' Patch #9 (chkrootkit-0.49-chkproc-psver.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .chkproc-psver --fuzz=0 patching file chkproc.c Hunk #1 succeeded at 149 (offset 3 lines). + echo 'Patch #11 (chkrootkit-0.49-CVE-2014-0476.patch):' Patch #11 (chkrootkit-0.49-CVE-2014-0476.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file debian/patches/CVE-2014-0476.patch + echo 'Patch #14 (chkrootkit-0.50-netstat-l2cap.patch):' Patch #14 (chkrootkit-0.50-netstat-l2cap.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file chkrootkit Hunk #1 succeeded at 102 (offset 4 lines). Hunk #2 succeeded at 129 (offset 4 lines). Hunk #3 succeeded at 274 (offset 4 lines). Hunk #4 succeeded at 2473 (offset 73 lines). + sed -i -e 's!\s\+@strip.*!!g' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OotJ7W + umask 022 + cd /builddir/build/BUILD + cd chkrootkit-0.52 + make sense 'CC=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 -D_FILE_OFFSET_BITS=64' 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 -D_FILE_OFFSET_BITS=64 -DHAVE_LASTLOG_H -o chklastlog chklastlog.c chklastlog.c: In function 'main': chklastlog.c:170:49: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid ); ~~^ %d chklastlog.c:170:72: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'uid_t {aka unsigned int}' [-Wformat=] fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid ); ~~^ ~~~~ %d 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 -D_FILE_OFFSET_BITS=64 -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c 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 -D_FILE_OFFSET_BITS=64 -DHAVE_LASTLOG_H -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c ifpromisc.c: In function 'read_proc_net_packet': ifpromisc.c:107:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, 80, proc); ^~~~~~~~~~~~~~~~~~~~ ifpromisc.c: In function 'walk_process': ifpromisc.c:203:13: warning: ignoring return value of 'readlink', declared with attribute warn_unused_result [-Wunused-result] readlink(path, link, sizeof(link) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -D_FILE_OFFSET_BITS=64 -o chkproc chkproc.c chkproc.c: In function 'main': chkproc.c:190:32: warning: "/*" within comment [-Wcomment] /* printf("pv = %d\n\r", pv); /* -- DEBUG */ chkproc.c:193:37: warning: "/*" within comment [-Wcomment] /* printf("pscmd = %s\n\r", pscmd); /* -- DEBUG */ chkproc.c:238:29: warning: "/*" within comment [-Wcomment] /* printf(">>%s<<\n", p); /* -- DEBUG */ chkproc.c:273:37: warning: "/*" within comment [-Wcomment] /* printf("%s\n", tmp_d_name); /* -- DEBUG */ chkproc.c: In function 'readline': chkproc.c:124:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, MAX_BUF, stream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ chkproc.c:127:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, MAX_BUF, stream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -D_FILE_OFFSET_BITS=64 -o chkdirs chkdirs.c 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 -D_FILE_OFFSET_BITS=64 -o check_wtmpx check_wtmpx.c 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 -D_FILE_OFFSET_BITS=64 -static -o strings-static strings.c 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 -D_FILE_OFFSET_BITS=64 -o chkutmp chkutmp.c chkutmp.c: In function 'fetchps': chkutmp.c:90:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(line, MAXREAD, ps_fp); /* skip header */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ chkutmp.c:122:20: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(line, MAXREAD, ps_fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.y1akXa + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 + cd chkrootkit-0.52 + rm -rf /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/sbin + cat + install -p -D -m0755 .tmp.chkrootkit.sbin /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/sbin/chkrootkit + mkdir -p /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/bin + ln -s /usr/bin/consolehelper /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/bin/chkrootkit + install -p -D -m0755 /builddir/build/SOURCES/chkrootkitX /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/bin/chkrootkitX + perl -pi -e 's!/usr/bin!/usr/bin!' /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/bin/chkrootkitX + install -p -D -m0644 /builddir/build/SOURCES/chkrootkit.png /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/pixmaps/chkrootkit.png + install -p -D -m0644 /builddir/build/SOURCES/chkrootkit.console /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/etc/security/console.apps/chkrootkit + perl -pi -e 's!/usr/sbin!/usr/sbin!' /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/etc/security/console.apps/chkrootkit + install -p -D -m0644 /builddir/build/SOURCES/chkrootkit.pam /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/etc/pam.d/chkrootkit + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 check_wtmpx /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/check_wtmpx + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkdirs /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/chkdirs + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chklastlog /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/chklastlog + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkproc /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/chkproc + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkrootkit /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/chkrootkit + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkutmp /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/chkutmp + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkwtmp /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/chkwtmp + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 ifpromisc /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/ifpromisc + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 strings-static /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/strings-static + ln -s strings-static /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/lib64/chkrootkit-0.52/strings + desktop-file-install --dir /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/applications /builddir/build/SOURCES/chkrootkit.desktop + install -p -m0644 /builddir/build/SOURCES/README.false_positives . + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/chkrootkit-0.52-3.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/bin/chkrootkitX from #! /bin/sh to #!/bin/sh mangling shebang in ./usr/sbin/chkrootkit from #! /bin/sh to #!/bin/sh mangling shebang in ./usr/lib64/chkrootkit-0.52/chkrootkit from #! /bin/sh to #!/bin/sh Processing files: chkrootkit-0.52-3.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ItAbai + umask 022 + cd /builddir/build/BUILD + cd chkrootkit-0.52 + DOCDIR=/builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr ACKNOWLEDGMENTS /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr COPYRIGHT /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr README /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr README.chklastlog /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr README.chkwtmp /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr chkrootkit.lsm /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + cp -pr README.false_positives /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64/usr/share/doc/chkrootkit + exit 0 Provides: application() application(chkrootkit.desktop) chkrootkit = 0.52-3.fc28 chkrootkit(riscv-64) = 0.52-3.fc28 config(chkrootkit) = 0.52-3.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 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) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 Wrote: /builddir/build/SRPMS/chkrootkit-0.52-3.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/chkrootkit-0.52-3.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.lp7PXV + umask 022 + cd /builddir/build/BUILD + cd chkrootkit-0.52 + rm -rf /builddir/build/BUILDROOT/chkrootkit-0.52-3.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff