gensio: Fix circular dependency error
authorNita Vesa <redacted>
Wed, 30 Mar 2022 07:26:02 +0000 (10:26 +0300)
committerRosen Penev <redacted>
Thu, 31 Mar 2022 02:44:57 +0000 (19:44 -0700)
Adding libsctp adds IPV6 dependency to gensio, so this patch is
an attempt at working around that with the goal of getting rid of
the circular dependency error.

Signed-off-by: Nita Vesa <redacted>
net/gensio/Config.in
net/gensio/Makefile

index 58bdf1eea74444f052aa9381826942ef7d2741fc..f5fedad10d630f915ea2c3943ebddc74cd3a1310 100644 (file)
@@ -9,7 +9,7 @@
                default n
 
        config GENSIO_SCTP
-               depends on PACKAGE_libgensio
+               depends on PACKAGE_libgensio && IPV6
                bool "Enable SCTP-support via libsctp"
                default n
 
index 1895d4e8a09e53c1763c51163a4b9202b5c2e7ba..dd80e4b8156856b53f55c0cb080f0a5abb79d8d0 100644 (file)
@@ -93,7 +93,7 @@ $(call Package/gensio/Default)
   CATEGORY:=Libraries
   ABI_VERSION:=0
   MENU:=1
-  DEPENDS:=+GENSIO_SSL:libopenssl +GENSIO_WRAP:libwrap +GENSIO_SCTP:libsctp +GENSIO_PTHREADS:libpthread +GENSIO_AVAHI:libavahi-client +GENSIO_TCL:tcl +GENSIO_GLIB:glib2 +GENSIO_SSHD:libpam
+  DEPENDS:=+GENSIO_SSL:libopenssl +GENSIO_WRAP:libwrap +(IPV6&&GENSIO_SCTP):libsctp +GENSIO_PTHREADS:libpthread +GENSIO_AVAHI:libavahi-client +GENSIO_TCL:tcl +GENSIO_GLIB:glib2 +GENSIO_SSHD:libpam
 endef
 
 define Package/libgensio/description
git clone https://git.99rst.org/PROJECT