D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/nagios-check_xendomains-20070528-17.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.HKiyrU + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cp /home/iurt/rpmbuild/SOURCES/check_xendomains.py check_xendomains.py + echo 'Patch #0 (check_xendomains-fix-shellbang.patch):' Patch #0 (check_xendomains-fix-shellbang.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file check_xendomains.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.mLv1KW + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.gUXj5T + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64 + '[' 1 -eq 1 ']' + install -d -m 755 /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64/usr/share/nagios/plugins + install -m 755 check_xendomains.py /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64/usr/share/nagios/plugins/check_xendomains + install -d -m 755 /home/iurt/rpmbuild/BUILDROOT/nagios-check_xendomains-20070528-17.mga8.x86_64/etc/nagios/plugins.d + cat + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-strip-shared /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs *** ERROR: ambiguous python shebang in /usr/share/nagios/plugins/check_xendomains: #!/usr/bin/python. Change it to python3 (or python2) explicitly. error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.gUXj5T (%install) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.gUXj5T (%install) I: [iurt_root_command] ERROR: chroot