DevHeads.net

findbugs-contrib building on i686 builders despite ExcludeArch

Hi,

Due to a dependency on Eclipse, findbugs-contrib can no longer be
built on non-64-bit architectures. According to
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures:" title="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures:">https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture...</a>

So I added ExcludeArch to the findbugs-contrib spec:

<a href="https://src.fedoraproject.org/rpms/findbugs-contrib/c/35db66939b8d262a6c049421e666d380b920c8a4?branch=master" title="https://src.fedoraproject.org/rpms/findbugs-contrib/c/35db66939b8d262a6c049421e666d380b920c8a4?branch=master">https://src.fedoraproject.org/rpms/findbugs-contrib/c/35db66939b8d262a6c...</a>

which I based on a similar change for eclipse itself:

<a href="https://src.fedoraproject.org/rpms/eclipse/c/1b7ea00088e02a126cf0f47777031f91659a32d4?branch=master" title="https://src.fedoraproject.org/rpms/eclipse/c/1b7ea00088e02a126cf0f47777031f91659a32d4?branch=master">https://src.fedoraproject.org/rpms/eclipse/c/1b7ea00088e02a126cf0f477770...</a>

For some reason though, the findbugs-contrib build earlier today for
the F31 mass rebuild was done on an i686 builder:

<a href="https://koji.fedoraproject.org/koji/buildinfo?buildID=1323580" title="https://koji.fedoraproject.org/koji/buildinfo?buildID=1323580">https://koji.fedoraproject.org/koji/buildinfo?buildID=1323580</a>
<a href="https://koji.fedoraproject.org/koji/taskinfo?taskID=36487003" title="https://koji.fedoraproject.org/koji/taskinfo?taskID=36487003">https://koji.fedoraproject.org/koji/taskinfo?taskID=36487003</a>

and failed with an error:

BUILDSTDERR: error: Architecture is excluded: i386

The same thing happened with a recent Koschei build:

<a href="https://koji.fedoraproject.org/koji/taskinfo?taskID=36306707" title="https://koji.fedoraproject.org/koji/taskinfo?taskID=36306707">https://koji.fedoraproject.org/koji/taskinfo?taskID=36306707</a>

Have I gone about this the wrong way?

Rich

Comments

Re: findbugs-contrib building on i686 builders despite ExcludeAr

By Jason L Tibbitts III at 07/25/2019 - 17:07

RF> According to
RF> <a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures:" title="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures:">https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture...</a>

Sure, but also just a small bit further down the document is
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unported_dependencies" title="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unported_dependencies">https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_...</a>
which tells you what to do if you have a noarch package that has
dependencies which are not present on all architectures.

This involves some rather odd magic in koji, and so what is in the
guidelines is the best information that we've been able to extract from
releng and the koji source code.

Can you try the ExclusiveArch: method shown in the example, keeping in
mind that you must explicitly list "noarch" at the end? Of course, a
successful build isn't a guarantee because the build host you get may be
completely random. What we'd like to know is if someone finds a failure
using the recommended method (which would imply that we need to get
something fixed or find another way to accomplish this).

- J<

Re: findbugs-contrib building on i686 builders despite ExcludeAr

By =?ISO-8859-1?Q?... at 07/26/2019 - 04:47

Dne 25. 07. 19 v 23:07 Jason L Tibbitts III napsal(a):

These tickets might be of interest:

<a href="https://pagure.io/releng/issue/7671" title="https://pagure.io/releng/issue/7671">https://pagure.io/releng/issue/7671</a>

<a href="https://pagure.io/koji/issue/789" title="https://pagure.io/koji/issue/789">https://pagure.io/koji/issue/789</a>

Vít

Re: findbugs-contrib building on i686 builders despite ExcludeAr

By Richard Fearn at 08/17/2019 - 05:30

Thanks, Jason and Vit, for your replies. Unfortunately it looks like
many of findbugs-contrib's Java dependencies are being retired at the
moment, so I need to decide what to do about that first...

Rich

Re: findbugs-contrib building on i686 builders despite ExcludeAr

By Fabio Valentini at 08/17/2019 - 05:53

Let me suggest joining the Java SIG (if you haven't already), taking over
the orphaned / retired packages your own packages depend on, and adding
them to the set of packages maintained by the SIG.

That's probably the most productive way forward, provided you even want to
continue maintaining findbugs-contrib.

Fabio