RWMJ wrote: In general terms (not related to ppc64le) I wish that RPM would *not* have an ocaml_arches macro at all. The macro usually has the wrong contents, but more seriously it is incorrect: There are two separate sets of OCaml native arches, those supporting compilation and those supporting native dynamic linking. We could define the correct macro(s) in the OCaml package. --- Additional comment from Panu Matilainen on 2014-04-15 05:05:45 EDT --- These macros are not my invention, its nothing but ridiculous (not to mention cumbersome to all involved parties) that I'm the "maintainer" of these macros when I haven't got a clue. Gnat? Is that a sound caused by swallowing with a dry throat? Although I suppose it means something different here... The reason these macros are in redhat-rpm-config is a compromise because they need to be present on the buildsystem at .src.rpm creation time (ie before buildrequires have been evaluated) and you dont want to pull in every possible language stack into the buildsys "just because". Now, perl already has its own "perl-srpm-macros" package which redhat-rpm-config requires for the above reason, this arrangement transfers the language stack control and knowledge out of my lap to where it belongs. So if you Richard want a similar arrangement for OCaml, I'm game. Just be careful not to add excess dependencies to the ocaml-srpm-macros package because that'll get pulled in on a LOT of systems. --- --- --- --- --- --- Let's do three things: (1) Add /etc/rpm/macros.ocaml-srpm with the correct content to a new subpackage called ocaml-srpm-macros (2) Remove /etc/rpm/macros.ocaml-srpm from redhat-rpm-config (3) Add Require: ocaml-srpm-macros to redhat-rpm-config.spec (Note: This is for Rawhide only)
(In reply to Richard W.M. Jones from comment #0) > (1) Add /etc/rpm/macros.ocaml-srpm with the correct content to > a new subpackage called ocaml-srpm-macros This is now done in the OCaml package, building here: http://koji.fedoraproject.org/koji/taskinfo?taskID=6740174 Since this package will conflict with the redhat-rpm-config package, I can't fix the other problem packages until redhat-rpm-config drops the file.
And done: http://pkgs.fedoraproject.org/cgit/redhat-rpm-config.git/commit/?id=eaf6603313c5959658569c191081e0a51128e00b http://koji.fedoraproject.org/koji/buildinfo?buildID=511010 Thanks :)
Hmph. We actually just introduced a bit of a bootstrap problem: redhat-rpm-config is required to build anything at all in Fedora, so being able to build anything at all now requires building OCaml first. Would be better if ocaml-srpm-macros were a standalone package rather than a sub-package of ocaml itself (iirc that's how the perl-counterpart is done)
OK, we can do this.
Please help by reviewing this extremely simple package! https://bugzilla.redhat.com/show_bug.cgi?id=1087893
This build of OCaml (ocaml-4.01.0-16.fc21) removes the ocaml-srpm-macros subpackage, because it is now replaced by a separate ocaml-srpm-macros real package in Rawhide. http://koji.fedoraproject.org/koji/taskinfo?taskID=6764118