+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/xkbset.spec            --define "debug_package %{nil}"            --undefine _annotated_build            --define "_missing_doc_files_terminate_build %{nil}"            --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d"            --define "_emacs_sitelispdir /usr/share/emacs/site-lisp"            --nocheck   ' mockbuild
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JnkgIa
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf xkbset-0.5
+ /usr/bin/gzip -dc /builddir/build/SOURCES/xkbset-0.5.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd xkbset-0.5
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (xkbset-0.5-install.patch):'
Patch #0 (xkbset-0.5-install.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .install --fuzz=0
patching file Makefile
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.T0dS3j
+ umask 022
+ cd /builddir/build/BUILD
+ cd xkbset-0.5
+ make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
perl create_getargs
make: perl: Command not found
make: *** [Makefile:32: getargs.c] Error 127
error: Bad exit status from /var/tmp/rpm-tmp.T0dS3j (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.T0dS3j (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
Terminated
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff