diff mbox series

[1/1] prosody: add dependency on shared libraries

Message ID 1524041759-11496-1-git-send-email-danomimanchego123@gmail.com
State Superseded
Headers show
Series [1/1] prosody: add dependency on shared libraries | expand

Commit Message

Danomi Manchego April 18, 2018, 8:55 a.m. UTC
The prosody package uses several Lua packages that require shared libraries.
Therefore, prosody must require shared libraries too.

Fixes: http://autobuild.buildroot.net/results/b126bce0bbd111f021ed5be7c8773fef2a8f8579

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>

---

Note: this bug was reported as a luaexpat build error, but the fault is really due to
prosody.  When the autobuilder's defconfig is applied, the following is emitted:

warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUASEC which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUAEXPAT which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUAFILESYSTEM which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUASOCKET which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUASEC which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUAEXPAT which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUAFILESYSTEM which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
warning: (BR2_PACKAGE_PROSODY) selects BR2_PACKAGE_LUASOCKET which has unmet direct dependencies (!BR2_STATIC_LIBS && BR2_PACKAGE_HAS_LUAINTERPRETER)
---
 package/prosody/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/package/prosody/Config.in b/package/prosody/Config.in
index ef26e27..32fa648 100644
--- a/package/prosody/Config.in
+++ b/package/prosody/Config.in
@@ -2,6 +2,7 @@  config BR2_PACKAGE_PROSODY
 	bool "prosody"
 	depends on BR2_USE_MMU # fork
 	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+	depends on !BR2_STATIC_LIBS # luasec, luaexpat, luafilesystem
 	select BR2_PACKAGE_LUAEXPAT # runtime
 	select BR2_PACKAGE_LUASEC # runtime
 	select BR2_PACKAGE_LUASOCKET # runtime
@@ -15,6 +16,6 @@  config BR2_PACKAGE_PROSODY
 
 	  https://prosody.im
 
-comment "prosody needs the lua interpreter"
-	depends on !BR2_PACKAGE_HAS_LUAINTERPRETER
+comment "prosody needs the lua interpreter, dynamic library"
+	depends on !BR2_PACKAGE_HAS_LUAINTERPRETER || BR2_STATIC_LIBS
 	depends on BR2_USE_MMU