-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cmake): add libcurl as a libsinsp dependency #83
Conversation
Hi @lucklypse. Thanks for your PR. I'm waiting for a falcosecurity member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curl
is already included here 👇
libs/userspace/libsinsp/CMakeLists.txt
Line 45 in 89e1263
include(curl) |
Moreover, curl
should not be included when the MINIMAL_BUILD
is on.
Finally, if you dependant project uses uses curl
, perhaps you should include it there and not here. Is that your case?
Signed-off-by: lucklypse <lucklypse@gmail.com>
Thanks @leogr ! Good catch on the minimal build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it does make sense to me now.
As a note for reviewers, I can confirm the issue was present. Usually, it did not happen since the building process was wrongly using the curl
installed on the system. Moreover, it does not happen in Falco because it is manually included here.
That being said, I understand that libs' consumers may just want to directly rely on the libs cmake configuration without the need of specifying the deps manually. So, thank you for fixing this 👍
/approve
LGTM label has been added. Git tree hash: 872ac191ea3a6de69573f52065fd38910360c43d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leogr, lucklypse The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember this issue being present.
LGTM
Signed-off-by: lucklypse lucklypse@gmail.com
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area build
What this PR does / why we need it:
libsinsp requires curl: https://github.com/falcosecurity/libs/blob/master/userspace/libsinsp/container.h#L30
libcurl is part of the statically linked dependencies, but its include path was not added to the relative cmake file, therefore compilation may fail with
fatal error: curl/curl.h: No such file or directory
unless curl was included from another project.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: