On Tue, Apr 16, 2019 at 3:14 PM Robert-André Mauchin <zebob.m@xxxxxxxxx> wrote:
On Tuesday, 16 April 2019 02:46:49 CEST Mat Booth wrote:
>
> Yes, there is a buildopts section in the yaml file where you can specify
> rpm macros.
>
> Here is the documentation:
>
> https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modu
> les/#_build_macros_optional
>
> Here is an example where I needed to set --with bootstrap in my module:
>
> https://src.fedoraproject.org/modules/tycho/blob/df837b8793fe460d2c7e72ab6d6
> 38a0f6e9f47a7/f/tycho.yaml#_76
>
Thanks for the tip but that wouldn't work for Golang. When we bootstrap we
disable certain codepath to workaround the cycle, but we still need to
reenable them later to build the final binary. So we need to do both a
bootstrap build, and then a non-bootstrap build to get all the functionality.
This is quite common. One way to approach is is to have two modules, for example:
* golang-bootstrap — with the bootstrap macros set, to build the first pass
* golang — the final one, it would build-require the golang-bootstrap module
Here is an example with Perl:
* perl-bootstrap: https://src.fedoraproject.org/modules/perl-bootstrap/blob/5.26/f/perl-bootstrap.yaml
Would that work for you?
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Adam Šamalík
---------------------------
Red Hat
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx