D: [iurt_root_command] chroot warning: %patchN is deprecated (10 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/gpm-1.20.7-15.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JAvjmV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf gpm-1.20.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/gpm-1.20.7.tar.lzma + STATUS=0 + '[' 0 -ne 0 ']' + cd gpm-1.20.7 + rm -rf /home/pterjan/rpmbuild/BUILD/gpm-1.20.7-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/gpm-1.20.7-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . ++ find . -type d -name CVS ++ find . -type f -name '.cvs*' ++ find . -type f -name '.#*' + echo 'Patch #1 (gpm-1.20.1-multilib.patch):' Patch #1 (gpm-1.20.1-multilib.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .multilib --fuzz=0 patching file doc/Makefile.in Hunk #1 succeeded at 101 (offset 4 lines). Hunk #2 succeeded at 130 (offset -1 lines). patching file contrib/Makefile.in + echo 'Patch #2 (gpm-1.20.1-lib-silent.patch):' Patch #2 (gpm-1.20.1-lib-silent.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .lib-silent --fuzz=0 patching file src/lib/report-lib.c + echo 'Patch #4 (gpm-1.20.5-close-fds.patch):' Patch #4 (gpm-1.20.5-close-fds.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .close-fds --fuzz=0 patching file src/daemon/startup.c + echo 'Patch #5 (gpm-1.20.7-weak-wgetch.patch):' Patch #5 (gpm-1.20.7-weak-wgetch.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .weak-wgetch --fuzz=0 patching file src/lib/libcurses.c patching file configure.ac.footer Hunk #1 succeeded at 129 (offset 14 lines). + echo 'Patch #10 (gpm-1.20.7-sysmacros.patch):' Patch #10 (gpm-1.20.7-sysmacros.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/daemon/open_console.c + echo 'Patch #11 (gpm-1.20.7-sigemptyset.patch):' Patch #11 (gpm-1.20.7-sigemptyset.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/prog/gpm-root.y + echo 'Patch #50 (gpm-1.20.5-nodebug.patch):' Patch #50 (gpm-1.20.5-nodebug.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .nodebug --fuzz=0 patching file src/lib/report-lib.c + echo 'Patch #51 (gpm-1.20.0-docfix.patch):' Patch #51 (gpm-1.20.0-docfix.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .docfix --fuzz=0 patching file doc/doc.gpm.in Hunk #1 succeeded at 548 (offset -3 lines). Hunk #2 succeeded at 727 (offset -4 lines). Hunk #3 succeeded at 1860 (offset -3 lines). patching file src/mice.c Hunk #1 succeeded at 2452 (offset 298 lines). + echo 'Patch #52 (gpm-1.20.7-do_not_build_it_twice.diff):' Patch #52 (gpm-1.20.7-do_not_build_it_twice.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .do_not_build_it_twice --fuzz=0 patching file contrib/Makefile.in patching file doc/Makefile.in patching file Makefile.in patching file src/Makefile.in + echo 'Patch #53 (gpm-1.20.5-format_not_a_string_literal_and_no_format_arguments.diff):' Patch #53 (gpm-1.20.5-format_not_a_string_literal_and_no_format_arguments.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .format_not_a_string_literal_and_no_format_arguments --fuzz=0 patching file ./src/lib/report-lib.c + cp -p /usr/lib/rpm/mkinstalldirs . cp: cannot stat '/usr/lib/rpm/mkinstalldirs': No such file or directory error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JAvjmV (%prep) RPM build warnings: %patchN is deprecated (10 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JAvjmV (%prep) I: [iurt_root_command] ERROR: chroot