Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rpmlint.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-182075-60089/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=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rpmlint.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: noarch Building for target noarch Wrote: /builddir/build/SRPMS/rpmlint-1.11-19.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rpmlint.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-182075-60089/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=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rpmlint.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: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fjrbka + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpmlint-rpmlint-1.11 + /usr/bin/gzip -dc /builddir/build/SOURCES/rpmlint-1.11.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rpmlint-rpmlint-1.11 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #199 (rpmlint-1.10-suppress-locale-error.patch):' Patch #199 (rpmlint-1.10-suppress-locale-error.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file rpmlint Patch #212 (rpmlint-1.11-rpm4.15.patch): + echo 'Patch #212 (rpmlint-1.11-rpm4.15.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Pkg.py Hunk #1 succeeded at 172 (offset 29 lines). Patch #213 (rpmlint-1.11-libc-warnings.patch): + echo 'Patch #213 (rpmlint-1.11-libc-warnings.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file BinariesCheck.py + echo 'Patch #214 (rpmlint-1.11-no-python-macro.patch):' Patch #214 (rpmlint-1.11-no-python-macro.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file TagsCheck.py + echo 'Patch #215 (rpmlint-1.11-spellcheck-handle-missing-language-error.patch):' Patch #215 (rpmlint-1.11-spellcheck-handle-missing-language-error.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file TagsCheck.py Patch #216 (rpmlint-1.11-disable-flake8-self-test.patch): + echo 'Patch #216 (rpmlint-1.11-disable-flake8-self-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file test.sh + sed -i 's|1.10|1.11|g' Makefile + sed -i -e /MenuCheck/d Config.py + cp -p config config.example + install -pm 644 /builddir/build/SOURCES/rpmlint-etc.config config + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mAO1sY + umask 022 + cd /builddir/build/BUILD + cd rpmlint-rpmlint-1.11 + make COMPILE_PYC=1 PYTHON=/usr/libexec/platform-python echo "# Automatically generated, do not edit" > __version__.py echo "__version__ = '1.11'" >> __version__.py + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Svh23X + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch ++ dirname /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch + cd rpmlint-rpmlint-1.11 + touch rpmlint.pyc rpmlint.pyo + make install DESTDIR=/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch ETCDIR=/etc MANDIR=/usr/share/man LIBDIR=/usr/share/rpmlint BINDIR=/usr/bin PYTHON=/usr/libexec/platform-python mkdir -p /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/bin /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/etc/rpmlint /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/man/man1 cp -p *.py /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint if [ "x" = "x1" ] ; then \ /usr/libexec/platform-python -m py_compile \ /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/[A-Z]*.py \ /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/__*__.py ; \ fi /usr/libexec/platform-python -O -m compileall -d /usr/share/rpmlint /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint Listing '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/AbstractCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/AppDataCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/BinariesCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/Config.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/ConfigCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/DistributionCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/DocFilesCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/FHSCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/FilesCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/Filter.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/I18NCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/InitScriptCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/LSBCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/MenuCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/MenuXDGCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/NamingPolicyCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/PamCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/Pkg.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/PostCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/RpmFileCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/SCLCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/SignatureCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/SourceCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/SpecCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/TagsCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/ZipCheck.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/__isocodes__.py'... Compiling '/builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/__version__.py'... for file in rpmlint rpmdiff ; do \ sed -e "s,#!/usr/bin/python ,#!/usr/libexec/platform-python ," $file > /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/bin/$file ; \ chmod +x /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/bin/$file ; \ done cp -p config /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/etc/rpmlint compdir=`pkg-config --variable=completionsdir bash-completion 2>/dev/null` ; \ if [ "x$compdir" = "x" ] ; then \ mkdir -p /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/etc/bash_completion.d ; \ cp -p rpmlint.bash-completion /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/etc/bash_completion.d/rpmlint ; \ else \ mkdir -p /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch$compdir ; \ cp -p rpmlint.bash-completion /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch$compdir/rpmlint ; \ ln -sf rpmlint /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch$compdir/rpmdiff ; \ fi cp -p rpmdiff.1 rpmlint.1 /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/man/man1 + install -pm 644 /builddir/build/SOURCES/rpmlint.config /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/usr/share/rpmlint/config + rm -rf /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/etc/bash_completion.d/ + /usr/lib/rpm/find-debuginfo.sh -j64 --strict-build-id -m -i --build-id-seed 1.11-19.an8 --unique-debug-suffix -1.11-19.an8.noarch --unique-debug-src-base rpmlint-1.11-19.an8.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rpmlint-rpmlint-1.11 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/rpmlint-1.11-19.an8.noarch/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 '' 1 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.GI60jC + umask 022 + cd /builddir/build/BUILD + cd rpmlint-rpmlint-1.11 + make check PYTHON=/usr/libexec/platform-python PYTEST=pytest-3 ./test.sh Please ignore the possibly occurring output like this: .../Patch*.patch: No such file or directory . ---------------------------------------------------------------------- Ran 1 test in 0.041s OK . ---------------------------------------------------------------------- Ran 1 test in 0.014s OK ... ---------------------------------------------------------------------- Ran 3 tests in 0.000s OK . ---------------------------------------------------------------------- Ran 1 test in 0.026s OK . ---------------------------------------------------------------------- Ran 1 test in 0.030s OK . ---------------------------------------------------------------------- Ran 1 test in 0.030s OK Check that rpmlint executes with no unexpected errors ...in default locale Traceback (most recent call last): File "./rpmlint", line 379, in main() File "./rpmlint", line 169, in main runChecks(pkg) File "./rpmlint", line 227, in runChecks check.check(pkg) File "/builddir/build/BUILD/rpmlint-rpmlint-1.11/AbstractCheck.py", line 51, in check return self.check_binary(pkg) File "/builddir/build/BUILD/rpmlint-rpmlint-1.11/PostCheck.py", line 103, in check_binary tag[2], prereq) File "/builddir/build/BUILD/rpmlint-rpmlint-1.11/PostCheck.py", line 170, in check_aux if incorrect_shell_script(prog, script): File "/builddir/build/BUILD/rpmlint-rpmlint-1.11/PostCheck.py", line 63, in incorrect_shell_script return check_syntax_script(prog, '-n', shellscript) File "/builddir/build/BUILD/rpmlint-rpmlint-1.11/PostCheck.py", line 77, in check_syntax_script tmpfile.write(script) TypeError: a bytes-like object is required, not 'str' make: *** [Makefile:59: check] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.GI60jC (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.GI60jC (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rpmlint.spec