D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-sane-2.9.1-4.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bn8Wo3 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf python-sane-2.9.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/python-sane-2.9.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd python-sane-2.9.1 + /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.Qmummy + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd python-sane-2.9.1 + '[' 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' running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 copying sane.py -> build/lib.linux-x86_64-cpython-310 running build_ext building '_sane' extension creating build/temp.linux-x86_64-cpython-310 gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -I/usr/include/python3.10 -c _sane.c -o build/temp.linux-x86_64-cpython-310/_sane.o gcc -shared -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables build/temp.linux-x86_64-cpython-310/_sane.o -L/usr/lib64 -lsane -lpython3.10 -o build/lib.linux-x86_64-cpython-310/_sane.cpython-310-x86_64-linux-gnu.so + make html -C doc make: Entering directory '/home/pterjan/rpmbuild/BUILD/python-sane-2.9.1/doc' sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v5.1.1 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 347, in eval_config_file exec(code, namespace) File "/home/pterjan/rpmbuild/BUILD/python-sane-2.9.1/doc/conf.py", line 71, in import sane ModuleNotFoundError: No module named 'sane' make: *** [Makefile:53: html] Error 2 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/python-sane-2.9.1/doc' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Qmummy (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Qmummy (%build) I: [iurt_root_command] ERROR: chroot