D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/baz/rpmbuild/SRPMS/leptonica-1.85.0-1.mga.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.QPfeTc + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + test -d /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/rm -rf /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/mkdir -p /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/mkdir -p /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.zNyrlS + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + rm -rf leptonica-1.85.0 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/leptonica-1.85.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd leptonica-1.85.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 1 out of 1 hunk FAILED -- saving rejects to file prog/CMakeLists.txt.rej 1 out of 3 hunks FAILED -- saving rejects to file src/CMakeLists.txt.rej error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.zNyrlS (%prep) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.zNyrlS (%prep) I: [iurt_root_command] ERROR: chroot