[Rpm-maint] [rpm-software-management/rpm] Docs: Revamp BUILD OPTIONS section in rpmbuild(8) (#1318)

Igor Raits notifications at github.com
Thu Jul 23 09:31:48 UTC 2020


@ignatenkobrain commented on this pull request.



> @@ -256,6 +266,18 @@ options are currently set in
 \fIrpmrc\fR and
 \fImacros\fR
 configuration file(s).
+.SS "DYNAMIC BUILD REQUIREMENTS"
+.PP
+When the %generate_buildrequires stage is executed and some of the resulting
+requirements are not satisfied, \fBrpmbuild\fR exits with code 11 and does not
+create the source package.
+Instead, a package ending with \fIbuildreqs.nosrc.rpm\fR is created, which has
+all the build requirements, including the newly generated ones.

yes, that section is executed during each built, so if it has some check `test -x /usr/bin/foo ...`, then once foo will be available, it might generate new set of requires.

that's why mock does `rpmbuild -br` + `dnf builddep` until it stops generating any new dependencies.

-- 
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/1318#discussion_r459325559
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200723/45d423a4/attachment.html>


More information about the Rpm-maint mailing list