libseccomp: workaround a recursive dependency 8990/head
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 15 May 2019 12:42:47 +0000 (09:42 -0300)
committerEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 15 May 2019 13:42:08 +0000 (10:42 -0300)
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 <cote2004-github@yahoo.com>
libs/libseccomp/Makefile

index 191434cc393fa96ea695ba0c180f8c0ac85a3d79..d88507b6f179f360cfde690db752bd461ce893d9 100644 (file)
@@ -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