[Rpm-maint] [rpm-software-management/rpm] Dynamic Build Dependencies (#593)

Igor Gnatenko notifications at github.com
Wed Apr 10 05:36:41 UTC 2019


Thinking about this a bit more, rpmbuild should probably get an option to just execute genbr section without checking dependencies. The reason why mock does `--nodeps` because rpmbuild in target environment might be older/compiled with different features so it can't read rpmdb within chroot (because it was populated by other RPM).

So looking at the code, I think:

* `POPT_BR` should set just `RPMBUILD_BUILDREQUIRES` (even when `noDeps` is set so that it ignores BuildRequires from spec, but still does generate additional BuildRequires)
* `RPMBUILD_BUILDREQUIRES` should write `buildreqs.nosrc.rpm` (not `RPMBUILD_CHECKBUILDREQUIRES`)
* It should do only in case there is `%generate_buildrequires` section (writing it always means that all tooling will be slower because every time it would need to run builddep on it)

@ffesti thoughts?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/593#issuecomment-481540550
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190409/0f750fd8/attachment-0001.html>


More information about the Rpm-maint mailing list