On Tue, 16 Apr 2019 at 14:14, 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.
>
Why wouldn't this work for you? You would just rebuild the module a second time without the bootstrap flag set. This is fairly standard process for packages that buildrequire themselves and not unique to golang.
--
Mat Booth
http://fedoraproject.org/get-fedora
_______________________________________________ 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