libpri-1.4.0-3.fc7.src.rpm fails to build as non-root, as the path to restorecon is not in an end user's path $ rpm -qf /sbin/restorecon policycoreutils --------------------------------- please either munge the build path, or add the /sbin/ to restorecon in the .spec file
scrape from the end of a build: install -m 755 libpri.so.1.0 /var/tmp/libpri-1.4.0-root-herrold/usr/lib if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" |grep -q "enabled"); then restorecon -v /var/tmp/libpri-1.4.0-root-herrold/usr/lib/libpri.so.1.0; fi /bin/sh: restorecon: command not found make: *** [install] Error 127 error: Bad exit status from /var/tmp/rpm-tmp.22370 (%install)
workaround proof of issue: $ cat ./wrap-libpri.sh #!/bin/sh # # export PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin rpmbuild --rebuild libpri-1.4.0-3.fc7.src.rpm # ... Wrote: /home/herrold/rpmbuild/RPMS/i386/libpri-1.4.0-3.i386.rpm Wrote: /home/herrold/rpmbuild/RPMS/i386/libpri-devel-1.4.0-3.i386.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.81303 + umask 022
I am unable to reproduce the problem with the current version: http://koji.fedoraproject.org/koji/buildinfo?buildID=23261 Please give this version a try.