D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/iurt/rpmbuild/SRPMS/@2188632:mariadb-11.8.2-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.xXKR5e Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.brnmBv + umask 022 + cd /home/iurt/rpmbuild/BUILD/mariadb-11.8.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD/mariadb-11.8.2-build + rm -rf mariadb-11.8.2 + /usr/lib/rpm/rpmuncompress -x /home/iurt/rpmbuild/SOURCES/mariadb-11.8.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd mariadb-11.8.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/hg init -q . + /usr/bin/hg add -q . + /usr/bin/hg commit -q --user 'rpm-build ' -m 'mariadb-11.8.2 base' + /usr/bin/hg import - -q -m 0001-use-find_package-to-find-libfmt.patch --user 'rpm-build ' + /usr/lib/rpm/rpmuncompress /home/iurt/rpmbuild/SOURCES/0001-use-find_package-to-find-libfmt.patch patching file cmake/libfmt.cmake Hunk #2 FAILED at 24 1 out of 2 hunks FAILED -- saving rejects to file cmake/libfmt.cmake.rej abort: patch failed to apply error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.brnmBv (%prep) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.brnmBv (%prep) I: [iurt_root_command] ERROR: chroot