Koji build failure: noarch vs. arch?

Mamoru TASAKA mtasaka at fedoraproject.org
Fri Feb 13 15:45:50 UTC 2015


Jerry James wrote on 02/14/2015 12:23 AM:
> On Thu, Feb 12, 2015 at 9:28 AM, gil <puntogil at libero.it> wrote:
>> as i wrote in my e-mail titled "jni libraries fails in koji"
>> i have the same problem
>> i haven't done any changes in koji client config
>
> I tried the csdp build again this morning to see if perhaps the
> problem is nondeterministic.  It failed again:
>
> http://koji.fedoraproject.org/koji/taskinfo?taskID=8921616
>
> Does anybody have any idea at all why some archful packages are being
> treated as if they were noarch?  It doesn't affect mock builds, just
> koji builds.
>

Note that this fails on "buildSRPMFromSCM", i.e. when creating srpm,
and not on "buildArch" (armv7hl, i686, x86_64), where rpmbuild the newly
created srpm is executed.

So when using mock, usually srpm is already there on your local disc.
But on koji, first koji tries to "create srpm" from SCM (git repository),
and when creating srpm, koji uses:

/usr/bin/rpmbuild -bs --target noarch --nodeps foo.spec

i.e. creating srpm is always done as noarch. Then after creating srpm,
arch-dependent (sometimes independent) rpmbuild foo.src.rpm is executed.

Regards,
Mamoru


More information about the devel mailing list