On Tue, 10 Jan 2012, Pavel Lisy wrote:

I'm trying make rpm of qmail and I've ended in situation where mock
can't create group/users during "mock rebuild".

Qmail compilation requires make it under specific user.

How can I solve it? Can I force user creation in mock somehow?

Look at some other packages on how to add/remove users and groups in the
%post section of the spec file.

Remember that only the actual rpm install itself has root permissions to
create files/groups/users other then the user it runs as. Building rpms
should not require root (though running mock rebuild requires wrapping
it in sudo)

Paul
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to