-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Re-allow building without seccomp installed #8686
Re-allow building without seccomp installed #8686
Conversation
Hi @michalsieron. Thanks for your PR. I'm waiting for a cri-o 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-sigs/prow repository. |
/ok-to-test |
I think cri-o#3300 regressed cri-o#218 by unconditionally compiling with seccomp enabled. cri-o#6488 fixed this for non-linux and non-cgo build platforms, but the issue still exists when one uses a cgo-enabled Linux build host but still wants to build without seccomp. In such case build ends quickly with pkg-config error: `Package 'libseccomp' not found`. This patch makes internal/config/seccomp respect the seccomp buildtag. Signed-off-by: Michal Sieron <michalwsieron@gmail.com>
Added missing dots at the end of comments and ran through gofumpt. Signed-off-by: Michal Sieron <michalwsieron@gmail.com>
8719b90
to
a271b4a
Compare
@kwilczynski I think I fixed lint issues, but I don't really understand the test failures 😕 |
/ok-to-test |
@saschagrunert: Overrode contexts on behalf of saschagrunert: ci/prow/ci-e2e-evented-pleg In response to this:
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-sigs/prow repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kwilczynski, michalsieron, saschagrunert 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 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8686 +/- ##
==========================================
- Coverage 48.82% 48.80% -0.02%
==========================================
Files 153 153
Lines 17388 17388
==========================================
- Hits 8489 8487 -2
- Misses 7836 7837 +1
- Partials 1063 1064 +1 |
What type of PR is this?
/kind other
What this PR does / why we need it:
I think #3300 regressed #218 by unconditionally compiling with seccomp enabled. #6488 fixed this for non-linux and non-cgo build platforms, but the issue still exists when one uses a cgo-enabled Linux build host but still wants to build without seccomp. In such case build ends quickly with pkg-config error:
Package 'libseccomp' not found
.This patch makes
internal/config/seccomp
respect the seccomp buildtag.Which issue(s) this PR fixes:
Fixes #218 regression
Special notes for your reviewer:
Does this PR introduce a user-facing change?
None?