loudmouth: fix build
authorW. Michael Petullo <[email protected]>
Sat, 28 Jul 2018 03:16:05 +0000 (23:16 -0400)
committerW. Michael Petullo <[email protected]>
Sat, 28 Jul 2018 03:16:05 +0000 (23:16 -0400)
Signed-off-by: W. Michael Petullo <[email protected]>
libs/loudmouth/Makefile
libs/loudmouth/patches/002-fix-comparison.patch [new file with mode: 0644]

index e5f77cac759d2ff0dafe312cc20fc182b0d8f8da..3f2c60b34f059b969b486cf7ccfd20aad6ec4dd9 100644 (file)
@@ -31,7 +31,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/loudmouth
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+glib2 +libopenssl
+  DEPENDS:=+glib2 +libopenssl +PACKAGE_krb5-libs:krb5-libs
   TITLE:=loudmouth
   URL:=https://github.com/mcabber/loudmouth
 endef
diff --git a/libs/loudmouth/patches/002-fix-comparison.patch b/libs/loudmouth/patches/002-fix-comparison.patch
new file mode 100644 (file)
index 0000000..7373516
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u --recursive loudmouth-1.5.3-vanilla/loudmouth/lm-sasl.c loudmouth-1.5.3/loudmouth/lm-sasl.c
+--- loudmouth-1.5.3-vanilla/loudmouth/lm-sasl.c        2018-07-27 22:42:03.250616281 -0400
++++ loudmouth-1.5.3/loudmouth/lm-sasl.c        2018-07-27 22:42:26.756659723 -0400
+@@ -529,7 +529,7 @@
+     }
+     nonce = g_hash_table_lookup (challenge, "nonce");
+-    if (nonce == NULL || nonce == '\0') {
++    if (nonce == NULL || *nonce == '\0') {
+         g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_SASL,
+                "%s: server didn't provide a nonce in the challenge",
+                G_STRFUNC);