Mock 0.8.x available

Jeff Sheltren jeff at osuosl.org
Tue Nov 13 04:02:13 UTC 2007


On Oct 21, 2007, at 3:22 PM, Michael E Brown wrote:

> Mock users,
>
>    I have posted a new version of mock for review and comments.
>
> RPM download: http://linux.dell.com/libsmbios/download/mock/ 
> mock-0.8.1/
> Git repository: http://linux.dell.com/git/mock-v2.git

Hi Michael, I think this is great -- thanks a lot for all the work  
you've put into the update.

I've tried it out a bit on both EL5 and FC6 and I haven't been able to  
get it working at all.  On both systems, a mock -r <root> rebuild  
<srpm> gives me the following error:
Error: Command(/usr/bin/yum --installroot /var/lib/mock/fedora-7-i386/ 
root install buildsys-build) failed. See logs for output.

The yum error that shows up in root.log is:
2007-11-12 19:49:38,210 - trace_decorator.py:21:DEBUG: ENTER: do(('/ 
usr/bin/yum --installroot /var/lib/mock/fedora-7-i386/root install  
buildsys-build', None, 0, True, 0), {})
2007-11-12 19:49:38,211 - util.py:156:DEBUG: Run cmd: /usr/bin/yum -- 
installroot /var/lib/mock/fedora-7-i386/root install buildsys-build
2007-11-12 19:49:38,211 - util.py:163:DEBUG: Executing timeout(0): / 
usr/bin/yum --installroot /var/lib/mock/fedora-7-i386/root install  
buildsys-build
2007-11-12 19:49:38,569 - util.py:181:DEBUG: Loading "installonlyn"  
plugin
2007-11-12 19:49:38,569 - util.py:181:DEBUG: Setting up Install Process
2007-11-12 19:49:38,569 - util.py:181:DEBUG: Setting up repositories
2007-11-12 19:49:38,570 - util.py:181:DEBUG: No Repositories Available  
to Set Up
2007-11-12 19:49:38,570 - util.py:181:DEBUG: Reading repository  
metadata in from local files
2007-11-12 19:49:38,570 - util.py:181:DEBUG: Parsing package install  
arguments
2007-11-12 19:49:38,570 - util.py:181:DEBUG: Traceback (most recent  
call last):
2007-11-12 19:49:38,570 - util.py:181:DEBUG:   File "/usr/bin/yum",  
line 29, in ?
2007-11-12 19:49:38,571 - util.py:181:DEBUG:      
yummain.main(sys.argv[1:])
2007-11-12 19:49:38,571 - util.py:181:DEBUG:   File "/usr/share/yum- 
cli/yummain.py", line 94, in main
2007-11-12 19:49:38,571 - util.py:181:DEBUG:     result, resultmsgs =  
base.doCommands()
2007-11-12 19:49:38,571 - util.py:181:DEBUG:   File "/usr/share/yum- 
cli/cli.py", line 381, in doCommands
2007-11-12 19:49:38,571 - util.py:181:DEBUG:     return  
self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,  
self.extcmds)
2007-11-12 19:49:38,572 - util.py:181:DEBUG:   File "/usr/share/yum- 
cli/yumcommands.py", line 134, in doCommand
2007-11-12 19:49:38,572 - util.py:181:DEBUG:     return  
base.installPkgs(extcmds)
2007-11-12 19:49:38,572 - util.py:181:DEBUG:   File "/usr/share/yum- 
cli/cli.py", line 553, in installPkgs
2007-11-12 19:49:38,572 - util.py:181:DEBUG:     exactmatch, matched,  
unmatched = \
2007-11-12 19:49:38,572 - util.py:181:DEBUG:   File "/usr/lib/ 
python2.4/site-packages/yum/packageSack.py", line 360, in  
matchPackageNames
2007-11-12 19:49:38,573 - util.py:181:DEBUG:     unmatched =  
list(unmatched)
2007-11-12 19:49:38,573 - util.py:181:DEBUG: TypeError: iteration over  
non-sequence
2007-11-12 19:49:38,573 - trace_decorator.py:32:DEBUG: EXCEPTION:  
Command(/usr/bin/yum --installroot /var/lib/mock/fedora-7-i386/root  
install buildsys-build) failed. See logs for output.

I get the same error when using different mock roots.  Am I just doing  
something completely wrong?  For the fc6 box:
$ rpm -q yum
yum-3.0.6-1.fc6
$ rpm -q mock
mock-0.8.1-1.fc6

The mock configs are unchanged from those included in the RPM.  Which  
actually brings me to my 2nd "problem" in that the old mock rpm used  
to mark /etc/mock/*cfg as config(noreplace) IIRC, and now it only  
claims ownership of the directory.  The end result seems to be that  
the new package completely blows away all custom configs that were in / 
etc/mock.  Was this done deliberately due to config file changes?

Thanks,
Jeff




More information about the Fedora-buildsys-list mailing list