Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 237189 - libpri-1.4.0-3.fc7.src.rpm fails to build as non-root, pathissue on restorecon
libpri-1.4.0-3.fc7.src.rpm fails to build as non-root, pathissue on restorecon
Product: Fedora
Classification: Fedora
Component: libpri (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeffrey C. Ollie
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-04-19 18:00 EDT by R P Herrold
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-19 00:35:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description R P Herrold 2007-04-19 18:00:52 EDT
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


please either munge the build path, or add the /sbin/ to restorecon in the .spec
Comment 1 R P Herrold 2007-04-19 18:01:33 EDT
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)

Comment 2 R P Herrold 2007-04-19 18:04:32 EDT
workaround proof of issue:

$ cat ./wrap-libpri.sh
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
Comment 3 Jeffrey C. Ollie 2007-11-02 23:25:06 EDT
I am unable to reproduce the problem with the current version:


Please give this version a try.

Note You need to log in before you can comment on or make changes to this bug.