Re: Building rpms in mock

Zenon Panoussis <[email protected]>
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
>>> The main problem I'm facing is that neither authlib nor courier
>>> can be built in mock because they expect the user:group to exist.

>> This should be dealt with now. The new build will, if set up with 
>> a static uid:gid, will create it before building courier-authlib, 
>> and courier-authlib-config's scriptlet will recreate it when it 
>> gets installed.

> I actually tried just now to use mock, and found a mock-related 
> issue...

If you run `pwd` in a mock shell, you get '/buildroot/build/BUILD'.
Thus, rpmbuild has no access to /etc and cannot create users and
groups. I suspect that the only way to get around this is to not
require that the user:group actually exist, nor try to create them
in the build process, but to just go ahead and build with whatever
has been --define'ed, or with the default if nothing has been
--define'ed.

Z


-- 
Слава Україні!
Путин хуйло!


_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.