Skip to content
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

configure.ac: make --disable-seccomp work #51

Closed
wants to merge 1 commit into from
Closed

configure.ac: make --disable-seccomp work #51

wants to merge 1 commit into from

Conversation

thesamesam
Copy link

The first branch ("[action-if-given]") is taken even if --disable-seccomp
is passed. So, in that branch, check whether the user disabled it or not.

Without this, we'd get a failure when seccomp is detected but we want
to disable it:

./configure --disable-seccomp
[...]
checking for library containing clock_gettime... none required
configure: error: --enable-seccomp given but seccomp libraries not present

Signed-off-by: Sam James sam@gentoo.org

The first branch ("[action-if-given]") is taken even if --disable-seccomp
is passed. So, in that branch, check whether the user disabled it or not.

Without this, we'd get a failure when seccomp is detected but we want
to disable it:
```
./configure --disable-seccomp
[...]
checking for library containing clock_gettime... none required
configure: error: --enable-seccomp given but seccomp libraries not present
```

Signed-off-by: Sam James <sam@gentoo.org>
@ThomasHabets
Copy link
Owner

Ugh, well that's surprising to me. But perfectly documented.

This also means that if seccomp libraries are present and configure is given --disable-seccomp, it'll both be enabled and defaulted to on (DEFAULT_SECCOMP).

Do you want to fix that, or should I merge this and do that party myself?

ThomasHabets added a commit that referenced this pull request May 25, 2022
More complete fix than #51.

Thanks thesamesam!
@ThomasHabets
Copy link
Owner

Fixed in 9da03da

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants