Description of problem: I would like to request that %ghc_archs %{ix86} x86_64 ppc alpha sparcv9 ppc64 please be added to redhat-rpm-config's macro file. This will make it much easier for new secondary archs bootstrapping haskell ghc packages for the first time. Recently both sparcv7 and ppc64 have been bootstrapped for fedora 15 and required bumping of over 100 packages in order to support the new secondary archs and I expect there will be more in the future like ARM. I *think* %ghc_archs in redhat-rpm-config would work for Koji builds of ghc-* packages right?
I'm not sure it is the best idea. Mainly from the maintainability POV. You need then to file bugs against redhat-rpm-config every time you need to add/remove arches. There is ghc-rpm-macros package which seems the best place where this macro should be introduced. Note that this package needs to be updated in the environment koji is ran because koji needs it in the time it parses src.rpm. Rel-eng ticket will likely be needed to accomplish it.
Ok good idea then I will ask rel-eng if they will add ghc-rpm-macros to the koji environmment.
(In reply to comment #1) > You need then to file bugs against redhat-rpm-config every time you need to add/remove arches. Well I don't think this is a big problem - new archs are only added very occasionally (say max once or twice a year) and anyway I would be happy to help maintain such a macro in redhat-rpm-config. > There is ghc-rpm-macros package which seems the best place where this > macro should be introduced. Note that this package needs to be updated in the > environment koji is ran because koji needs it in the time it parses src.rpm. Adding ghc-rpm-macros to @buildsys-build seems like overkill and anyway releng are basically vetoing this. I talked to dgilmore and he thinks the macro should really go into rpm itself, though not sure if upstream would accept the macro. Personally I still believe it would be easier for it to live in redhat-rpm-config for Fedora.
http://koji.fedoraproject.org/koji/buildinfo?buildID=245437
Thanks to Dennis for adding %ghc_arches: I think it should be %ghc_archs. Also macros.ghc is owned by ghc-rpm-macros, so I suggest to put all the new archs macros into "macros.archs" say instead.
Okay ghc_arches is available in rawhide and 9.1.0-8 has been pushed to updates-testing for F14 and F15.
Hmm I would like to add %ghc_arches to EPEL as well but that can't be done in redhat-rpm-config I suppose...
I meant for EPEL-6.