D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/baz/rpmbuild/SRPMS/klog-2.4.2-0.RC1.1.mga.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.sDkxB9 Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.Bd9RRP + umask 022 + cd /home/baz/rpmbuild/BUILD/klog-2.4.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD/klog-2.4.2-build + rm -rf klog-2.4.2-RC1 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/klog-2.4.2-RC1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd klog-2.4.2-RC1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/baz/rpmbuild/SOURCES/klog-hamlib-4.6.0.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i 's:mw.showNotWar()::' main.cpp sed: can't read main.cpp: No such file or directory error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.Bd9RRP (%prep) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.Bd9RRP (%prep) I: [iurt_root_command] ERROR: chroot