Mock problem in EPEL 5?

Jonathan Underwood jonathan.underwood at
Wed Aug 24 14:06:59 UTC 2011

Oh yes, you're right. Thanks. Feeling dumb now.

sent from my phone.
On 24 Aug 2011 14:51, "Paul Howarth" <paul at> wrote:
> On 08/22/2011 05:12 PM, Jonathan Underwood wrote:
>> On 22 August 2011 16:59, Paul Howarth<paul at> wrote:
>>> I'm surprised this builds at all in mock: it's trying to give away
>>> 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
>>> will be owned by root anyway.
>> Looking a little closer at the install script, it actually performs a
>> check to see if it is running as root, and if not doesn't set those
>> owner/group permissions - in other branches, this check works
>> correctly. So the question is, why does mock in EPEL 5 run as root,
>> but not in EPEL6 and Fedora? This seems like a bit of a security
>> issue!
> It's not. Your spec file is missing a BuildRoot: tag, which is still
> needed for EPEL-5. Without it, $RPM_BUILD_ROOT is not set and PREFIX
> (which upstream has renamed to DESTDIR) is thus empty, and the check for
> root never happens.
> Paul.
> _______________________________________________
> epel-devel-list mailing list
> epel-devel-list at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the epel-devel-list mailing list