Skip to contentSkip to conversation

conmon: add dependency on libseccomp and seccomp to REQUIRED_DISTRO_FEATURES

PATCH In review Martin Jansa 2 participants 2 messages Jun 23, 2021 – Jun 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conmon: add dependency on libseccomp and seccomp to REQUIRED_DISTRO_FEATURES

* added with to v2.0.29 commit:
106cad5 seccomp: add support for seccomp notify
* fixes:

  | src/seccomp_notify.c:9:10: fatal error: seccomp.h: No such file or directory
  |     9 | #include <seccomp.h>
  |       |          ^~~~~~~~~~~
---
 recipes-containers/conmon/conmon_git.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-containers/conmon/conmon_git.bb +4 -1
index 5c45ce0..e2f452c 100644
@@ -4,7 +4,10 @@ HOMEPAGE = "https://github.com/containers/conmon"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=61af0b6932ea7b12fb9142721043bc77"
 
-DEPENDS = "glib-2.0 go-md2man-native"
+inherit features_check
+REQUIRED_DISTRO_FEATURES ?= "seccomp"
+
+DEPENDS = "glib-2.0 go-md2man-native libseccomp"
 
 SRCREV = "1ef246896b4f6566964ed861b98cd32d0e7bf7a2"
 SRC_URI = "\
Signature · 1 line
2.30.2
#1 lore raw

Thanks Martin,

This is now merged.

Bruce

Quoted 35 lines · Martin Jansa

* added with to v2.0.29 commit:
106cad5 seccomp: add support for seccomp notify
* fixes:

  | src/seccomp_notify.c:9:10: fatal error: seccomp.h: No such file or directory
  |     9 | #include <seccomp.h>
  |       |          ^~~~~~~~~~~
---
 recipes-containers/conmon/conmon_git.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-containers/conmon/conmon_git.bb +4 -2
index 5c45ce0..e2f452c 100644
@@ -4,7 +4,10 @@ HOMEPAGE = "https://github.com/containers/conmon"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=61af0b6932ea7b12fb9142721043bc77"
 
-DEPENDS = "glib-2.0 go-md2man-native"
+inherit features_check
+REQUIRED_DISTRO_FEATURES ?= "seccomp"
+
+DEPENDS = "glib-2.0 go-md2man-native libseccomp"
 
 SRCREV = "1ef246896b4f6566964ed861b98cd32d0e7bf7a2"
 SRC_URI = "\
--

2.30.2

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II