On Mon, Nov 12, 2007 at 08:02:13PM -0800, Jeff Sheltren wrote:
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/
Ah. I forgot that I had made a 'test' release of mock and put it up
there. Can you try the latest 0.8.7 release?
I dont always keep this git repo up-to-date unless I'm actually posting
something for review on the mailing list. I think our mirror scripts got
stuck and this hasnt been resynced in a week or two.
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
These are messages from yum...
Can you check /var/lib/mock/fedora-7-i386/root/etc/yum.conf to see that
it looks 'sane'?
Do you have direct internet access?
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
This is all a yum traceback. Your yum is having some problems...
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
Can you please try 0.8.7, which is the latest released version? Take the
srpm and use mock on a F7/F8 machine to build an RPM for RHEL5 using the
shipped config file. I'm not sure if I released 0.8.1 to fedora or
not...
I have two build machines running FC6, and I have tested mock there and
it works ok. There is one known 'issue' that appears to me to be
cosmetic (traceback on exit) but otherwise it functions ok.
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?
??
%files
...
%config(noreplace) %{_sysconfdir}/%{name}/*.cfg
%config(noreplace) %{_sysconfdir}/%{name}/*.ini
This hasnt changed, so they should all still be config(noreplace).
So, before I make a release, I run a release test. It is
doc/releasetest.sh in the git repo. It basically rebuilds mock using
each config shipped with mock. This ensures that I ship only working
config files and that mock works with each config.
--
Michael