diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2019-04-02 14:27:42 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2019-04-02 14:29:04 +0200 |
commit | edc73a669e7ef0525ffad215fea70cb24876d6cf (patch) | |
tree | eb1fb1f2010dfbe12af1690994b54ca7b6afcb8a /net-im/pidgin/files | |
parent | sys-apps/makedev: alpha stable wrt bug #679452 (diff) | |
download | gentoo-edc73a669e7ef0525ffad215fea70cb24876d6cf.tar.gz gentoo-edc73a669e7ef0525ffad215fea70cb24876d6cf.tar.bz2 gentoo-edc73a669e7ef0525ffad215fea70cb24876d6cf.zip |
net-im/pidgin: Revbump adding python3 support
and use [${PYTHON_USEDEP}] for dev-python/dbus-python package
Closes: https://bugs.gentoo.org/459996
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'net-im/pidgin/files')
-rw-r--r-- | net-im/pidgin/files/pidgin-2.13.0-python3_support.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-im/pidgin/files/pidgin-2.13.0-python3_support.patch b/net-im/pidgin/files/pidgin-2.13.0-python3_support.patch new file mode 100644 index 000000000000..19ece4a9a223 --- /dev/null +++ b/net-im/pidgin/files/pidgin-2.13.0-python3_support.patch @@ -0,0 +1,37 @@ +# HG changeset patch +# User John Bailey <rekkanoryo@rekkanoryo.org> +# Date 1527918187 14400 +# Sat Jun 02 01:43:07 2018 -0400 +# Branch upstream-fedora-patches +# Node ID ab3a54cf9afbd2a1cb6736c7ee424d8fc82e7b14 +# Parent de18cefddad5ffe593a192f3a20f6f91165ab516 +Modified Jan Synacek's purple-remote python3 compatibility patch to make it +compatible with both python2 and python3. + +diff --git a/COPYRIGHT b/COPYRIGHT +--- a/COPYRIGHT ++++ b/COPYRIGHT +@@ -544,6 +544,7 @@ + Sun Microsystems + Marcus Sundberg + Mårten Svantesson (fursten) ++Jan Synacek <jsynacek@redhat.com> + Amir Szekely (kichik) + Gábor Szuromi (kukkerman) + Jakub Szypulka +diff --git a/libpurple/purple-remote b/libpurple/purple-remote +--- a/libpurple/purple-remote ++++ b/libpurple/purple-remote +@@ -14,7 +14,11 @@ + import xml.dom.minidom + + sys.stdin = codecs.getwriter('utf-8')(sys.stdin); +-sys.stdout = codecs.getwriter('utf-8')(sys.stdout); ++ ++if(sys.version_info > (3,0)): ++ sys.stdout = codecs.getwriter('utf-8')(sys.stdout.detach()); ++else: ++ sys.stdout = codecs.getwriter('utf-8')(sys.stdout); + + xml.dom.minidom.Element.all = xml.dom.minidom.Element.getElementsByTagName + |