ejabberd - Comments for "View other groups(shared rosters) from another domain" https://www.ejabberd.im/node/4869 en You better: cd https://www.ejabberd.im/node/4869#comment-57710 <p>You better:</p> <p>cd ejabberd-2.1.8<br /> patch -p1 &lt; 506-displayhost.diff<br /> cd src<br /> make<br /> ...</p> Tue, 09 Aug 2011 21:10:00 +0000 mfoss comment 57710 at https://www.ejabberd.im Sorry for the late reply https://www.ejabberd.im/node/4869#comment-57688 <p>Sorry for the late reply badlop..<br /> It worked for me! Thanks</p> <p>No bugs so far, I'll report them if I found one.</p> <p>I'm concerned though about the output during patching.."Hunk #1 FAILED at 4087.", or should I just ignore that?</p> <pre> root@im-test:~/ejabberd-2.1.8/src# patch -p 506 &lt; 506-displayhost.diff can't find file to patch at input line 16 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 71c844a64ed9d334752b00febeb2f7391ea7c56e Mon Sep 17 00:00:00 2001 |From: Badlop |Date: Wed, 27 Jul 2011 10:20:22 +0200 |Subject: [PATCH] Preliminary support for groupname@vhost in Displayed Groups | (EJAB-506) | |--- | doc/guide.tex | 5 +++-- | src/mod_shared_roster.erl | 17 ++++++++++++++--- | 2 files changed, 17 insertions(+), 5 deletions(-) | |diff --git a/doc/guide.tex b/doc/guide.tex |index 5939a9e..c0b5be9 100644 |--- a/doc/guide.tex |+++ b/doc/guide.tex -------------------------- File to patch: mod_shared_roster.erl patching file mod_shared_roster.erl Hunk #1 FAILED at 4087. 1 out of 1 hunk FAILED -- saving rejects to file mod_shared_roster.erl.rej can't find file to patch at input line 32 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl |index 286cac9..454db73 100644 |--- a/src/mod_shared_roster.erl |+++ b/src/mod_shared_roster.erl -------------------------- File to patch: mod_shared_roster.erl patching file mod_shared_roster.erl </pre> Sun, 07 Aug 2011 01:01:00 +0000 ejabb3rd comment 57688 at https://www.ejabberd.im ejabb3rd wrote: Should I use https://www.ejabberd.im/node/4869#comment-57676 <div class="quote-msg"> <div class="quote-author"><em>ejabb3rd</em> wrote:</div> <p>Should I use both 506-allhost.diff and 506-displayhost.diff? </p></div> <p>Only 506-displayhost.diff</p> <div class="quote-msg"> <div class="quote-author"><em>ejabb3rd</em> wrote:</div> <p>Also, I'm sorry I'm not familiar on installing or using a diff file. I just used the Ejabberd's packaged installer from the site. Can I just add the patch<br /> or do I need to reinstall Ejabberd<br /> but this time from source code instead of the .bin installer? </p></div> <p>The patch only modifies the file mod_shared_roster.erl You can get that file from ejabberd source code, apply the patch to the file, compile the file, copy the result beam to your current installation, and restart ejabberd.</p> Tue, 02 Aug 2011 14:54:18 +0000 mfoss comment 57676 at https://www.ejabberd.im Thanks for the response. https://www.ejabberd.im/node/4869#comment-57664 <p>Thanks for the response. Should I use both 506-allhost.diff and 506-displayhost.diff?</p> <p>Also, I'm sorry I'm not familiar on installing or using a diff file. I just used the Ejabberd's packaged installer from the site. Can I just add the patch or do I need to reinstall Ejabberd but this time from source code instead of the .bin installer?</p> <p>Thanks again.</p> Sat, 30 Jul 2011 07:39:32 +0000 ejabb3rd comment 57664 at https://www.ejabberd.im Same response that in the https://www.ejabberd.im/node/4869#comment-57657 <p>Same response that in the ejabberd mailing list:</p> <p>I've uploaded a new patch to<br /> <noindex><a href="https://support.process-one.net/browse/EJAB-506" title="https://support.process-one.net/browse/EJAB-506" rel="nofollow" >https://support.process-one.net/browse/EJAB-506</a></noindex><br /> that supports the syntax groupid@vhost in displayed_groups.</p> <p>That patch would allow this to work:<br /> In domain1 create the group ma with some members and display: hr it@domain2<br /> In domain1 create the group hr with some members and display: ma it@domain2<br /> In domain2 create the group it with member: @all@ and display:<br /> ma@domain1 hr@domain1<br /> You will have to constantly add members to ma and hr.</p> <p>Or more automatic:<br /> In domain1 create the group mahr with member: @all@ and display: it@domain2<br /> In domain2 create the group it with member: @all@ and display: mahr@domain1</p> Wed, 27 Jul 2011 14:43:21 +0000 mfoss comment 57657 at https://www.ejabberd.im