Bug 707486 - request to add %ghc_archs macro to fedora redhat macros
Summary: request to add %ghc_archs macro to fedora redhat macros
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-25 08:45 UTC by Jens Petersen
Modified: 2011-09-27 09:52 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-22 04:05:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2011-05-25 08:45:37 UTC
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?

Comment 1 Jindrich Novy 2011-05-25 13:01:44 UTC
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.

Comment 2 Jens Petersen 2011-05-26 01:12:20 UTC
Ok good idea then I will ask rel-eng if they will add ghc-rpm-macros
to the koji environmment.

Comment 3 Jens Petersen 2011-05-27 03:09:58 UTC
(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.

Comment 5 Jens Petersen 2011-05-28 07:40:17 UTC
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.

Comment 6 Jens Petersen 2011-06-22 04:05:14 UTC
Okay ghc_arches is available in rawhide and 9.1.0-8 has been pushed
to updates-testing for F14 and F15.

Comment 7 Jens Petersen 2011-09-27 09:51:50 UTC
Hmm I would like to add %ghc_arches to EPEL as well but that
can't be done in redhat-rpm-config I suppose...

Comment 8 Jens Petersen 2011-09-27 09:52:10 UTC
I meant for EPEL-6.


Note You need to log in before you can comment on or make changes to this bug.