On 08/22/2011 04:37 PM, Jonathan Underwood wrote:
Hi,
I am seeing a package build fail in EPEL 5 that builds fine in EPEL6
and Fedora. Specifically there seems to be a problem writing to /sbin
in the build root:
Installing Shorewall Version 4.4.22.3
install: cannot create regular file `/sbin/shorewall': Permission denied
ERROR: Failed to install -T -o root -g root -m 0755 shorewall /sbin/shorewall
See
http://koji.fedoraproject.org/koji/getfile?taskID=3291843&name=build.log
Any ideas?
I'm surprised this builds at all in mock: it's trying to give away
ownership of the file to root, which is a privileged operation. If you
patch it not to try to do "-o root -g root" then it should work OK, and
the resulting files will be owned by root anyway.
Paul.