From: Yann Dirson <ydirson@free.fr>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 1/2] python-xdg: prevent infinite recursion in xdg.DesktopEntry.__cmp__().
Date: Wed, 4 Aug 2010 01:01:20 +0200 [thread overview]
Message-ID: <20100803230120.GN4752@home.lan> (raw)
In-Reply-To: <1280798728-13412-1-git-send-email-ydirson@altern.org>
Delete cmp method which has been dropped from later releases.
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
recipes/python/python-pyxdg/desktopentry-cmp.patch | 15 +++++++++++++++
recipes/python/python-pyxdg_0.15.bb | 4 +++-
2 files changed, 18 insertions(+), 1 deletions(-)
create mode 100644 recipes/python/python-pyxdg/desktopentry-cmp.patch
diff --git a/recipes/python/python-pyxdg/desktopentry-cmp.patch b/recipes/python/python-pyxdg/desktopentry-cmp.patch
new file mode 100644
index 0000000..bb2905a
--- /dev/null
+++ b/recipes/python/python-pyxdg/desktopentry-cmp.patch
@@ -0,0 +1,15 @@
+This method definition causes an infinite recursion, and has been dropped
+from later releases.
+
+--- pyxdg-0.15/xdg/DesktopEntry.py.orig 2010-08-03 03:01:34.000000000 +0200
++++ pyxdg-0.15/xdg/DesktopEntry.py 2010-08-03 03:01:46.000000000 +0200
+@@ -29,9 +29,6 @@
+ def __str__(self):
+ return self.getName()
+
+- def __cmp__(self, other):
+- return cmp(self, other)
+-
+ def parse(self, file):
+ IniFile.parse(self, file, ["Desktop Entry", "KDE Desktop Entry"])
+
diff --git a/recipes/python/python-pyxdg_0.15.bb b/recipes/python/python-pyxdg_0.15.bb
index 018af50..67b6c97 100644
--- a/recipes/python/python-pyxdg_0.15.bb
+++ b/recipes/python/python-pyxdg_0.15.bb
@@ -1,9 +1,11 @@
DESCRIPTION = "PyXDG is a python library to access freedesktop.org standards"
SECTION = "devel/python"
LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
SRC_URI = "http://www.freedesktop.org/~lanius/pyxdg-${PV}.tar.gz"
+SRC_URI += "file://desktopentry-cmp.patch"
+
S = "${WORKDIR}/pyxdg-${PV}"
inherit distutils
--
1.7.1
next parent reply other threads:[~2010-08-03 22:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1280798728-13412-1-git-send-email-ydirson@altern.org>
2010-08-03 23:01 ` Yann Dirson [this message]
2010-08-04 8:31 ` [PATCH 1/2] python-xdg: prevent infinite recursion in xdg.DesktopEntry.__cmp__() Paul Menzel
2010-08-05 20:53 ` Yann Dirson
[not found] ` <1280798728-13412-2-git-send-email-ydirson@altern.org>
2010-08-03 23:01 ` [PATCH 2/2] gnome-python-desktop: build a separate python-rsvg package Yann Dirson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100803230120.GN4752@home.lan \
--to=ydirson@free.fr \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox