[Rpm-maint] [rpm-software-management/rpm] Add support for special system-level %include path (#685)
Igor Gnatenko
notifications at github.com
Fri Apr 26 12:33:20 UTC 2019
ignatenkobrain commented on this pull request.
> @@ -533,7 +534,17 @@ int readLine(rpmSpec spec, int strip)
}
*endFileName = '\0';
+ /* System includes live in a special path and become buildrequires */
+ if (*fileName == '<' && *(endFileName-1) == '>') {
+ *(endFileName-1) = '\0';
+ sysinc = rpmGetPath("%{_rpmincludedir}/", fileName + 1, NULL);
+ addReqProv(spec->sourcePackage, RPMTAG_REQUIRENAME,
+ sysinc, NULL, 0, 0);
I'm not sure about this one, because you are technically do not depend on exact `/usr/lib/rpm/include/…` file, but rather that path will be present...
--
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/685#pullrequestreview-231130184
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190426/0d13820e/attachment.html>
More information about the Rpm-maint
mailing list