Skip to content

[openSUSE 15.1] Missing libseccomp headers#360

Merged
giuseppe merged 1 commit into
containers:masterfrom
alvistack:find-seccomp-using-pkg-config
May 18, 2020
Merged

[openSUSE 15.1] Missing libseccomp headers#360
giuseppe merged 1 commit into
containers:masterfrom
alvistack:find-seccomp-using-pkg-config

Conversation

@hswong3i
Copy link
Copy Markdown
Contributor

For openSUSE 15.1, seccomp.h is located as /usr/include/libseccomp/seccomp.h which could be fetched by pkg-config --libs libseccomp and pkg-config --cflags libseccomp.

This patch reference from https://build.opensuse.org/package/view_file/openSUSE:Factory/lxc/configure-find-seccomp-using-pkg-config.patch?rev=45, so inject the pkg-config result on-the-fly.

Fixes #358

For openSUSE 15.1, `seccomp.h` is located as `/usr/include/libseccomp/seccomp.h` which could be fetched by `pkg-config --libs libseccomp` and `pkg-config --cflags libseccomp`.

This patch reference from https://build.opensuse.org/package/view_file/openSUSE:Factory/lxc/configure-find-seccomp-using-pkg-config.patch?rev=45, so inject the `pkg-config` result on-the-fly.

Fixes containers#358
@hswong3i
Copy link
Copy Markdown
Contributor Author

hswong3i commented May 18, 2020

@giuseppe I test this PR with master but actually failed on recent openSUSE 15.1 due to systemd 234 (case similar as #349, which required for systemd >= 237).

BTW, manually apply changes into crun 0.13 make it works perfectly as other OS.

Anyway, as openSUSE 15.2 going to be released on 2020-06-22 (see https://en.opensuse.org/openSUSE:Roadmap) with systemd >= 245, once we have a newer crun release after that will be working fine automatically. OMG openSUSE 15.2 also scheduled with systemd 234 only (see https://software.opensuse.org/package/systemd)

@giuseppe
Copy link
Copy Markdown
Member

thanks for opening a PR.

LGTM

@giuseppe giuseppe merged commit 0bb65c7 into containers:master May 18, 2020
@hswong3i hswong3i deleted the find-seccomp-using-pkg-config branch May 19, 2020 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[openSUSE 15.1] Missing libseccomp headers

2 participants