diff options
-rw-r--r-- | dev-dotnet/dbus-sharp/ChangeLog | 12 | ||||
-rw-r--r-- | dev-dotnet/dbus-sharp/dbus-sharp-0.7.0-r1.ebuild | 30 | ||||
-rw-r--r-- | dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals.patch | 28 | ||||
-rw-r--r-- | dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals2.patch | 26 |
4 files changed, 94 insertions, 2 deletions
diff --git a/dev-dotnet/dbus-sharp/ChangeLog b/dev-dotnet/dbus-sharp/ChangeLog index efa100538a20..11f08faf55f0 100644 --- a/dev-dotnet/dbus-sharp/ChangeLog +++ b/dev-dotnet/dbus-sharp/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-dotnet/dbus-sharp -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/dbus-sharp/ChangeLog,v 1.16 2011/11/10 19:19:14 xarthisius Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/dbus-sharp/ChangeLog,v 1.17 2012/01/21 13:22:06 pacho Exp $ + +*dbus-sharp-0.7.0-r1 (21 Jan 2012) + + 21 Jan 2012; Pacho Ramos <pacho@gentoo.org> +dbus-sharp-0.7.0-r1.ebuild, + +files/dbus-sharp-0.7.0-fix-signals.patch, + +files/dbus-sharp-0.7.0-fix-signals2.patch: + Fix signals not being passed to tomboy properly, bug #387097 by Hans de + Graaff. 10 Nov 2011; Kacper Kowalik <xarthisius@gentoo.org> dbus-sharp-0.7.0.ebuild: ppc stable wrt #389181 diff --git a/dev-dotnet/dbus-sharp/dbus-sharp-0.7.0-r1.ebuild b/dev-dotnet/dbus-sharp/dbus-sharp-0.7.0-r1.ebuild new file mode 100644 index 000000000000..981c9387eb0f --- /dev/null +++ b/dev-dotnet/dbus-sharp/dbus-sharp-0.7.0-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/dbus-sharp/dbus-sharp-0.7.0-r1.ebuild,v 1.1 2012/01/21 13:22:05 pacho Exp $ + +EAPI="4" +inherit mono eutils + +DESCRIPTION="D-Bus for .NET" +HOMEPAGE="https://github.com/mono/dbus-sharp" +SRC_URI="https://github.com/downloads/mono/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="dev-lang/mono + sys-apps/dbus" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +pkg_setup() { + DOCS="AUTHORS README" +} + +src_prepare() { + # Fix signals, bug #387097 + epatch "${FILESDIR}/${P}-fix-signals.patch" + epatch "${FILESDIR}/${P}-fix-signals2.patch" +} diff --git a/dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals.patch b/dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals.patch new file mode 100644 index 000000000000..934d7630d164 --- /dev/null +++ b/dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals.patch @@ -0,0 +1,28 @@ +From 608328ba1e0ccc8d0387c244793b229bcc184648 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Laval?= <jeremie.laval@gmail.com> +Date: Fri, 10 Dec 2010 15:03:12 +0000 +Subject: [PATCH] Disable broken matching on sender for signals. Fix issue #8. + +--- + src/BusObject.cs | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/src/BusObject.cs b/src/BusObject.cs +index e12207e..fe32b72 100644 +--- a/src/BusObject.cs ++++ b/src/BusObject.cs +@@ -56,7 +56,10 @@ public void ToggleSignal (string iface, string member, Delegate dlg, bool adding + rule.Fields.Add (FieldCode.Interface, new MatchTest (iface)); + rule.Fields.Add (FieldCode.Member, new MatchTest (member)); + rule.Fields.Add (FieldCode.Path, new MatchTest (object_path)); +- rule.Fields.Add (FieldCode.Sender, new MatchTest (alt_bus_name ?? bus_name)); ++ // FIXME: Cause a regression compared to 0.6 as name wasn't matched before ++ // the problem arises because busname is not used by DBus daemon and ++ // instead it uses the canonical name of the sender (i.e. similar to ':1.13') ++ //rule.Fields.Add (FieldCode.Sender, new MatchTest (alt_bus_name ?? bus_name)); + + if (adding) { + if (conn.Handlers.ContainsKey (rule)) +-- +1.7.5.4 + diff --git a/dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals2.patch b/dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals2.patch new file mode 100644 index 000000000000..d74361c08019 --- /dev/null +++ b/dev-dotnet/dbus-sharp/files/dbus-sharp-0.7.0-fix-signals2.patch @@ -0,0 +1,26 @@ +From 76f43e6cc25eae25b658831111b37b10376311d2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Laval?= <jeremie.laval@gmail.com> +Date: Thu, 10 Feb 2011 17:31:38 +0000 +Subject: [PATCH] Remove sender match check on receiving side too. Properly + fix issue 8. + +--- + src/Connection.cs | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/Connection.cs b/src/Connection.cs +index b414994..e593db9 100644 +--- a/src/Connection.cs ++++ b/src/Connection.cs +@@ -278,7 +278,7 @@ internal void HandleSignal (Message msg) + rule.MessageType = MessageType.Signal; + rule.Fields.Add (FieldCode.Interface, new MatchTest (signal.Interface)); + rule.Fields.Add (FieldCode.Member, new MatchTest (signal.Member)); +- rule.Fields.Add (FieldCode.Sender, new MatchTest (signal.Sender)); ++ //rule.Fields.Add (FieldCode.Sender, new MatchTest (signal.Sender)); + rule.Fields.Add (FieldCode.Path, new MatchTest (signal.Path)); + + Delegate dlg; +-- +1.7.5.4 + |