On Thu, Feb 25, 2021 at 10:44 AM Miro Hrončok <mhroncok(a)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!