D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/pdf-stapler-1.0.0-0.rc1.5.mga9.src.rpm Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gBtE7Q + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf stapler-1.0.0rc1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/stapler-1.0.0rc1.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd stapler-1.0.0rc1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.TkBPdO + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd stapler-1.0.0rc1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /usr/lib/python3.10/site-packages/setuptools/dist.py:530: UserWarning: Normalizing '1.0.0-rc1' to '1.0.0rc1' warnings.warn(tmpl.format(**locals())) running build running build_py creating build creating build/lib creating build/lib/staplelib copying staplelib/stapler.py -> build/lib/staplelib copying staplelib/iohelper.py -> build/lib/staplelib copying staplelib/tests.py -> build/lib/staplelib copying staplelib/commands.py -> build/lib/staplelib copying staplelib/__init__.py -> build/lib/staplelib running egg_info creating stapler.egg-info writing stapler.egg-info/PKG-INFO writing dependency_links to stapler.egg-info/dependency_links.txt writing entry points to stapler.egg-info/entry_points.txt writing requirements to stapler.egg-info/requires.txt writing top-level names to stapler.egg-info/top_level.txt writing manifest file 'stapler.egg-info/SOURCES.txt' reading manifest file 'stapler.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'stapler.egg-info/SOURCES.txt' /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'staplelib.testfiles' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'staplelib.testfiles' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'staplelib.testfiles' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'staplelib.testfiles' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) creating build/lib/staplelib/testfiles copying staplelib/testfiles/1page.pdf -> build/lib/staplelib/testfiles copying staplelib/testfiles/5page.pdf -> build/lib/staplelib/testfiles + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.28tM7p + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch ++ dirname /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch + cd stapler-1.0.0rc1 + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py install -O1 --skip-build --root /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch /usr/lib/python3.10/site-packages/setuptools/dist.py:530: UserWarning: Normalizing '1.0.0-rc1' to '1.0.0rc1' warnings.warn(tmpl.format(**locals())) running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr creating /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib creating /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10 creating /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages creating /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib creating /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/testfiles copying build/lib/staplelib/testfiles/1page.pdf -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/testfiles copying build/lib/staplelib/testfiles/5page.pdf -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/testfiles copying build/lib/staplelib/stapler.py -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib copying build/lib/staplelib/iohelper.py -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib copying build/lib/staplelib/tests.py -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib copying build/lib/staplelib/commands.py -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib copying build/lib/staplelib/__init__.py -> /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib byte-compiling /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/stapler.py to stapler.cpython-310.pyc byte-compiling /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/iohelper.py to iohelper.cpython-310.pyc byte-compiling /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/tests.py to tests.cpython-310.pyc byte-compiling /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/commands.py to commands.cpython-310.pyc byte-compiling /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/staplelib/__init__.py to __init__.cpython-310.pyc writing byte-compilation script '/tmp/tmpy8dwfp52.py' /usr/bin/python3 /tmp/tmpy8dwfp52.py removing /tmp/tmpy8dwfp52.py running install_egg_info running egg_info writing stapler.egg-info/PKG-INFO writing dependency_links to stapler.egg-info/dependency_links.txt writing entry points to stapler.egg-info/entry_points.txt writing requirements to stapler.egg-info/requires.txt writing top-level names to stapler.egg-info/top_level.txt reading manifest file 'stapler.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'stapler.egg-info/SOURCES.txt' Copying stapler.egg-info to /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10/site-packages/stapler-1.0.0rc1-py3.10.egg-info running install_scripts Installing pdf-stapler script to /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/bin Installing stapler script to /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/bin + rm -rfv /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 1.0.0-0.rc1.5.mga9 --unique-debug-suffix -1.0.0-0.rc1.5.mga9.noarch --unique-debug-src-base pdf-stapler-1.0.0-0.rc1.5.mga9.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1 + /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/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /home/pterjan/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.rc1.5.mga9.noarch/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.fPM9TJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd stapler-1.0.0rc1 + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py test /usr/lib/python3.10/site-packages/setuptools/dist.py:530: UserWarning: Normalizing '1.0.0-rc1' to '1.0.0rc1' warnings.warn(tmpl.format(**locals())) running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. running egg_info writing stapler.egg-info/PKG-INFO writing dependency_links to stapler.egg-info/dependency_links.txt writing entry points to stapler.egg-info/entry_points.txt writing requirements to stapler.egg-info/requires.txt writing top-level names to stapler.egg-info/top_level.txt reading manifest file 'stapler.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'stapler.egg-info/SOURCES.txt' running build_ext test_cat (staplelib.tests.TestStapler) Make sure files are properly concatenated. ... ok test_del_one_page (staplelib.tests.TestStapler) Test del command for inverse select of one page. ... ok test_del_range (staplelib.tests.TestStapler) Test del command for inverse select multiple pages. ... ok test_output_file_already_exists (staplelib.tests.TestStapler) Test zip. ... ok test_sel_one_page (staplelib.tests.TestStapler) Test select of a one page from a PDF file. ... ok test_sel_range (staplelib.tests.TestStapler) Test select of more pages from a PDF file. ... ok test_split (staplelib.tests.TestStapler) Make sure a file is properly split into pages. ... Traceback (most recent call last): File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/../stapler", line 15, in stapler.main() File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/stapler.py", line 116, in main modes[mode](args) File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/commands.py", line 113, in split iohelper.write_pdf(output, staplelib.OPTIONS.destdir + File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/iohelper.py", line 59, in write_pdf pdf.write(outputStream) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 475, in write self._sweepIndirectReferences(externalReferenceMap, self._root) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 566, in _sweepIndirectReferences self._sweepIndirectReferences(externMap, realdata) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 566, in _sweepIndirectReferences self._sweepIndirectReferences(externMap, realdata) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 551, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, data[i]) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 566, in _sweepIndirectReferences self._sweepIndirectReferences(externMap, realdata) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 583, in _sweepIndirectReferences newobj = self._sweepIndirectReferences(externMap, newobj) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 569, in _sweepIndirectReferences if data.pdf.stream.closed: AttributeError: 'PdfFileWriter' object has no attribute 'stream' ERROR test_zip (staplelib.tests.TestStapler) Test zip. ... ok ====================================================================== ERROR: test_split (staplelib.tests.TestStapler) Make sure a file is properly split into pages. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/tests.py", line 86, in test_split check_call([STAPLER, 'split', FIVEPAGE_PDF]) File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/../stapler', 'split', '/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/testfiles/5page.pdf']' returned non-zero exit status 1. ---------------------------------------------------------------------- Ran 8 tests in 0.412s FAILED (errors=1) Test failed: error: Test failed: error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.fPM9TJ (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.fPM9TJ (%check) I: [iurt_root_command] ERROR: chroot