On Thu, Sep 29, 2011 at 11:11 AM, Ludwig Nussel
Darin Perusich wrote:
I'm adding a group during the %prep stage of a package and the groupadd fails with the error "Cannot lock group file: already locked." when a building on OBS. This is something special I need to do to create the group during %prep?
You simply don't do that. rt3 required patching the Makefile to disable some chown calls IIRC. You may need that too. If you want to package rt you should better base your spec file on the Fedora one (rt3) rather than starting from scratch anyways.
I'll take a look at the Fedora patches to see how they circumvent this. I'm not basing my package off that spec because I want RT installed under a central location /opt/rt4 which makes it much easier to maintain. I have a hard time believing that creating a user/group during the build process is something you "simply don't do". Having maintained the mailman package a long time ago for another build project, on Solaris, I needed to create the user/group to build and after reviewing the OpenSUSE mailman.spec in OBS I see that it's doing just that during %build. I'm not trying to be difficult but rather pointing out that SuSE is doing this very thing. Thanks! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org