From 57b4d94d98a572c02b9b78e4bb1d3e9810a95db7 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Wed, 15 May 2019 09:40:45 -0300 Subject: [PATCH 1/2] lxc: hide seccomp support for arc libseccomp does not compile for arc, so we can't show that option for arc. Signed-off-by: Eneas U de Queiroz --- utils/lxc/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/lxc/Config.in b/utils/lxc/Config.in index 3340a3c2f..b655d3e59 100644 --- a/utils/lxc/Config.in +++ b/utils/lxc/Config.in @@ -38,6 +38,7 @@ config LXC_BUSYBOX_OPTIONS config LXC_SECCOMP bool "Enable support for seccomp in LXC" default KERNEL_SECCOMP + depends on !arc help Build LXC with support for seccomp filters. Select libseccomp which also pulls-in the needed kernel features. From e29483d7e202b06c49b3ede7fbb63c2ba1879321 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Wed, 15 May 2019 09:42:47 -0300 Subject: [PATCH 2/2] libseccomp: workaround a recursive dependency DEPENDS:=@!arc is causing a recursive dependency because of the optional selection of libseccomp by util/lxc. The workaround hides the package in Package/libseccomp/config instead. Signed-off-by: Eneas U de Queiroz --- libs/libseccomp/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/libseccomp/Makefile b/libs/libseccomp/Makefile index 191434cc3..d88507b6f 100644 --- a/libs/libseccomp/Makefile +++ b/libs/libseccomp/Makefile @@ -26,6 +26,11 @@ PKG_CONFIG_DEPENDS:= \ include $(INCLUDE_DIR)/package.mk +# This is done instead of DEPENDS:=@!arc to avoid a recursive dependency when +# the library is conditionally selected by util/lxc. +define Package/libseccomp/config + depends on !arc +endef define Package/libseccomp/Default SUBMENU:= @@ -33,7 +38,6 @@ define Package/libseccomp/Default CATEGORY:=Libraries TITLE:=seccomp URL:=https://github.com/seccomp/libseccomp/wiki - DEPENDS:=@!arc endef define Package/libseccomp/Default/description @@ -47,7 +51,6 @@ endef define Package/libseccomp $(call Package/libseccomp/Default) TITLE+= (library) - DEPENDS+= endef define Package/scmp_sys_resolver