Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/sagator.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-1c6aff8c255e2fe921895e104ad67da64e765b91/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/sagator.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/sagator-1.3.2-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/sagator.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-1c6aff8c255e2fe921895e104ad67da64e765b91/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/sagator.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.E3F6Mn + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sagator-1.3.2 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/sagator-1.3.2.tar.bz2 + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sagator-1.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.W44Zd0 + umask 022 + cd /builddir/build/BUILD + cd sagator-1.3.2 + sh configure --prefix=/usr --filelist checking for my version... 1.3.2-1 (stable) checking for your operating system... rhfc checking for datadir... share (share) checking for python... python, version python2.7, in /usr checking for apache... /etc/httpd checking for logwatch... /usr/share/logwatch/dist.conf, /usr/share/logwatch/scripts checking for webdir... /var/www/html/sagator configured prefix... /usr creating Makefile creating po/Makefile creating scripts/sagator.spec creating scripts/cron creating scripts/graphs/mrtg.cfg creating scripts/apache.conf creating debian/changelog + make -j4 python avir/libclamav/getconst.py avir/libclamav/const.py /usr/include/clamav.h make aspam/pydspam/const.py || true # replace interpreter for sagator's programs for i in sagator sgscan sgfilter sqback reporter dbcleanup updatecfg scand; do \ grep '^#!/usr/bin/python$' $i.py > /dev/null 2>&1 || \ echo -e ',s|^#!/.*$|#!/usr/bin/python|\nw\nq' | ed $i.py; \ done || true make[1]: Entering directory `/builddir/build/BUILD/sagator-1.3.2' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[1]: Leaving directory `/builddir/build/BUILD/sagator-1.3.2' python doc/gendoc.py doc make[1]: *** No rule to make target `/usr/include/dspam/libdspam_objects.h', needed by `aspam/pydspam/const.py'. Stop. # compile modules for i in . aspam avir avir/libclamav aspam/pydspam interscan srv srv/web; do \ python -c \ "import compileall;compileall.compile_dir('$i', 0, '$i')"; \ done Listing . ... Compiling ./__init__.py ... Compiling ./dbcleanup.py ... Compiling ./html.py ... Compiling ./reporter.py ... Compiling ./sagator.py ... Compiling ./scand.py ... Compiling ./sgfilter.py ... Compiling ./sgscan.py ... Compiling ./sqback.py ... Compiling ./updatecfg.py ... Listing aspam ... Listing avir ... Compiling avir/example.py ... Listing avir/libclamav ... Compiling avir/libclamav/const.py ... Compiling avir/libclamav/example.py ... Compiling avir/libclamav/getconst.py ... Compiling avir/libclamav/libso6.py ... Compiling avir/libclamav/libso9.py ... Listing aspam/pydspam ... Compiling aspam/pydspam/example.py ... Compiling aspam/pydspam/getconst.py ... Listing interscan ... Listing srv ... Compiling srv/example.py ... Listing srv/web ... Compiling srv/web/__init__.py ... Compiling srv/web/reg.py ... # replace config, if not found [ -f etc/sgconf.py ] || \ cp -pPRf etc/sagator.conf-template etc/sgconf.py make -C po make[1]: Entering directory `/builddir/build/BUILD/sagator-1.3.2/po' msgfmt -o sk.mo sk.po make[1]: Leaving directory `/builddir/build/BUILD/sagator-1.3.2/po' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.lFXwP9 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch ++ dirname /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch + cd sagator-1.3.2 + rm -rf /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch + make DESTDIR=/builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch PREFIX=/usr install # replace interpreter for sagator's programs for i in sagator sgscan sgfilter sqback reporter dbcleanup updatecfg scand; do \ grep '^#!/usr/bin/python$' $i.py > /dev/null 2>&1 || \ echo -e ',s|^#!/.*$|#!/usr/bin/python|\nw\nq' | ed $i.py; \ done || true # compile modules for i in . aspam avir avir/libclamav aspam/pydspam interscan srv srv/web; do \ python -c \ "import compileall;compileall.compile_dir('$i', 0, '$i')"; \ done Listing . ... Listing aspam ... Listing avir ... Listing avir/libclamav ... Listing aspam/pydspam ... Listing interscan ... Listing srv ... Listing srv/web ... # replace config, if not found [ -f etc/sgconf.py ] || \ cp -pPRf etc/sagator.conf-template etc/sgconf.py # install logwatch scripts mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/scripts/services \ /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/dist.conf/logfiles /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/dist.conf/services [ -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/dist.conf/services/sagator.conf ] || \ cp -pPRf scripts/log/logwatch.service /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/dist.conf/services/sagator.conf [ -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/dist.conf/logfiles/sagator.conf ] || \ cp -pPRf scripts/log/logwatch.logfile /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/dist.conf/logfiles/sagator.conf cp -pPRf scripts/log/logwatch.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/logwatch/scripts/services/sagator if [ -d /usr/lib/systemd/system ]; then \ mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/lib/systemd/system; \ cp scripts/sagator.service /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/lib/systemd/system/; \ fi mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/rc.d/init.d /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/sysconfig cp -pPRf scripts/sagator.init.rhfc /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/rc.d/init.d/sagator chmod +x /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/rc.d/init.d/sagator [ -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/sysconfig/sagator ] || \ cp -pPRf scripts/sysconfig-example /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/sysconfig/sagator [ ! -e /usr/share/selinux/devel/Makefile ] \ || make -C selinux install INSTDIR=/builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/selinux \ mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/bin /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/cron.d /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator \ /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch//var/spool/vscan /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/sbin /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/logrotate.d [ ! -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py ] \ || mv /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py.save cp -pPRf *.py *.py[co] aspam avir interscan srv /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator cp -pPRf etc/*.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/ rm -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py ln -sf /etc/sagator.conf /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py ln -sf ../share/sagator/sgscan.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/bin/sgscan ln -sf ../share/sagator/sgfilter.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/bin/sgfilter ln -sf ../share/sagator/sagator.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/sbin/sagator ln -sf ../share/sagator/sqback.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/sbin/sqback [ -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/sagator.conf ] || \ cp -pPRf etc/sgconf.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/sagator.conf chmod 640 /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/sagator.conf chmod 750 /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc # install logrotate script [ -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/logrotate.d/sagator ] || \ cp -pPRf scripts/log/sagator.logrotate /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/logrotate.d/sagator # install mkchroot cp -pPRf scripts/mkchroot.sh /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/sbin/mkchroot.sagator # install man pages mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/man/man1 /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/man/man8 cp -pPRf doc/sagator.8 doc/sqback.8 /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/man/man8/ cp -pPRf doc/sgscan.1 doc/sgfilter.1 /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/man/man1/ # install sagator's cron scripts sed "s|%{CHROOT}|/var/spool/vscan|g" \ < scripts/cron > /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/cron.d/sagator # install apache configuration mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch//etc/httpd/conf.d cp -pPRf scripts/apache.conf /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch//etc/httpd/conf.d/sagator.conf # install mrtg config if [ ! -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/mrtg/sagator.cfg ]; then \ mkdir -p `dirname /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/mrtg/sagator.cfg`; \ sed 's|/usr/share/|/usr/share/|g' \ < scripts/graphs/mrtg.cfg > /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/mrtg/sagator.cfg; \ fi if [ ! -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch//var/www/html/sagator/index.html ]; then \ mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch//var/www/html/sagator/tg; \ cp -pPRf scripts/graphs/rrdtool-index.html /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch//var/www/html/sagator/index.html; \ fi # install *.repo files for new yum #if [ -d /etc/yum.repos.d ]; then \ # mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/yum.repos.d /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/pki/rpm-gpg; \ # cp -pPRf scripts/sagator.repo /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/yum.repos.d/; \ # cp -pPRf SAGATOR-GPG-KEY /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/etc/pki/rpm-gpg/; \ #fi make -C po install \ PROGNAME=sagator DESTDIR=/builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch PREFIX=/usr make[1]: Entering directory `/builddir/build/BUILD/sagator-1.3.2/po' for lang in sk; do \ mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/locale/$lang/LC_MESSAGES; \ cp -pf $lang.mo /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/locale/$lang/LC_MESSAGES/sagator.mo \ || echo "WARNING: Compiled locale files (.mo) not found!"; \ done make[1]: Leaving directory `/builddir/build/BUILD/sagator-1.3.2/po' echo "Don't forget to set chroot!" Don't forget to set chroot! + rm -f /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py scripts/mkchroot.sh scripts/graphs/mrtg.cfg.in + touch /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py_ + ln -s ../../../../etc/sagator.conf /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/etc/sgconf.py + mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/var/spool/vscan/tmp/quarantine + cp -arf scripts/db /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/sagator/ + /usr/lib/rpm/find-lang.sh /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch sagator + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/sagator-1.3.2 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: sagator-1.3.2-1.el7.noarch Provides: sagator = 1.3.2-1.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Processing files: sagator-core-1.3.2-1.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.lvcV65 + umask 022 + cd /builddir/build/BUILD + cd sagator-1.3.2 + DOCDIR=/builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr doc/README /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr doc/FAQ /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr doc/Databases.txt doc/Scanners.txt doc/Services.txt /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr doc/Databases.html doc/Index.html doc/Scanners.html doc/Services.html doc/sagator.html doc/sgfilter.html doc/sgscan.html doc/sqback.html /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr TODO /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr COPYING /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr ChangeLog /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr test /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr scripts/graphs /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr scripts/configure_postfix.sh scripts/unconfigure_postfix.sh /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + cp -pr scripts/log/analyzer.py /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch/usr/share/doc/sagator-core-1.3.2 + exit 0 Provides: config(sagator-core) = 1.3.2-1.el7 sagator-core = 1.3.2-1.el7 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh Requires(post): /bin/sh Requires(preun): /bin/sh Requires: /bin/sh /usr/bin/python /usr/bin/python2 Obsoletes: sagator-libclamav <= 1.2.3 sagator-pydspam <= 0.9.1 Processing files: sagator-webq-1.3.2-1.el7.noarch Provides: sagator-webq = 1.3.2-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch Wrote: /builddir/build/RPMS/sagator-1.3.2-1.el7.noarch.rpm Wrote: /builddir/build/RPMS/sagator-core-1.3.2-1.el7.noarch.rpm Wrote: /builddir/build/RPMS/sagator-webq-1.3.2-1.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.VMFAKI + umask 022 + cd /builddir/build/BUILD + cd sagator-1.3.2 + rm -rf /builddir/build/BUILDROOT/sagator-1.3.2-1.el7.noarch + exit 0 Child return code was: 0