-
Notifications
You must be signed in to change notification settings - Fork 177
userspace: Make Cflags in our .pc files more strict #2691
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
userspace: Make Cflags in our .pc files more strict #2691
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2691 +/- ##
=======================================
Coverage 76.91% 76.91%
=======================================
Files 294 294
Lines 30862 30862
Branches 4689 4689
=======================================
Hits 23739 23739
Misses 7123 7123
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bb8d87c to
46cd00d
Compare
If it breaks anything, that'd be |
Thanks for catching that. Corresponding PR in draios/sysdig#2166. |
|
/milestone 0.23.0 |
|
Hey @geraldcombs , thank you for the contribution! Changes look good, but could you please adjust the commit heading to match the conventional commit style? I guess it would be something like |
46cd00d to
0336274
Compare
Done! |
Remove "-I${includedir}/libscap -I${includedir}/driver" from libscap.pc
and libsinsp.pc. This means that consumers must use prefixed include
paths, such as "#include <libscap/scap.h>" instead of "#include
<scap.h>". However, those include directories contain several generic
filenames such as settings.h, logger.h, plugin.h, user.h, and utils.h,
and this reduces the risk of someone inadvertently including the wrong
file.
Signed-off-by: Gerald Combs <[email protected]>
0336274 to
be37a1c
Compare
pkgconf supports a License property, which seems like a useful thing to have. Signed-off-by: Gerald Combs <[email protected]>
ekoops
left a comment
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.
/approve
|
LGTM label has been added. Git tree hash: 81c2031fe945303180385d5f5269e41204915927
|
terror96
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ekoops, geraldcombs, terror96 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 |
Remove "-I${includedir}/libscap -I${includedir}/driver" from libscap.pc and libsinsp.pc. This means that consumers must use prefixed include paths, such as "#include <libscap/scap.h>" instead of "#include <scap.h>". However, those include directories contain several generic filenames such as settings.h, logger.h, plugin.h, user.h, and utils.h, and this reduces the risk of someone inadvertently including the wrong file.
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area build
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This hopefully helps us avoid a situation like the following: https://gitlab.com/wireshark/wireshark/-/issues/17192
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: