D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/erlang-rpm-macros-0.3.6-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3nKXDT + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + test -d /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FewSPV + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + rm -rf erlang-rpm-macros-0.3.6 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/erlang-rpm-macros-0.3.6.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd erlang-rpm-macros-0.3.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.t1xj9F + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + cd erlang-rpm-macros-0.3.6 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.BOOokJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + mkdir /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT + cd erlang-rpm-macros-0.3.6 + '[' 1 -eq 1 ']' + install -d /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT/usr/lib/rpm/fileattrs + install -d /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT/usr/lib/rpm/macros.d + install -p -m 0755 erlang-find-provides.py /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT/usr/lib/rpm/erlang-find-provides + install -p -m 0755 erlang-find-requires.py /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT/usr/lib/rpm/erlang-find-requires + install -p -m 0644 macros.erlang /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT/usr/lib/rpm/macros.d/ + install -p -m 0644 erlang.attr /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/BUILDROOT/usr/lib/rpm/fileattrs/ + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /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/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j48 + /usr/lib/rpm/redhat/brp-python-hardlink sh: line 4: [: -j8: integer expression expected Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.HmIMoV + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build + cd erlang-rpm-macros-0.3.6 + '[' 1 -eq 1 ']' + make check test.erl:3:2: Warning: export_all flag enabled - all functions will be exported % 3| -compile([export_all]). % | ^ /usr/bin/python3 ./testing.py Traceback (most recent call last): File "/home/pterjan/rpmbuild/BUILD/erlang-rpm-macros-0.3.6-build/erlang-rpm-macros-0.3.6/./testing.py", line 49, in ds = dict(map(lambda x: x[0].split(" ")[1::2], h.dsFromHeader('providename'))) ^^^^^^^^^^^^^^ AttributeError: 'rpm.hdr' object has no attribute 'dsFromHeader' make: *** [Makefile:6: test] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.HmIMoV (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.HmIMoV (%check) I: [iurt_root_command] ERROR: chroot