[packages/python-pyxmpp] Added workaround for OpenFire bug, Release: 2

jajcus jajcus at pld-linux.org
Tue Nov 20 17:38:36 CET 2012


commit b184af7a51e41b865fbe3d2f9ea8c3e74c8e747d
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Tue Nov 20 17:38:13 2012 +0100

    Added workaround for OpenFire bug, Release: 2

 python-pyxmpp-openfire_bug.patch | 25 +++++++++++++++++++++++++
 python-pyxmpp.spec               |  4 +++-
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/python-pyxmpp.spec b/python-pyxmpp.spec
index b24470b..f4f15e1 100644
--- a/python-pyxmpp.spec
+++ b/python-pyxmpp.spec
@@ -2,11 +2,12 @@ Summary:	Jabber/XMPP package for Python
 Summary(pl.UTF-8):	Biblioteka Jabber/XMPP dla Pythona
 Name:		python-pyxmpp
 Version:	1.1.2
-Release:	1
+Release:	2
 License:	LGPL
 Group:		Libraries/Python
 Source0:	http://cloud.github.com/downloads/Jajcus/pyxmpp/pyxmpp-%{version}.tar.gz
 # Source0-md5:	a38abf032aca0408b6055cd94296eb75
+Patch0:		%{name}-openfire_bug.patch
 URL:		http://pyxmpp.jajcus.net/
 BuildRequires:	libxml2-devel >= 2.6.19
 BuildRequires:	python-devel >= 1:2.6
@@ -25,6 +26,7 @@ Ten pakiet udostępnia interfejs Pythona do protokołów XMPP i Jabber.
 
 %prep
 %setup -qn pyxmpp-%{version}
+%patch0 -p1
 
 %build
 export CFLAGS="%{rpmcflags}"
diff --git a/python-pyxmpp-openfire_bug.patch b/python-pyxmpp-openfire_bug.patch
new file mode 100644
index 0000000..cae4a3a
--- /dev/null
+++ b/python-pyxmpp-openfire_bug.patch
@@ -0,0 +1,25 @@
+commit 43e00488a1b7845da37702235c37f692e4f28829
+Author: Jacek Konieczny <jajcus at jajcus.net>
+Date:   Tue Aug 23 09:58:02 2011 +0200
+
+    Workaround for OpenFire <bind/> reply bug
+    
+    closes #27
+
+diff --git a/pyxmpp/stanzaprocessor.py b/pyxmpp/stanzaprocessor.py
+index 4192307..7a052ff 100644
+--- a/pyxmpp/stanzaprocessor.py
++++ b/pyxmpp/stanzaprocessor.py
+@@ -264,6 +264,12 @@ class StanzaProcessor:
+         self.fix_in_stanza(stanza)
+         to=stanza.get_to()
+ 
++        if to and to.node == None and (not self.me
++                                        or to.domain == self.me.domain):
++            # workaround for OpenFire bug
++            # http://community.igniterealtime.org/thread/35966
++            to = None
++
+         if not self.process_all_stanzas and to and to!=self.me and to.bare()!=self.me.bare():
+             return self.route_stanza(stanza)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyxmpp.git/commitdiff/b184af7a51e41b865fbe3d2f9ea8c3e74c8e747d



More information about the pld-cvs-commit mailing list