Bump ejabberd version to 17.04
cover Bump ejabberd version to 17.04
Ejabberd has many dependencies. Bump all of them to the versions needed by ejabberd-17.11.
Johan Oudinet (14):
erlang-lager: Bump to version 3.4.2
erlang-p1-utils: Bump to version 1.0.10
erlang-p1-zlib: Bump to version 1.0.3
erlang-p1-xml: Bump to version 1.1.25
erlang-stringprep: Bump to version 1.0.10
erlang-p1-xmpp: Bump to version 1.1.16
erlang-p1-cache-tab: Bump to version 1.0.12
erlang-p1-iconv: Bump to version 1.0.6
erlang-p1-oauth2: Bump to version 0.6.2
erlang-p1-tls: Bump to version 1.0.17
erlang-p1-stun: Bump to version 1.0.16
erlang-p1-sip: Bump to version 1.0.17
erlang-p1-yaml: Bump to version 1.0.12
ejabberd: Bump to version 17.11
.../0001-remove-make-targets-for-deps.patch | 5 +- ...002-remove-dependencies-from-rebar-config.patch | 82 +- package/ejabberd/0004-correct-include.patch | 58 - package/ejabberd/0004-correct-includes.patch | 1909 ++++++++++++++++++++ package/ejabberd/0007-fix-ejabberdctl.patch | 34 +- .../0008-handle-error-case-from-lib_dir.patch | 28 + .../0008-rebar-uses-host-dependencies.patch | 33 - package/ejabberd/0009-disable-mod_avatar.patch | 32 + package/ejabberd/Config.in | 10 + package/ejabberd/ejabberd.hash | 2 +- package/ejabberd/ejabberd.mk | 38 +- package/erlang-lager/erlang-lager.hash | 2 +- package/erlang-lager/erlang-lager.mk | 4 +- .../erlang-p1-cache-tab/erlang-p1-cache-tab.hash | 2 +- package/erlang-p1-cache-tab/erlang-p1-cache-tab.mk | 2 +- package/erlang-p1-iconv/erlang-p1-iconv.hash | 2 +- package/erlang-p1-iconv/erlang-p1-iconv.mk | 2 +- package/erlang-p1-oauth2/erlang-p1-oauth2.hash | 2 +- package/erlang-p1-oauth2/erlang-p1-oauth2.mk | 2 +- ...002-remove-dependencies-from-rebar-config.patch | 10 +- package/erlang-p1-sip/erlang-p1-sip.hash | 2 +- package/erlang-p1-sip/erlang-p1-sip.mk | 2 +- .../erlang-p1-stringprep/erlang-p1-stringprep.hash | 2 +- .../erlang-p1-stringprep/erlang-p1-stringprep.mk | 2 +- ...001-remove-dependencies-from-rebar-config.patch | 6 +- package/erlang-p1-stun/erlang-p1-stun.hash | 2 +- package/erlang-p1-stun/erlang-p1-stun.mk | 2 +- package/erlang-p1-tls/erlang-p1-tls.hash | 2 +- package/erlang-p1-tls/erlang-p1-tls.mk | 2 +- package/erlang-p1-utils/erlang-p1-utils.hash | 2 +- package/erlang-p1-utils/erlang-p1-utils.mk | 2 +- ...001-remove-dependencies-from-rebar-config.patch | 6 +- package/erlang-p1-xml/erlang-p1-xml.hash | 2 +- package/erlang-p1-xml/erlang-p1-xml.mk | 2 +- ...002-remove-dependencies-from-rebar-config.patch | 19 +- package/erlang-p1-xmpp/Config.in | 1 + package/erlang-p1-xmpp/erlang-p1-xmpp.hash | 2 +- package/erlang-p1-xmpp/erlang-p1-xmpp.mk | 4 +- ...001-remove-dependencies-from-rebar-config.patch | 4 +- package/erlang-p1-yaml/erlang-p1-yaml.hash | 2 +- package/erlang-p1-yaml/erlang-p1-yaml.mk | 2 +- package/erlang-p1-zlib/erlang-p1-zlib.hash | 2 +- package/erlang-p1-zlib/erlang-p1-zlib.mk | 2 +- 43 files changed, 2134 insertions(+), 199 deletions(-) delete mode 100644 package/ejabberd/0004-correct-include.patch create mode 100644 package/ejabberd/0004-correct-includes.patch create mode 100644 package/ejabberd/0008-handle-error-case-from-lib_dir.patch delete mode 100644 package/ejabberd/0008-rebar-uses-host-dependencies.patch create mode 100644 package/ejabberd/0009-disable-mod_avatar.patch
Signature · 1 line
2.14.1
PATCH 1/14 erlang-lager: Bump to version 3.4.2
Change repository from basho to erlang-lager.
--- package/erlang-lager/erlang-lager.hash | 2 +- package/erlang-lager/erlang-lager.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
package/erlang-lager/erlang-lager.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 5ef0f65e0c18a7df5c5f2cd8e96780396f13369127d87857e7931670c79a9327 erlang-lager-3.2.1.tar.gz +sha256 c5f532dd236e07dad27976abcf12b9c90fcf33ffd6fe1b1d34639c06171c36ea erlang-lager-3.4.2.tar.gz
package/erlang-lager/erlang-lager.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -ERLANG_LAGER_VERSION = 3.2.1 -ERLANG_LAGER_SITE = $(call github,basho,lager,$(ERLANG_LAGER_VERSION)) +ERLANG_LAGER_VERSION = 3.4.2 +ERLANG_LAGER_SITE = $(call github,erlang-lager,lager,$(ERLANG_LAGER_VERSION)) ERLANG_LAGER_LICENSE = Apache-2.0 ERLANG_LAGER_LICENSE_FILES = LICENSE ERLANG_LAGER_DEPENDENCIES = erlang-goldrush
Signature · 1 line
2.14.1
PATCH 2/14 erlang-p1-utils: Bump to version 1.0.10
In reply to Johan Oudinet--- package/erlang-p1-utils/erlang-p1-utils.hash | 2 +- package/erlang-p1-utils/erlang-p1-utils.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-utils/erlang-p1-utils.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 9b43e025b923221cfe6a6efc76790d97b1c233e3e2db37fc804294d847bcfaa3 erlang-p1-utils-1.0.8.tar.gz +sha256 57bfc575179733a723717f4fecb65b9f7fd056595f798b52e7bc0206e8a9333f erlang-p1-utils-1.0.10.tar.gz
package/erlang-p1-utils/erlang-p1-utils.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_UTILS_VERSION = 1.0.8 +ERLANG_P1_UTILS_VERSION = 1.0.10 ERLANG_P1_UTILS_SITE = $(call github,processone,p1_utils,$(ERLANG_P1_UTILS_VERSION)) ERLANG_P1_UTILS_LICENSE = Apache-2.0 ERLANG_P1_UTILS_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 3/14 erlang-p1-zlib: Bump to version 1.0.3
In reply to Johan Oudinet--- package/erlang-p1-zlib/erlang-p1-zlib.hash | 2 +- package/erlang-p1-zlib/erlang-p1-zlib.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-zlib/erlang-p1-zlib.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 2200330f7d4fc595caf8806fec1318b853009ab3d643cf063d19bff59bf2b45e erlang-p1-zlib-1.0.2.tar.gz +sha256 8396f9cb17fdb195d9a2537ad76327bf930d66118b87b7108f27e5ed28b7cde6 erlang-p1-zlib-1.0.3.tar.gz
package/erlang-p1-zlib/erlang-p1-zlib.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_ZLIB_VERSION = 1.0.2 +ERLANG_P1_ZLIB_VERSION = 1.0.3 ERLANG_P1_ZLIB_SITE = $(call github,processone,ezlib,$(ERLANG_P1_ZLIB_VERSION)) ERLANG_P1_ZLIB_LICENSE = Apache-2.0 ERLANG_P1_ZLIB_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 4/14 erlang-p1-xml: Bump to version 1.1.25
In reply to Johan OudinetAlso adjust the patch that removes rebar dependencies to reflect version changes.
--- .../erlang-p1-xml/0001-remove-dependencies-from-rebar-config.patch | 6 +++--- package/erlang-p1-xml/erlang-p1-xml.hash | 2 +- package/erlang-p1-xml/erlang-p1-xml.mk | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
package/erlang-p1-xml/0001-remove-dependencies-from-rebar-config.patch +3 -3
@@ -4,14 +4,14 @@ by rebar at build time. Signed-off-by: Christophe Romain <[email protected]> diff --git a/rebar.config b/rebar.config -index 3e20029..a47f1ff 100644 +index 99f5047..ac2f3b2 100644 --- a/rebar.config +++ b/rebar.config -@@ -31,8 +31,6 @@ +@@ -32,8 +32,6 @@ {port_specs, [{"priv/lib/fxml.so", ["c_src/fxml.c"]}, {"priv/lib/fxml_stream.so", ["c_src/fxml_stream.c"]}]}. --{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.7"}}}]}. +-{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}. - {clean_files, ["c_src/fxml.gcda", "c_src/fxml.gcno", "c_src/fxml_stream.gcda", "c_src/fxml_stream.gcno"]}.
package/erlang-p1-xml/erlang-p1-xml.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 0163e7bd11b6705732fd7281209925e39534c9ea123887574218422c34762d7c erlang-p1-xml-1.1.22.tar.gz +sha256 aeda4051c08b78e2f036d82705433a667d03736f07ff0054862e82105435e285 erlang-p1-xml-1.1.25.tar.gz
package/erlang-p1-xml/erlang-p1-xml.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_XML_VERSION = 1.1.22 +ERLANG_P1_XML_VERSION = 1.1.25 ERLANG_P1_XML_SITE = $(call github,processone,fast_xml,$(ERLANG_P1_XML_VERSION)) ERLANG_P1_XML_LICENSE = Apache-2.0 ERLANG_P1_XML_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 5/14 erlang-stringprep: Bump to version 1.0.10
In reply to Johan Oudinet--- package/erlang-p1-stringprep/erlang-p1-stringprep.hash | 2 +- package/erlang-p1-stringprep/erlang-p1-stringprep.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-stringprep/erlang-p1-stringprep.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 9d7485312d023eeb83f308206ff8088c03b49195fb7bf4b3b699d386e33e908a erlang-p1-stringprep-1.0.8.tar.gz +sha256 baef9e6bd59e00c9d2600e8db87078c19d76cbf66d5068efeaf1df740ee306ce erlang-p1-stringprep-1.0.10.tar.gz
package/erlang-p1-stringprep/erlang-p1-stringprep.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_STRINGPREP_VERSION = 1.0.8 +ERLANG_P1_STRINGPREP_VERSION = 1.0.10 ERLANG_P1_STRINGPREP_SITE = $(call github,processone,stringprep,$(ERLANG_P1_STRINGPREP_VERSION)) ERLANG_P1_STRINGPREP_LICENSE = TCL (tools/*.tcl), Apache-2.0 (rest) ERLANG_P1_STRINGPREP_LICENSE_FILES = LICENSE.ALL LICENSE.TCL LICENSE.txt
Signature · 1 line
2.14.1
PATCH 6/14 erlang-p1-xmpp: Bump to version 1.1.16
In reply to Johan OudinetThis packages now depends also on erlang-p1-utils.
Adapt the patch that removes rebar dependencies to version changes.
--- .../0002-remove-dependencies-from-rebar-config.patch | 19 ++++++++++--------- package/erlang-p1-xmpp/Config.in | 1 + package/erlang-p1-xmpp/erlang-p1-xmpp.hash | 2 +- package/erlang-p1-xmpp/erlang-p1-xmpp.mk | 4 ++-- 4 files changed, 14 insertions(+), 12 deletions(-)
package/erlang-p1-xmpp/0002-remove-dependencies-from-rebar-config.patch +10 -9
@@ -4,15 +4,16 @@ by rebar at build time. Signed-off-by: Christophe Romain <[email protected]> diff --git a/rebar.config b/rebar.config -index 79494b7..8d769f1 100644 ---- a/rebar.config -+++ b/rebar.config -@@ -24,9 +24,6 @@ - {i, "../fast_xml/include"}, - {i, "deps/fast_xml/include"}]}. +--- a/rebar.config 2017-11-30 14:24:52.348695123 +0100 ++++ b/rebar.config 2017-11-30 14:35:11.816407195 +0100 +@@ -29,10 +29,6 @@ --{deps, [{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.22"}}}, -- {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.8"}}}]}. + {port_specs, [{"priv/lib/jid.so", ["c_src/jid.c"]}]}. + +-{deps, [{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.25"}}}, +- {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.10"}}}, +- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}. - + {clean_files, ["c_src/jid.gcda", "c_src/jid.gcno"]}. + {cover_enabled, true}. - {cover_export_enabled, true}.
package/erlang-p1-xmpp/Config.in +1 -0
@@ -6,6 +6,7 @@ config BR2_PACKAGE_ERLANG_P1_XMPP depends on BR2_INSTALL_LIBSTDCPP # erlang-p1-stringprep select BR2_PACKAGE_ERLANG_P1_XML select BR2_PACKAGE_ERLANG_P1_STRINGPREP + select BR2_PACKAGE_ERLANG_P1_UTILS help XMPP library for Erlang.
package/erlang-p1-xmpp/erlang-p1-xmpp.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 e7b5db5ab6204f5bc6ebf91a183ebeae2b43ca6372dd2506599a8e8168a99c50 erlang-p1-xmpp-1.1.9.tar.gz +sha256 558e8d8734052bdbe679cf10165a63944c208940ab84be78c97ba661dfcf3cb2 erlang-p1-xmpp-1.1.16.tar.gz
package/erlang-p1-xmpp/erlang-p1-xmpp.mk +2 -2
@@ -4,13 +4,13 @@ # ################################################################################ -ERLANG_P1_XMPP_VERSION = 1.1.9 +ERLANG_P1_XMPP_VERSION = 1.1.16 ERLANG_P1_XMPP_SITE = $(call github,processone,xmpp,$(ERLANG_P1_XMPP_VERSION)) ERLANG_P1_XMPP_LICENSE = Apache-2.0 ERLANG_P1_XMPP_LICENSE_FILES = LICENSE.txt ERLANG_P1_XMPP_INSTALL_STAGING = YES ERLANG_P1_XMPP_DEPENDENCIES = erlang-p1-xml erlang-p1-stringprep \ - host-erlang-p1-xml + erlang-p1-utils host-erlang-p1-xml $(eval $(rebar-package)) $(eval $(host-rebar-package))
Signature · 1 line
2.14.1
PATCH 6/14 erlang-p1-xmpp: Bump to version 1.1.16
Hello,
package/erlang-p1-xmpp/Config.in config BR2_PACKAGE_ERLANG_P1_XMPP · line 9
Quoted 4 lines · Johan Oudinet
package/erlang-p1-xmpp/Config.in +1
-0depends on BR2_INSTALL_LIBSTDCPP # erlang-p1-stringprep select BR2_PACKAGE_ERLANG_P1_XML select BR2_PACKAGE_ERLANG_P1_STRINGPREP + select BR2_PACKAGE_ERLANG_P1_UTILS
Bah indentation here: it was indented with spaces and not a tab. This is the type of minor mistake that ./utils/check-package verifies.
I've fixed this when applying. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 7/14 erlang-p1-cache-tab: Bump to version 1.0.12
In reply to Johan Oudinet--- package/erlang-p1-cache-tab/erlang-p1-cache-tab.hash | 2 +- package/erlang-p1-cache-tab/erlang-p1-cache-tab.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-cache-tab/erlang-p1-cache-tab.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 9376c14eaeb78c3847c3cf38853bb6e6860fb63959e182deeff5c819b23c95a4 erlang-p1-cache-tab-1.0.7.tar.gz +sha256 5ef27d3be0ef2e8dc06468ec39dc3a43506d6f85af0edc21b9c14db860669d38 erlang-p1-cache-tab-1.0.12.tar.gz
package/erlang-p1-cache-tab/erlang-p1-cache-tab.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_CACHE_TAB_VERSION = 1.0.7 +ERLANG_P1_CACHE_TAB_VERSION = 1.0.12 ERLANG_P1_CACHE_TAB_SITE = $(call github,processone,cache_tab,$(ERLANG_P1_CACHE_TAB_VERSION)) ERLANG_P1_CACHE_TAB_LICENSE = Apache-2.0 ERLANG_P1_CACHE_TAB_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 8/14 erlang-p1-iconv: Bump to version 1.0.6
In reply to Johan Oudinet--- package/erlang-p1-iconv/erlang-p1-iconv.hash | 2 +- package/erlang-p1-iconv/erlang-p1-iconv.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-iconv/erlang-p1-iconv.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 ca20d58166a4fb38883977600aca61e02bfd1257b8bded8c8ddd82d2a96084e6 erlang-p1-iconv-1.0.4.tar.gz +sha256 c7214ea7503c3de1edf3bdd72b37187aa3a9a36d7cf7f5945a067ae8d262d3fb erlang-p1-iconv-1.0.6.tar.gz
package/erlang-p1-iconv/erlang-p1-iconv.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_ICONV_VERSION = 1.0.4 +ERLANG_P1_ICONV_VERSION = 1.0.6 ERLANG_P1_ICONV_SITE = $(call github,processone,iconv,$(ERLANG_P1_ICONV_VERSION)) ERLANG_P1_ICONV_LICENSE = Apache-2.0 ERLANG_P1_ICONV_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 9/14 erlang-p1-oauth2: Bump to version 0.6.2
In reply to Johan Oudinet--- package/erlang-p1-oauth2/erlang-p1-oauth2.hash | 2 +- package/erlang-p1-oauth2/erlang-p1-oauth2.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-oauth2/erlang-p1-oauth2.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 86e4d93f0206135bc6017b6001d061305513917f79c53294e534d6e66fd54727 erlang-p1-oauth2-0.6.1.tar.gz +sha256 aea823ccc49b20f7e27f1893c7edf231339f56b16ba21ce78a60f735b6211718 erlang-p1-oauth2-0.6.2.tar.gz
package/erlang-p1-oauth2/erlang-p1-oauth2.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_OAUTH2_VERSION = 0.6.1 +ERLANG_P1_OAUTH2_VERSION = 0.6.2 ERLANG_P1_OAUTH2_SITE = $(call github,processone,p1_oauth2,$(ERLANG_P1_OAUTH2_VERSION)) ERLANG_P1_OAUTH2_LICENSE = MIT ERLANG_P1_OAUTH2_LICENSE_FILES = LICENSE
Signature · 1 line
2.14.1
PATCH 10/14 erlang-p1-tls: Bump to version 1.0.17
In reply to Johan Oudinet--- package/erlang-p1-tls/erlang-p1-tls.hash | 2 +- package/erlang-p1-tls/erlang-p1-tls.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/erlang-p1-tls/erlang-p1-tls.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 c42237e5dd231c558b48633788a0e9ca55b4f3b5bc4692107fee031a8f91cda3 erlang-p1-tls-1.0.11.tar.gz +sha256 ca9670b7f78a025b101e3fee6255d7472d6b52abc46444cc45616c3d1bd75b9b erlang-p1-tls-1.0.17.tar.gz
package/erlang-p1-tls/erlang-p1-tls.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_TLS_VERSION = 1.0.11 +ERLANG_P1_TLS_VERSION = 1.0.17 ERLANG_P1_TLS_SITE = $(call github,processone,fast_tls,$(ERLANG_P1_TLS_VERSION)) ERLANG_P1_TLS_LICENSE = Apache-2.0 ERLANG_P1_TLS_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 11/14 erlang-p1-stun: Bump to version 1.0.16
In reply to Johan OudinetAdapt the patch that removes rebar dependencies to version changes.
--- .../erlang-p1-stun/0001-remove-dependencies-from-rebar-config.patch | 6 +++--- package/erlang-p1-stun/erlang-p1-stun.hash | 2 +- package/erlang-p1-stun/erlang-p1-stun.mk | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
package/erlang-p1-stun/0001-remove-dependencies-from-rebar-config.patch +3 -3
@@ -2,15 +2,15 @@ Without this patch, dependencies would be downloaded and compiled by rebar at build time. diff --git a/rebar.config b/rebar.config -index 94ee830..d0af863 100644 +index f02ea40..d0af863 100644 --- a/rebar.config +++ b/rebar.config @@ -22,9 +22,6 @@ {erl_opts, [debug_info, {i, "include"}]}. --{deps, [{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.11"}}}, -- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.7"}}}]}. +-{deps, [{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.17"}}}, +- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}. - {cover_enabled, true}. {cover_export_enabled, true}.
package/erlang-p1-stun/erlang-p1-stun.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 75aac56fa770b3b4ea2d32e63706d2b8d56f8e0db54243acffa7448f4256864e erlang-p1-stun-1.0.10.tar.gz +sha256 8efe2f47c2460b1e0d68a680dcfcd938a2bc98c85abb5b100c15246fe6a25506 erlang-p1-stun-1.0.16.tar.gz
package/erlang-p1-stun/erlang-p1-stun.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_STUN_VERSION = 1.0.10 +ERLANG_P1_STUN_VERSION = 1.0.16 ERLANG_P1_STUN_SITE = $(call github,processone,stun,$(ERLANG_P1_STUN_VERSION)) ERLANG_P1_STUN_LICENSE = Apache-2.0 ERLANG_P1_STUN_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 12/14 erlang-p1-sip: Bump to version 1.0.17
In reply to Johan OudinetAdapt the patch that removes rebar dependencies to version changes.
--- .../0002-remove-dependencies-from-rebar-config.patch | 10 +++++----- package/erlang-p1-sip/erlang-p1-sip.hash | 2 +- package/erlang-p1-sip/erlang-p1-sip.mk | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)
package/erlang-p1-sip/0002-remove-dependencies-from-rebar-config.patch +5 -5
@@ -4,16 +4,16 @@ by rebar at build time. Signed-off-by: Christophe Romain <[email protected]> diff --git a/rebar.config b/rebar.config -index fbc69a1..6250420 100644 +index ed93134..5b32788 100644 --- a/rebar.config +++ b/rebar.config -@@ -29,10 +29,6 @@ +@@ -31,10 +31,6 @@ {port_specs, [{"priv/lib/esip_drv.so", ["c_src/esip_codec.c"]}]}. --{deps, [{stun, ".*", {git, "https://github.com/processone/stun", {tag, "1.0.10"}}}, -- {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.11"}}}, -- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.7"}}}]}. +-{deps, [{stun, ".*", {git, "https://github.com/processone/stun", {tag, "1.0.16"}}}, +- {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.17"}}}, +- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}. - {clean_files, ["c_src/esip_codec.gcda", "c_src/esip_codec.gcno"]}.
package/erlang-p1-sip/erlang-p1-sip.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 2c6ed00220ead631a4755000ad9f118d79c8c4d41aa7c98bd27365a8345f9a5d erlang-p1-sip-1.0.11.tar.gz +sha256 6ac36594921561d0d5502bb824b7408223a3f53560a9d2fa4b0f685c0441baf0 erlang-p1-sip-1.0.17.tar.gz
package/erlang-p1-sip/erlang-p1-sip.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_SIP_VERSION = 1.0.11 +ERLANG_P1_SIP_VERSION = 1.0.17 ERLANG_P1_SIP_SITE = $(call github,processone,esip,$(ERLANG_P1_SIP_VERSION)) ERLANG_P1_SIP_LICENSE = Apache-2.0 ERLANG_P1_SIP_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 13/14 erlang-p1-yaml: Bump to version 1.0.12
In reply to Johan OudinetAdapt the patch that removes rebar dependencies to version changes.
--- .../erlang-p1-yaml/0001-remove-dependencies-from-rebar-config.patch | 4 ++-- package/erlang-p1-yaml/erlang-p1-yaml.hash | 2 +- package/erlang-p1-yaml/erlang-p1-yaml.mk | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
package/erlang-p1-yaml/0001-remove-dependencies-from-rebar-config.patch +2 -2
@@ -4,14 +4,14 @@ by rebar at build time. Signed-off-by: Christophe Romain <[email protected]> diff --git a/rebar.config b/rebar.config -index 68ffdeb..651a829 100644 +index e09d08d..651a829 100644 --- a/rebar.config +++ b/rebar.config @@ -24,8 +24,6 @@ {port_env, [{"CFLAGS", "$CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lyaml"}]}. {port_specs, [{"priv/lib/fast_yaml.so", ["c_src/fast_yaml.c"]}]}. --{deps, [{p1_utils, ".*", {git, "git://github.com/processone/p1_utils", {tag, "1.0.7"}}}]}. +-{deps, [{p1_utils, ".*", {git, "git://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}. - {clean_files, ["c_src/fast_yaml.gcda", "c_src/fast_yaml.gcno"]}.
package/erlang-p1-yaml/erlang-p1-yaml.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 bf225023168873affd2c67a2ce5c6c81c3db0c7df4f0caa113f23770c7b04e05 erlang-p1-yaml-1.0.9.tar.gz +sha256 5a6499a47cdd1f753a527cb8b79074312354063535adc0ca0fd7f72c2a015e3a erlang-p1-yaml-1.0.12.tar.gz
package/erlang-p1-yaml/erlang-p1-yaml.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ERLANG_P1_YAML_VERSION = 1.0.9 +ERLANG_P1_YAML_VERSION = 1.0.12 ERLANG_P1_YAML_SITE = $(call github,processone,fast_yaml,$(ERLANG_P1_YAML_VERSION)) ERLANG_P1_YAML_LICENSE = Apache-2.0 ERLANG_P1_YAML_LICENSE_FILES = LICENSE.txt
Signature · 1 line
2.14.1
PATCH 14/14 ejabberd: Bump to version 17.11
In reply to Johan Oudinet* Adapt all patches.
* Use the new configure option enable-system-deps even though there is still a patch needed to correct includes.
* Disable graphics to not depends on X libraries. Disable also mod_avatar from the default loaded modules, since this module requires graphics enabled.
* Add a configure option to specify the Erlang cookie for users that do not want a random cookie generated at first boot.
--- .../0001-remove-make-targets-for-deps.patch | 5 +- ...002-remove-dependencies-from-rebar-config.patch | 82 +- package/ejabberd/0004-correct-include.patch | 58 - package/ejabberd/0004-correct-includes.patch | 1909 ++++++++++++++++++++ package/ejabberd/0007-fix-ejabberdctl.patch | 34 +- .../0008-handle-error-case-from-lib_dir.patch | 28 + .../0008-rebar-uses-host-dependencies.patch | 33 - package/ejabberd/0009-disable-mod_avatar.patch | 32 + package/ejabberd/Config.in | 10 + package/ejabberd/ejabberd.hash | 2 +- package/ejabberd/ejabberd.mk | 38 +- 11 files changed, 2082 insertions(+), 149 deletions(-) delete mode 100644 package/ejabberd/0004-correct-include.patch create mode 100644 package/ejabberd/0004-correct-includes.patch create mode 100644 package/ejabberd/0008-handle-error-case-from-lib_dir.patch delete mode 100644 package/ejabberd/0008-rebar-uses-host-dependencies.patch create mode 100644 package/ejabberd/0009-disable-mod_avatar.patch
package/ejabberd/0001-remove-make-targets-for-deps.patch +3 -2
@@ -9,10 +9,10 @@ using rebar at build time. Signed-off-by: Frank Hunleth <[email protected]> diff --git a/Makefile.in b/Makefile.in -index a0b4553d..4190a515 100644 +index df2abfdc..8c8fd714 100644 --- a/Makefile.in +++ b/Makefile.in -@@ -77,26 +77,11 @@ else +@@ -86,27 +86,11 @@ else INIT_USER=$(INSTALLUSER) endif
@@ -24,6 +24,7 @@ index a0b4553d..4190a515 100644 -deps/.got: - rm -rf deps/.got - rm -rf deps/.built +- mkdir -p deps - $(REBAR) get-deps && :> deps/.got - -deps/.built: deps/.got
package/ejabberd/0002-remove-dependencies-from-rebar-config.patch +47 -35
134 lines not on this page · raw message
package/ejabberd/0004-correct-include.patch deleted +0 -58
58 lines not on this page · raw message
package/ejabberd/0004-correct-includes.patch new file +1909 -0
1,909 lines not on this page · raw message
package/ejabberd/0007-fix-ejabberdctl.patch +19 -15
@@ -1,28 +1,32 @@ -From 53d7d654026afa163a55b860e33c6901129e8dc1 Mon Sep 17 00:00:00 2001 +From 168d5840dc2a541ec16385e666c1932cf02907e9 Mon Sep 17 00:00:00 2001 From: Johan Oudinet <[email protected]> -Date: Wed, 20 Jan 2016 09:35:07 -0500 +Date: Wed, 10 Jan 2018 15:00:07 +0100 Subject: [PATCH] fix ejabberdctl -Change default values so ejabberdctl run commands as ejabberd user +Change default values so ejabberdctl run commands as ejabberd user. Also add a way for the user to change default values. Signed-off-by: Johan Oudinet <[email protected]> +--- + ejabberdctl.template | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ejabberdctl.template b/ejabberdctl.template -index 5b34ebee..51acaca8 100755 +index 83637766..5a8a8795 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template -@@ -14,9 +14,12 @@ SCRIPT_DIR=`cd ${0%/*} && pwd` - ERL={{erl}} - IEX={{bindir}}/iex - EPMD={{epmd}} --INSTALLUSER={{installuser}} +@@ -15,7 +15,10 @@ SCRIPT_DIR=$(cd "${0%/*}" && pwd) + ERL="{{erl}}" + IEX="{{bindir}}/iex" + EPMD="{{epmd}}" +-INSTALLUSER="{{installuser}}" +INSTALLUSER=ejabberd - ERL_LIBS={{libdir}} - ++ +# Read default configuration file if present +[ ! -r /etc/default/ejabberd ] || . /etc/default/ejabberd -+ - # check the proper system user is used if defined - if [ "$INSTALLUSER" != "" ] ; then - EXEC_CMD="false" + + # check the proper system user is used + case $(id -un) in +-- +2.14.1 +
package/ejabberd/0008-handle-error-case-from-lib_dir.patch new file +28 -0
@@ -0,0 +1,28 @@ +From d0bfcbbfd8a6e7ee6213112e4078b020e4e1d15d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= <[email protected]> +Date: Wed, 10 Jan 2018 16:34:01 +0100 +Subject: [PATCH] Handle error case from code:lib_dir in ResolveDepPath in + rebar.config.script + +--- + rebar.config.script | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/rebar.config.script b/rebar.config.script +index 85f918fffd..ba374e5c5f 100644 +--- a/rebar.config.script ++++ b/rebar.config.script +@@ -233,9 +233,10 @@ ResolveDepPath = case {SystemDeps, IsRebar3} of + {true, _} -> + fun("deps/" ++ Rest) -> + Slash = string:str(Rest, "/"), +- code:lib_dir( +- string:sub_string(Rest, 1, Slash -1)) ++ +- string:sub_string(Rest, Slash); ++ case code:lib_dir(string:sub_string(Rest, 1, Slash -1)) of ++ {error, _} -> Rest; ++ V -> V ++ string:sub_string(Rest, Slash) ++ end; + (Path) -> + Path + end;
package/ejabberd/0008-rebar-uses-host-dependencies.patch deleted +0 -33
@@ -1,33 +0,0 @@ -Fix location of rebar dependencies. - -Signed-off-by: Christophe Romain <[email protected]> - -diff --git a/rebar.config.script b/rebar.config.script -index 19142b9e..9107af26 100644 ---- a/rebar.config.script -+++ b/rebar.config.script -@@ -218,20 +218,10 @@ TestConfig = case file:read_file_info(TestConfigFile) of - "" - end, - --ResolveDepPath = case IsRebar3 of -- true -> -- fun("deps/" ++ Rest) -> -- Slash = string:str(Rest, "/"), -- Dir = "_build/default/lib/" ++ -- string:sub_string(Rest, 1, Slash - 1), -- Dir ++ string:sub_string(Rest, Slash); -- (Path) -> -- Path -- end; -- _ -> -- fun(P) -> -- P -- end -+ResolveDepPath = fun("deps/fast_xml/include") -> code:lib_dir(p1_xml) ++ "/include"; -+ ("deps/xmpp/include") -> code:lib_dir(p1_xmpp) ++ "/include"; -+ ("deps/p1_utils/include") -> code:lib_dir(p1_utils) ++ "/include"; -+ (Path) -> Path - end, - - CtParams = fun(CompileOpts) ->
package/ejabberd/0009-disable-mod_avatar.patch new file +32 -0
@@ -0,0 +1,32 @@ +From e6eac74e82975e7d87b1f59c50eb007ab04c1392 Mon Sep 17 00:00:00 2001 +From: Johan Oudinet <[email protected]> +Date: Tue, 16 Jan 2018 14:29:56 +0100 +Subject: [PATCH] disable mod_avatar + +This module requires to compile with graphics enabled. + +Signed-off-by: Johan Oudinet <[email protected]> +--- + ejabberd.yml.example | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/ejabberd.yml.example b/ejabberd.yml.example +index e178e956..7c12b76c 100644 +--- a/ejabberd.yml.example ++++ b/ejabberd.yml.example +@@ -796,9 +796,9 @@ modules: + search: false + mod_vcard_xupdate: {} + ## Convert all avatars posted by Android clients from WebP to JPEG +- mod_avatar: +- convert: +- webp: jpeg ++ ## mod_avatar: ++ ## convert: ++ ## webp: jpeg + mod_version: {} + mod_stream_mgmt: {} + ## Non-SASL Authentication (XEP-0078) is now disabled by default +-- +2.14.1 +
package/ejabberd/Config.in +10 -0
@@ -27,3 +27,13 @@ config BR2_PACKAGE_EJABBERD comment "ejabberd needs erlang, toolchain w/ C++" depends on !BR2_PACKAGE_ERLANG || !BR2_INSTALL_LIBSTDCPP + +if BR2_PACKAGE_EJABBERD + +config BR2_PACKAGE_EJABBERD_ERLANG_COOKIE + string "Erlang cookie" + help + An alphanumeric string used by Erlang to authenticate nodes. + If empty, erlang creates a random cookie at first execution. + +endif
package/ejabberd/ejabberd.hash +1 -1
@@ -1,2 +1,2 @@ # Locally computed -sha256 b8395bc65b09f135a60320b62338258acd6056cc241e9e245fde267fb18dd3c9 ejabberd-17.04.tgz +sha256 bd16b33a2f1345e5847fd05b70a5fa992181bac756cd6d5d621de9c18cb76801 ejabberd-17.11.tgz
package/ejabberd/ejabberd.mk +33 -5
@@ -4,7 +4,7 @@ # ################################################################################ -EJABBERD_VERSION = 17.04 +EJABBERD_VERSION = 17.11 EJABBERD_SOURCE = ejabberd-$(EJABBERD_VERSION).tgz EJABBERD_SITE = https://www.process-one.net/downloads/ejabberd/$(EJABBERD_VERSION) EJABBERD_LICENSE = GPL-2.0+ with OpenSSL exception
@@ -23,22 +23,38 @@ ifeq ($(BR2_PACKAGE_LINUX_PAM),y) EJABBERD_DEPENDENCIES += linux-pam endif -EJABBERD_ERLANG_LIBS = sasl crypto public_key ssl mnesia inets compiler +# Install check-erlang-lib script to the directory in which the +# package has been uncompressed, so it is available during the +# configure step. +define EJABBERD_INSTALL_CHECK_ERLANG_LIB + $(INSTALL) -m 0755 $(EJABBERD_PKGDIR)/check-erlang-lib \ + $(@D)/check-erlang-lib +endef + +EJABBERD_POST_EXTRACT_HOOKS += EJABBERD_INSTALL_CHECK_ERLANG_LIB + +EJABBERD_ERLANG_LIBS = sasl public_key mnesia inets compiler # Guess answers for these tests, configure will bail out otherwise # saying error: cannot run test program while cross compiling. EJABBERD_CONF_ENV = \ ac_cv_erlang_root_dir="$(HOST_DIR)/lib/erlang" \ $(foreach lib,$(EJABBERD_ERLANG_LIBS), \ - ac_cv_erlang_lib_dir_$(lib)="`package/ejabberd/check-erlang-lib $(lib)`") + ac_cv_erlang_lib_dir_$(lib)="`./check-erlang-lib $(lib)`") + +EJABBERD_CONF_OPTS = \ + --enable-system-deps \ + --disable-erlang-version-check \ + --disable-graphics define EJABBERD_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D) endef -# Replace HOST_DIR prefix to /usr in ERL path of ejabberctl script. +# Replace HOST_DIR prefix to /usr in environment variables of +# ejabberctl script. define EJABBERD_FIX_EJABBERDCTL - $(SED) 's,ERL=$(HOST_DIR),ERL=/usr,' '$(TARGET_DIR)/usr/sbin/ejabberdctl' + $(SED) 's,="$(HOST_DIR),="/usr,' '$(TARGET_DIR)/usr/sbin/ejabberdctl' endef EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_FIX_EJABBERDCTL
@@ -52,4 +68,16 @@ define EJABBERD_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S50ejabberd endef +# Install an Erlang cookie if any is provided. +ifneq ($(call qstrip,$(BR2_PACKAGE_EJABBERD_ERLANG_COOKIE)),) +define EJABBERD_INSTALL_ERLANG_COOKIE + echo $(BR2_PACKAGE_EJABBERD_ERLANG_COOKIE) \ + >'$(TARGET_DIR)/var/lib/ejabberd/.erlang.cookie' +endef +EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_INSTALL_ERLANG_COOKIE +define EJABBERD_PERMISSIONS +/var/lib/ejabberd/.erlang.cookie f 400 ejabberd ejabberd - - - - - +endef +endif + $(eval $(rebar-package))
Signature · 1 line
2.14.1
PATCH 14/14 ejabberd: Bump to version 17.11
Hello,
Quoted 10 lines · Johan Oudinet
* Adapt all patches.
* Use the new configure option enable-system-deps even though there is still a patch needed to correct includes.
* Disable graphics to not depends on X libraries. Disable alsomod_avatarfrom the default loaded modules, since this module requires graphics enabled.
* Add a configure option to specify the Erlang cookie for users that do not want a random cookie generated at first boot.Signed-off-by Johan Oudinet <[email protected]>
Thanks for this update! Can I apply all the erlang package version bumps, even if I don't apply the ejabberd bump ?
More questions/comments below.
Quoted 7 lines
package/ejabberd/0004-correct-includes.patch new file +1
-0@@ -0,0 +1,1909 @@ +From 0487178693143955ff57e3c9371fb6e7b164294c Mon Sep 17 00:00:00 2001
package/ejabberd/0004-correct-includes.patch line 11
Quoted 10 lines
package/ejabberd/0004-correct-includes.patch new file +10
-0+From: Johan Oudinet <[email protected]> +Date: Thu, 11 Jan 2018 12:49:38 +0100 +Subject: [PATCH] correct includes + +This part of the code was moved into it's own project and was packaged +separately by me. To make the build process work, this small fix is +necessary. +Author: Philipp Huebner <[email protected]> + +Signed-off-by: Johan Oudinet <[email protected]>
It is not entirely clear: is this patch already upstream?
package/ejabberd/0004-correct-includes.patch line 18
Quoted 7 lines
package/ejabberd/0004-correct-includes.patch new file +7
-0+if BR2_PACKAGE_EJABBERD + +config BR2_PACKAGE_EJABBERD_ERLANG_COOKIE + string "Erlang cookie" + help + An alphanumeric string used by Erlang to authenticate nodes. + If empty, erlang creates a random cookie at first execution.
Just curious, why is the Erlang cookie part of the Ejabberd configuration?
package/ejabberd/0004-correct-includes.patch line 22
Quoted 4 lines
package/ejabberd/0004-correct-includes.patch new file +4
-0+# Install an Erlang cookie if any is provided. +ifneq ($(call qstrip,$(BR2_PACKAGE_EJABBERD_ERLANG_COOKIE)),) +define EJABBERD_INSTALL_ERLANG_COOKIE + echo $(BR2_PACKAGE_EJABBERD_ERLANG_COOKIE) \
Don't you need to $(call qstrip,...) the variable to remove the double quotes around the value ?
package/ejabberd/0004-correct-includes.patch line 23
Quoted 1 line
package/ejabberd/0004-correct-includes.patch new file +1
-0+ >'$(TARGET_DIR)/var/lib/ejabberd/.erlang.cookie'
Why is this path between single quotes ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 14/14 ejabberd: Bump to version 17.11
Hi Thomas,
Thanks for the quick feedback.
Quoted 11 lines · Thomas Petazzoni
Quoted 9 lines · Johan Oudinet
* Adapt all patches.
* Use the new configure option enable-system-deps even though there is still a patch needed to correct includes.
* Disable graphics to not depends on X libraries. Disable alsomod_avatarfrom the default loaded modules, since this module requires graphics enabled.
* Add a configure option to specify the Erlang cookie for users that do not want a random cookie generated at first boot.
Quoted 4 lines
Quoted 1 line
Signed-off-by Johan Oudinet <[email protected]>Thanks for this update! Can I apply all the erlang package version bumps, even if I don't apply the ejabberd bump ?
Sure. I upgrade them to the same version as the one used by ejabberd to avoid testing for incompatibilities myself but you can apply them separately and it should work fine.
Quoted 12 lines
Quoted 12 lines
package/ejabberd/0004-correct-includes.patch new file +5
-0@@ -0,0 +1,1909 @@ +From 0487178693143955ff57e3c9371fb6e7b164294c Mon Sep 17 00:00:00 2001 +From: Johan Oudinet <[email protected]> +Date: Thu, 11 Jan 2018 12:49:38 +0100 +Subject: [PATCH] correct includes +
Quoted 8 lines
package/ejabberd/0004-correct-includes.patch line 11
Quoted 6 lines
package/ejabberd/0004-correct-includes.patch new file +6
-0+This part of the code was moved into it's own project and was packaged +separately by me. To make the build process work, this small fix is +necessary. +Author: Philipp Huebner <[email protected]> + +Signed-off-by: Johan Oudinet <[email protected]>It is not entirely clear: is this patch already upstream?
I started from Philipp Huebner's patch on Debian's package for ejabberd 17.11, but the patch format was not accepted by buildroot, so I did it myself from ejabberd's git repository and copy-paste Huebner's comment, including the Author line.
I used the following sed command:
for f in src/*.erl include/*.hrl; do
sed -i -e 's,esip/include,s1_sip/include,g' \
-e 's,include("ns.hrl,include_lib("p1_xmpp/include/ns.hrl,g' \
-e 's,include("fxml.hrl,include_lib("p1_xml/include/fxml.hrl,g' \
-e 's,include("xmpp\.hrl,include_lib("p1_xmpp/include/xmpp.hrl,g' \
-e 's,include("jid\.hrl,include_lib("p1_xmpp/include/jid.hrl,g' \
"$f"done
What do you recommend me to do? I don't care of having my name in this patch.
Quoted 10 lines
package/ejabberd/0004-correct-includes.patch line 18
Quoted 7 lines
package/ejabberd/0004-correct-includes.patch new file +7
-0+if BR2_PACKAGE_EJABBERD + +config BR2_PACKAGE_EJABBERD_ERLANG_COOKIE + string "Erlang cookie" + help + An alphanumeric string used by Erlang to authenticate nodes. + If empty, erlang creates a random cookie at first execution.Just curious, why is the Erlang cookie part of the Ejabberd configuration?
Good point. I added this functionality at the end of testing this version to help me adding such file in the home directory of ejabberd user for read-only rootfs. However, you right, it does not make much sense to have this in Ejabberd configuration and it cannot be added in Erlang's configuration neither, as the location depends on the user who starts an Erlang application. It should be done in a post-build. I guess I simply get rid of it in a second version of this patch. What do you think?
Quoted 7 lines
package/ejabberd/0004-correct-includes.patch line 22
Quoted 4 lines
package/ejabberd/0004-correct-includes.patch new file +4
-0+# Install an Erlang cookie if any is provided. +ifneq ($(call qstrip,$(BR2_PACKAGE_EJABBERD_ERLANG_COOKIE)),) +define EJABBERD_INSTALL_ERLANG_COOKIE + echo $(BR2_PACKAGE_EJABBERD_ERLANG_COOKIE) \Don't you need to $(call qstrip,...) the variable to remove the double quotes around the value ?
I had written in a previous version :
echo '$(call qstrip, $(FOO))' >'$(BAR)'
but figured out the quotes would be removed by the shell when executing the echo command, so I could simplify it by removing both the single quotes and the call to qstrip.
Quoted 4 lines
package/ejabberd/0004-correct-includes.patch line 23
Quoted 2 lines
package/ejabberd/0004-correct-includes.patch new file +1
-0+ >'$(TARGET_DIR)/var/lib/ejabberd/.erlang.cookie'Why is this path between single quotes ?
In case TARGET_DIR has spaces.
Best,
Signature · 1 line
Johan
PATCH 14/14 ejabberd: Bump to version 17.11
Hello,
Quoted 6 lines · Johan Oudinet
Quoted 2 lines
Thanks for this update! Can I apply all the erlang package version bumps, even if I don't apply the ejabberd bump ?
Sure. I upgrade them to the same version as the one used by ejabberd to avoid testing for incompatibilities myself but you can apply them separately and it should work fine.
OK, thanks. This way I can apply the 13 first patches, and we can resolve the remaining questions on PATCH 14/14 separately.
Quoted 14 lines
Quoted 1 line
It is not entirely clear: is this patch already upstream?
I started from Philipp Huebner's patch on Debian's package for ejabberd 17.11, but the patch format was not accepted by buildroot, so I did it myself from ejabberd's git repository and copy-paste Huebner's comment, including the Author line.
I used the following sed command:
for f in src/*.erlinclude/*.hrl; dosed -i -e 's,esip/include,s1_sip/include,g' \ -e 's,include("ns.hrl,include_lib("p1_xmpp/include/ns.hrl,g' \ -e 's,include("fxml.hrl,include_lib("p1_xml/include/fxml.hrl,g' \ -e 's,include("xmpp\.hrl,include_lib("p1_xmpp/include/xmpp.hrl,g' \ -e 's,include("jid\.hrl,include_lib("p1_xmpp/include/jid.hrl,g' \ "$f"
Quoted 3 lines
done
What do you recommend me to do? I don't care of having my name in this patch.
That does not really answer the question I was asking: is the patch upstream? Has it been submitted? Will it be accepted?
Quoted 9 lines
Quoted 8 lines
package/ejabberd/Config.in config BR2_PACKAGE_EJABBERD · line 37
Quoted 5 lines
package/ejabberd/Config.in +5
-0+config BR2_PACKAGE_EJABBERD_ERLANG_COOKIE + string "Erlang cookie" + help + An alphanumeric string used by Erlang to authenticate nodes. + If empty, erlang creates a random cookie at first execution.Just curious, why is the Erlang cookie part of the Ejabberd configuration?
Quoted 8 lines
Good point. I added this functionality at the end of testing this version to help me adding such file in the home directory of ejabberd user for read-only rootfs. However, you right, it does not make much sense to have this in Ejabberd configuration and it cannot be added in Erlang's configuration neither, as the location depends on the user who starts an Erlang application. It should be done in a post-build. I guess I simply get rid of it in a second version of this patch. What do you think?
According to your description, it clearly doesn't seem to be related to the version bump, so whatever solution is chosen, it should be implemented as a separate patch from the version bump.
Since I don't understand what this cookie is, I can't really suggest what is the good way to do it. For sure a post-build script + custom permission table allows to do that, so your option is not strictly necessary. But if everybody using ejabberd has to create this cookie file, it might make sense to have an option for it.
If I understand correctly, this cookie is unique per machine, but must be preserved across reboots. Correct ?
Also, this cookie is not system-wide, i.e each Erlang application, or at least each user (in the sense of /etc/passwd) must have this cookie for Erlang applications to not generate one upon first execution. Correct ?
Quoted 7 lines
I had written in a previous version :
echo '$(call qstrip, $(FOO))' >'$(BAR)'
but figured out the quotes would be removed by the shell when executing the echo command, so I could simplify it by removing both the single quotes and the call to qstrip.Quoted 1 line
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
+ >'$(TARGET_DIR)/var/lib/ejabberd/.erlang.cookie'
Why is this path between single quotes ?
In case
TARGET_DIRhas spaces.
There are gazillions of places where we don't quote STAGING_DIR/TARGET_DIR. We don't support spaces in the path to Buildroot directories currently, I'm sure lots of things would break if you were to build in a folder with spaces.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 14/14 ejabberd: Bump to version 17.11
Quoted 16 lines · Thomas Petazzoni
Quoted 16 lines
Quoted 1 line
It is not entirely clear: is this patch already upstream?
I started from Philipp Huebner's patch on Debian's package for ejabberd 17.11, but the patch format was not accepted by buildroot, so I did it myself from ejabberd's git repository and copy-paste Huebner's comment, including the Author line.
I used the following sed command:
for f in src/*.erlinclude/*.hrl; dosed -i -e 's,esip/include,s1_sip/include,g' \ -e 's,include("ns.hrl,include_lib("p1_xmpp/include/ns.hrl,g' \ -e 's,include("fxml.hrl,include_lib("p1_xml/include/fxml.hrl,g' \ -e 's,include("xmpp\.hrl,include_lib("p1_xmpp/include/xmpp.hrl,g' \ -e 's,include("jid\.hrl,include_lib("p1_xmpp/include/jid.hrl,g' \ "$f"done
Quoted 4 lines
Quoted 1 line
What do you recommend me to do? I don't care of having my name in this patch.
That does not really answer the question I was asking: is the patch upstream? Has it been submitted? Will it be accepted?
This patch is in Debian but not in Ejabberd's upstream. I've talked by email about this issue to people from Ejabberd and they told me they will look into it.
In the meantime, this patch is necessary to compile Ejabberd as we install these external libraries separately.
Quoted 28 lines
Quoted 9 lines
Quoted 8 lines
package/ejabberd/Config.in config BR2_PACKAGE_EJABBERD · line 37
Quoted 5 lines
package/ejabberd/Config.in +5
-0+config BR2_PACKAGE_EJABBERD_ERLANG_COOKIE + string "Erlang cookie" + help + An alphanumeric string used by Erlang to authenticate nodes. + If empty, erlang creates a random cookie at first execution.Just curious, why is the Erlang cookie part of the Ejabberd configuration?
Quoted 8 lines
Good point. I added this functionality at the end of testing this version to help me adding such file in the home directory of ejabberd user for read-only rootfs. However, you right, it does not make much sense to have this in Ejabberd configuration and it cannot be added in Erlang's configuration neither, as the location depends on the user who starts an Erlang application. It should be done in a post-build. I guess I simply get rid of it in a second version of this patch. What do you think?
According to your description, it clearly doesn't seem to be related to the version bump, so whatever solution is chosen, it should be implemented as a separate patch from the version bump.
Since I don't understand what this cookie is, I can't really suggest what is the good way to do it. For sure a post-build script + custom permission table allows to do that, so your option is not strictly necessary. But if everybody using ejabberd has to create this cookie file, it might make sense to have an option for it.
Quoted 7 lines
If I understand correctly, this cookie is unique per machine, but must be preserved across reboots. Correct ?
Also, this cookie is not system-wide, i.e each Erlang application, or at least each user (in the sense of
/etc/passwd) must have this cookie for Erlang applications to not generate one upon first execution. Correct ?
Actually, this cookie is an authentication token to determine which Erlang applications are allowed to communicate with each other. These applications can be local or remote.
The official documentation about this cookie is here:
http://erlang.org/doc/reference_manual/distributed.html#id89236
So for Ejabberd, if I want to deploy a distributed xmpp server, I make sure all machines in the deployment have the same content in /var/lib/ejabberd/.erlang.cookie and that this file is preserved across reboots.
Another solution would be to start every application with an extra parameter --setcookie
Anyway, this is not related to the version bump.
Quoted 9 lines
Quoted 9 lines
I had written in a previous version :
echo '$(call qstrip, $(FOO))' >'$(BAR)'
but figured out the quotes would be removed by the shell when executing the echo command, so I could simplify it by removing both the single quotes and the call to qstrip.Quoted 3 lines
Quoted 2 lines
+ >'$(TARGET_DIR)/var/lib/ejabberd/.erlang.cookie'
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Why is this path between single quotes ?
In case
TARGET_DIRhas spaces.There are gazillions of places where we don't quote STAGING_DIR/TARGET_DIR. We don't support spaces in the path to Buildroot directories currently, I'm sure lots of things would break if you were to build in a folder with spaces.
Ok.
Signature · 1 line
Johan
cover Bump ejabberd version to 17.04
In reply to Johan OudinetHello,
Quoted 18 lines · Johan Oudinet
Ejabberd has many dependencies. Bump all of them to the versions needed by ejabberd-17.11.
Johan Oudinet (14):
erlang-lager: Bump to version 3.4.2
erlang-p1-utils: Bump to version 1.0.10
erlang-p1-zlib: Bump to version 1.0.3
erlang-p1-xml: Bump to version 1.1.25
erlang-stringprep: Bump to version 1.0.10
erlang-p1-xmpp: Bump to version 1.1.16
erlang-p1-cache-tab: Bump to version 1.0.12
erlang-p1-iconv: Bump to version 1.0.6
erlang-p1-oauth2: Bump to version 0.6.2
erlang-p1-tls: Bump to version 1.0.17
erlang-p1-stun: Bump to version 1.0.16
erlang-p1-sip: Bump to version 1.0.17
erlang-p1-yaml: Bump to version 1.0.12
ejabberd: Bump to version 17.11
I've applied patches 1 to 13, and marked patch 14 as Changes Requested in patchwork.
There was a minor issue on the erlang-p1-xmpp patch, I'll reply separately to this one.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com