Le 2019-06-18 10:19, Miroslav Suchý a écrit :
Dne 18. 06. 19 v 3:27 Igor Gnatenko napsal(a):

as of today, builders have been updated (thanks to Kevin) and
DynamicBuildRequires finally work in Rawhide.

Change Page: https://fedoraproject.org/wiki/Changes/DynamicBuildRequires
Example of real build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1286391

On the Change page we have two examples: one general minimal example
and example of Rust.
If any of you have more examples how to dynamically generate
BuildRequires e.g., for nojs, ruby, golang... then please
send it to me privately or here in this thread. I would love to add it
to the documentation.

The necessary tooling is already available Go-side and has been pushed as part of the

https://fedoraproject.org/wiki/Changes/Adopt_new_Go_Packaging_Guidelines

change last week (in rawhide only because it depends on changes in redhat-rpm-config not available in previous releases).

As documented in the templates provided in go-rpm-templates, activating them is just a

%go_generate_buildrequires

call in %generate_buildrequires
https://pagure.io/go-rpm-macros/blob/master/f/templates/rpm/spectemplate-go-0-source-minimal.spec#_105
(you need the rest of the Go packaging template for this to work)

As noted in the template, this generates un-versioned BuildRequires (like our automated Go Requires).

Versioning information will be available after we switch to modules our Go stack (the Golang module concept, not the Fedora one). That means Go 1.14 at the earliest, end of the year. The module support in Go 1.13, scheduled for this summer, is not complete enough to be used in rpm packages.

@eclipseo: that means you can re-add automated BuildRequires to our Go packaging guidelibnes, it was removed because the Fedora infra was not ready yet.

Regards


--
Nicolas Mailhot
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
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