Lucian Langa wrote:
>
>> Sounds like you might have a cached mock root that has an old version
>> of rpm. Try removing /var/lib/mock/cache/fedora-rawhide-x86_64 and see
>> if that fixes it. If not we'll have to dig a little deeper.
> Wiping entire /var/lib/mock won't help either:
>
> mock -r fedora-devel-x86_64
> rebuild /root/rpmbuild/SRPMS/soundmodem-0.10-6.fc10.src.rpm
> INFO: mock.py version 0.9.13 starting...
> State Changed: init plugins
> State Changed: start
> INFO: Start(/root/rpmbuild/SRPMS/soundmodem-0.10-6.fc10.src.rpm)
> Config(fedora-rawhide-x86_64)
> State Changed: lock buildroot
> State Changed: clean
> State Changed: init
> State Changed: lock buildroot
> INFO: enabled root cache
> INFO: enabled yum cache
> State Changed: cleaning yum metadata
> INFO: enabled ccache
> State Changed: running yum
> State Changed: creating cache
> State Changed: setup
> ERROR: Exception(/root/rpmbuild/SRPMS/soundmodem-0.10-6.fc10.src.rpm)
> Config(fedora-rawhide-x86_64) 15 minutes 55 seconds
> INFO: Results and/or logs
> in: /var/lib/mock//fedora-rawhide-x86_64/result
> ERROR: Command failed:
> # /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/
> resolvedep  ccache  'gtk+-devel' 'automake' 'libxml-devel'
> 'audiofile-devel' 'autoconf' 'alsa-lib-devel' 'gettext-devel'
> rpmdb: Program version 4.5 doesn't match environment version 4.7
>
>
>>
>> I'm about to push mock-0.9.14-1 for f10 (it's on rawhide now)
>> and since that moves the cache directory from /var/lib/mock/cache
>> to /var/cache/mock you'll have to rebuild caches again anway.
> same thing with 0.9.14 cache gets rebuilt but after that same as before:
>
> mock -r fedora-devel-x86_64
> rebuild /root/rpmbuild/SRPMS/soundmodem-0.10-6.fc10.src.rpm
> INFO: mock.py version 0.9.14 starting...
> State Changed: init plugins
> State Changed: start
> INFO: Start(/root/rpmbuild/SRPMS/soundmodem-0.10-6.fc10.src.rpm)
> Config(fedora-rawhide-x86_64)
> State Changed: lock buildroot
> State Changed: clean
> State Changed: init
> State Changed: lock buildroot
> Mock Version: 0.9.14
> INFO: Mock Version: 0.9.14
> INFO: enabled root cache
> INFO: enabled yum cache
> State Changed: cleaning yum metadata
> INFO: enabled ccache
> State Changed: running yum
> State Changed: creating cache
> State Changed: setup
> ERROR: Exception(/root/rpmbuild/SRPMS/soundmodem-0.10-6.fc10.src.rpm)
> Config(fedora-rawhide-x86_64) 13 minutes 27 seconds
> INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
> ERROR: Command failed:
> # /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/
> resolvedep  ccache  'gtk+-devel' 'automake' 'libxml-devel'
> 'audiofile-devel' 'autoconf' 'alsa-lib-devel' 'gettext-devel'
> rpmdb: Program version 4.5 doesn't match environment version 4.7

How are you running mock?  As a user in the mock group?  As a user
that's not in the mock group?  As root?  Via sudo?

I ran mock as root on a virt box the other day, before any users were
set up and I had the same error as above.  Once I had a build user
setup and part of the mock group, all worked as expected (this was on
an F10 guest, running mock 0.9.13).

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am grateful that I am not as judgmental as all those censorious,
self-righteous people around me.

Attachment: pgpqtsHRWDkHA.pgp
Description: PGP signature

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to