How to build noarch package on only certain architectures?
Dennis Gilmore
dennis at ausil.us
Wed May 18 13:47:55 UTC 2011
On Tuesday, May 17, 2011 10:43:47 AM Richard W.M. Jones wrote:
> On Tue, May 17, 2011 at 09:33:51AM -0400, Josh Boyer wrote:
> > On Tue, May 17, 2011 at 9:28 AM, Kevin Fenzi <kevin at scrye.com> wrote:
> > >> Is there some other way to add a noarch package that doesn't build on
> > >> some architectures?
> > >
> > > Sadly this is a nasty situation. (I'm in the same boat with munin).
> > >
> > > There are 2 answers, neither ideal (I'd love to hear better):
> > >
> > > 1. Make your package archfull. Add ExcludeArch/ExclusiveArch.
> > >
> > > 2. Leave it noarch and ExcludeArch: ppc64, then try and keep rebuilding
> > > it until you hit a non ppc builder.
> >
> > 3. See if you can modify the package to do runtime determinism of
> > whether the dependency is there, and only use that functionality if
> > it's present. Personally I think that if that can't be done, then
> > option 1 is the right way to go.
>
> 4. Post a patch to fix RPM.
>
> This is a bug or shortcoming in RPM. It affected some mingw32
> packages as well IIRC -- they are noarch and can be built anywhere,
> but we wanted to %check them using wine which only runs on i386.
>
> Rich.
make it archeful with a noarch subpackage that has the noarch bits. if you do
it ExclusiveArch for the base arch you want it built on it would work as you
want
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110518/d603cc85/attachment.bin
More information about the devel
mailing list