FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

LinkBack Thread Tools
Old 04-16-2008, 04:17 PM
Jeroen van Meeuwen
Default Mock / Koji issues on EL5

Hello there,

I was about to send this mail about all kinds of errors I had not seen
before, until I somehow ended up screwing around in the code and fixed
like 6 things that I did wrong. Still one minor thing though:

On a CentOS 5, up-to-date box, I am running mock-0.9.7-1.el5, and
koji-1.1-2.el5. I could not update to koji-1.2.3-1.el5 because it has a
missing dependency on createrepo >= 0.4.11.

When using the following command (or submitting the build through koji):

mock --configdir=/etc/mock/koji -v -r dist-el5-build-3-3 rebuild

The macros koji writes out in it's mock configuration file is a string,
while mock expects a dict. I think this change made it in
koji-1.2.3-1.el5, but for now...

I changed line 62 in mock/backend.py from:

self.macros = config['macros']


self.macros = {}

if isinstance(config['macros'], str):
_macros = config['macros'].split('
while len(_macros) > 0:
(key, value) = _macros.pop(0).split(' ')
self.macros[key] = value
self.macros = config['macros']

I hope this helps others on el5 running into this problem.

Kind regards,

Jeroen van Meeuwen

Fedora-buildsys-list mailing list

Thread Tools

All times are GMT. The time now is 07:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org