On Wed, 2010-07-07 at 09:39 -0400, seth vidal wrote:
Sorry, my bad, you're correct. rpmbuild does re-evaluate it, perhaps yum does not when koji tries to populate the buildroot?
I don't think yum can. It doesn't have any expansion capability for rpm macros.
Just did some tests on this:
In a spec file I added: BuildRequires: foobar%{?_isa}
I rebuilt the srpm and I get:
rpm -qpR file.src.rpm foobar(x86-32) rpmlib(CompressedFileNames) <= 3.0.4-1
I opened the rpm using the rpm-python interface (what yum uses internally): hdr['requires'] ['foobar(x86-32)', 'rpmlib(CompressedFileNames)']
So are you suggesting that yum should look for foobar(somearchspec) and reinterpret those based on what the local system is?
-sv