mock 1.0.5 failure

Todd Zullinger tmz at pobox.com
Sat Mar 6 17:11:57 UTC 2010


Jeroen van Meeuwen wrote:
> The builds I'm talking about are executed through Koji; The only thing I
> can find is that /etc/mock/site-defaults.cfg has:
>
> # config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s
> -d %(home)s -n %(user)s' # Fedora/RedHat
>
> whereas /etc/mock/site-defaults.cfg.rpmnew has:
>
> # config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s
> -d %(home)s -N %(user)s' # Fedora/RedHat

As an aside, the comment "Fedora/RedHat" is now untrue.  It should
read "Fedora/RedHat > 6" perhaps.

> So I suppose the default changed and is used for EL-5 builds.
>
> Given that my Fedora builders build EL-5 packages as well, how would I
> fix this? In Koji or in mock?

You can override the defaults from site-defaults in your epel config
files.  Adding:

config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s'

to epel-{4,5}*.cfg should make mock use the right command for EL
builds.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let us think the unthinkable, let us do the undoable. Let us prepare
to grapple with the ineffable itself, and see if we may not eff it
after all.
    -- Douglas Adams

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100306/66bdcaa7/attachment.bin 


More information about the buildsys mailing list