On Thu, Feb 25, 2021 at 10:44 AM Miro Hrončok <mhron...@redhat.com> wrote:
>
> On 25. 02. 21 16:34, Fabio Valentini wrote:
> > But I'd argue that it's definitely not good that there's currently *no
> > way* to query BuildRequires*correctly*  and*reproducibly*  (other than
> > possibly rebuilding all fedora SRPM files for each target
> > architecture, but I do not have the resources - nor the desire - to do
> > that, just to get correct dependency information).
>
> BTW I think https://tiny.distro.builders/ does exactly this. Maybe Adam can
> share more info and maybe Content resolver can expose this information?
>

What I do is use "rpmspec -q --srpm" to do queries on packages for dependencies.

For example, you can do something like:

rpmspec --target x86_64 -q --srpm --buildrequires package.spec

That gets you a list of BRs for x86_64.

I've used this to create a simple ordered build process using the DNF API. :)



--
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
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
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to