D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/baz/rpmbuild/SRPMS/leptonica-1.86.0-1.mga.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.nzTkLN Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.1z26WQ + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.86.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD/leptonica-1.86.0-build + rm -rf leptonica-1.86.0 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/leptonica-1.86.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd leptonica-1.86.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/baz/rpmbuild/SOURCES/leptonica_cmake.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f 3 out of 3 hunks FAILED -- saving rejects to file CMakeLists.txt.rej 1 out of 1 hunk FAILED -- saving rejects to file prog/CMakeLists.txt.rej 3 out of 3 hunks FAILED -- saving rejects to file src/CMakeLists.txt.rej error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.1z26WQ (%prep) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.1z26WQ (%prep) I: [iurt_root_command] ERROR: chroot