[Rpm-maint] [rpm-software-management/rpm] Dynamic Build Dependencies (#593)
Florian Festi
notifications at github.com
Thu Apr 18 08:18:28 UTC 2019
ffesti 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) &&
Well, these dependencies may be needed during %prep or (more likely) during %generate_buildrequires. We don't want these to just blow up. The later check makes sure the newly created buildrequires are there.
--
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#discussion_r276560780
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190418/0be8bb77/attachment.html>
More information about the Rpm-maint
mailing list