On Tue, 16 Apr 2019 at 00:29, Robert-André Mauchin <zebo...@gmail.com>
wrote:
>
> Hi,
>
> In Golang, we have a lot of cyclic dependencies for which we have to
bootstrap
> many packages, and then later build them unbootstrapped when all the deps
are
> in place.
> How are we supposed to handle this in Modularity? Since it rebuilds all
> packages from the start, it will fail to build cyclic deps. Is there a
way to
> turn on the --with bootstrap switch in Modularity? Are we supposed to
build
> the package two times, one with bootstrap, and later without?
>
> Best regards,
>
> Robert-André

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-modules/#_build_macros_optional

Here is an example where I needed to set --with bootstrap in my module:

https://src.fedoraproject.org/modules/tycho/blob/df837b8793fe460d2c7e72ab6d638a0f6e9f47a7/f/tycho.yaml#_76



--
Mat Booth
http://fedoraproject.org/get-fedora
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to