[Rpm-maint] [rpm-software-management/rpm] Dynamic Build Dependencies (#593)
Igor Gnatenko
notifications at github.com
Thu Apr 18 07:46:17 UTC 2019
ignatenkobrain commented on this pull request.
> @@ -237,11 +343,45 @@ static rpmRC buildSpec(BTA_t buildArgs, rpmSpec spec, int what)
} else {
int didBuild = (what & (RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL));
+ if (!spec->buildrequires && (what & RPMBUILD_PACKAGESOURCE) &&
+ !(what & (RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY))){
+ /* don't run prep if not needed for source build */
+ /* with(out) dynamic build requires*/
+ what &= ~(RPMBUILD_PREP);
+ }
+
+ if ((what & RPMBUILD_CHECKBUILDREQUIRES) &&
Do we need to check it here? Given that we check it few lines later.
--
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#pullrequestreview-228141464
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190418/7d882fb3/attachment.html>
More information about the Rpm-maint
mailing list