dbus-sharp, dbus-sharp-glib: Added C# managed implementation of D-Bus and GLib bindings
cover dbus-sharp, dbus-sharp-glib: Added C# managed implementation of D-Bus and GLib bindings
Please see following patch
The following changes since commit 7f3178c393a9ad71bcda4e6c3aebbaaf16037d10:
fsharp: Add support for F# programming language v3.1 (2014-03-03 16:46:59 +0000)
are available in the git repository at:
git://git.yoctoproject.org/meta-mono ajl/dbus-sharp
http://git.yoctoproject.org/cgit.cgi/meta-mono/log/?h=ajl/dbus-sharp
Alex J Lennon (1):
dbus-sharp, dbus-sharp-glib: Added C# managed implementation of D-Bus
and GLib bindings
recipes-mono/dbus-sharp-glib/dbus-sharp-glib.inc | 35 ++++++++++++++++++++ .../dbus-sharp-glib/dbus-sharp-glib_0.6.0.bb | 6 ++++ .../fix-message-reader-writer.patch | 29 ++++++++++++++++ recipes-mono/dbus-sharp/dbus-sharp.inc | 31 +++++++++++++++++ recipes-mono/dbus-sharp/dbus-sharp_0.8.0.bb | 9 +++++ 5 files changed, 110 insertions(+) create mode 100644 recipes-mono/dbus-sharp-glib/dbus-sharp-glib.inc create mode 100644 recipes-mono/dbus-sharp-glib/dbus-sharp-glib_0.6.0.bb create mode 100644 recipes-mono/dbus-sharp/dbus-sharp-0.8.0/fix-message-reader-writer.patch create mode 100644 recipes-mono/dbus-sharp/dbus-sharp.inc create mode 100644 recipes-mono/dbus-sharp/dbus-sharp_0.8.0.bb
Signature · 1 line
1.7.9.5
PATCH 1/1 dbus-sharp, dbus-sharp-glib: Added C# managed implementation of D-Bus and GLib bindings
Signed-off-by Alex J Lennon <[email protected]>
--- recipes-mono/dbus-sharp-glib/dbus-sharp-glib.inc | 35 ++++++++++++++++++++ .../dbus-sharp-glib/dbus-sharp-glib_0.6.0.bb | 6 ++++ .../fix-message-reader-writer.patch | 29 ++++++++++++++++ recipes-mono/dbus-sharp/dbus-sharp.inc | 31 +++++++++++++++++ recipes-mono/dbus-sharp/dbus-sharp_0.8.0.bb | 9 +++++ 5 files changed, 110 insertions(+) create mode 100644 recipes-mono/dbus-sharp-glib/dbus-sharp-glib.inc create mode 100644 recipes-mono/dbus-sharp-glib/dbus-sharp-glib_0.6.0.bb create mode 100644 recipes-mono/dbus-sharp/dbus-sharp-0.8.0/fix-message-reader-writer.patch create mode 100644 recipes-mono/dbus-sharp/dbus-sharp.inc create mode 100644 recipes-mono/dbus-sharp/dbus-sharp_0.8.0.bb
recipes-mono/dbus-sharp-glib/dbus-sharp-glib.inc new file +35 -0
@@ -0,0 +1,35 @@ +SUMMARY = "C# implementation of D-Bus GlibC integration module" +DESCRIPTION = "This is a fork of ndesk-dbus-glib, which provides GLib main loop integration for Managed D-Bus." +SECTION = "devel/mono" +DEPENDS = "mono dbus-sharp" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "files://COPYING;md5=ea73672fbe49f67f1c1b44a7e763dab4" + +inherit autotools + +def dbus_sharp_glib_download_version(d): + pvsplit = d.getVar('PV', True).split('.') + return pvsplit[0] + '.' + pvsplit[1] + +SDIRVER = "${@dbus_sharp_glib_download_version(d)}" + +SRC_URI = "https://github.com/mono/dbus-sharp-glib/archive/v${SDIRVER}.tar.gz" + +S = "${WORKDIR}/${PN}-${SDIRVER}" + +FILESPATH =. "${FILE_DIRNAME}/${PN}-${PV}:" + +FILES_${PN} += " \ + ${libdir}/mono/gac/dbus-sharp-glib/2.0.0.0__5675b0c3093115b5/dbus-sharp-glib.dll.config \ + ${libdir}/mono/gac/dbus-sharp-glib/2.0.0.0__5675b0c3093115b5/dbus-sharp-glib.dll \ + ${libdir}/mono/dbus-sharp-glib-2.0/dbus-sharp-glib.dll \ +" + +FILES_${PN}-dbg += " \ + ${libdir}/mono/gac/dbus-sharp-glib/2.0.0.0__5675b0c3093115b5/dbus-sharp-glib.dll.mdb \ +" + +do_configure_prepend() { + export DBUS_SHARP_LIBS="/r:${STAGING_LIBDIR}/mono/dbus-sharp-2.0/dbus-sharp.dll" +} +
recipes-mono/dbus-sharp-glib/dbus-sharp-glib_0.6.0.bb new file +6 -0
@@ -0,0 +1,6 @@ +require dbus-sharp-glib.inc + +inherit pkgconfig + +SRC_URI[md5sum] = "1b00ef8523eb830acaa34b3f6fb8d739" +SRC_URI[sha256sum] = "d337d5a4dbaab2084972f85d175ba30ca87aa6baaa635288f3b37ca71f2d9047"
recipes-mono/dbus-sharp/dbus-sharp-0.8.0/fix-message-reader-writer.patch new file +29 -0
@@ -0,0 +1,29 @@ +diff -ur dbus-sharp-0.8.org/src/Protocol/MessageReader.cs dbus-sharp-0.8/src/Protocol/MessageReader.cs +--- dbus-sharp-0.8.org/src/Protocol/MessageReader.cs 2014-03-03 13:37:15.777082234 +0000 ++++ dbus-sharp-0.8/src/Protocol/MessageReader.cs 2014-03-03 13:38:28.253082420 +0000 +@@ -576,8 +576,8 @@ + int sof = Marshal.SizeOf (fis[0].FieldType); + + unsafe { +- byte* pVal = (byte*)&val; +- DirectCopy (sof, (uint)(fis.Length * sof), (IntPtr)pVal); ++ GCHandle valueHandle = GCHandle.Alloc(val); ++ DirectCopy (sof, (uint)(fis.Length * sof), (IntPtr)valueHandle); + } + + return val; +diff -ur dbus-sharp-0.8.org/src/Protocol/MessageWriter.cs dbus-sharp-0.8/src/Protocol/MessageWriter.cs +--- dbus-sharp-0.8.org/src/Protocol/MessageWriter.cs 2014-03-03 13:37:21.661082245 +0000 ++++ dbus-sharp-0.8/src/Protocol/MessageWriter.cs 2014-03-03 13:38:56.325082508 +0000 +@@ -428,9 +428,8 @@ + if (MessageReader.IsEligibleStruct (typeof (T), fis)) { + byte[] buffer = new byte[Marshal.SizeOf (fis[0].FieldType) * fis.Length]; + unsafe { +- byte* pVal = (byte*)&value; +- Marshal.Copy ((IntPtr)pVal, buffer, 0, buffer.Length); +- } ++ GCHandle valueHandle = GCHandle.Alloc(value); ++ Marshal.Copy ((IntPtr) valueHandle, buffer, 0, buffer.Length); } + stream.Write (buffer, 0, buffer.Length); + return; + }
recipes-mono/dbus-sharp/dbus-sharp.inc new file +31 -0
@@ -0,0 +1,31 @@ +SUMMARY = "C# implementation of D-Bus" +DESCRIPTION = "An inter-process communication framework that lets applications interface with the system event bus as well as allowing them to talk to one another in a peer-to-peer configuration." +SECTION = "devel/mono" +DEPENDS = "mono" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "files://COPYING;md5=09d60852216ea29fdba9ea146513336c" + +inherit autotools + +def dbus_sharp_download_version(d): + pvsplit = d.getVar('PV', True).split('.') + return pvsplit[0] + '.' + pvsplit[1] + +SDIRVER = "${@dbus_sharp_download_version(d)}" + +SRC_URI = "https://github.com/mono/dbus-sharp/archive/v${SDIRVER}.tar.gz" + +S = "${WORKDIR}/${PN}-${SDIRVER}" + +FILESPATH =. "${FILE_DIRNAME}/${PN}-${PV}:" + +FILES_${PN} += " \ + ${libdir}/mono/dbus-sharp-2.0/* \ + ${libdir}/mono/gac/dbus-sharp/2.0.0.0__5675b0c3093115b5/dbus-sharp.dll.config \ + ${libdir}/mono/gac/dbus-sharp/2.0.0.0__5675b0c3093115b5/dbus-sharp.dll \ +" + +FILES_${PN}-dbg += " \ + ${libdir}/mono/gac/dbus-sharp/2.0.0.0__5675b0c3093115b5/dbus-sharp.dll.mdb \ +" +
recipes-mono/dbus-sharp/dbus-sharp_0.8.0.bb new file +9 -0
@@ -0,0 +1,9 @@ +require dbus-sharp.inc + +inherit pkgconfig + +SRC_URI += "file://fix-message-reader-writer.patch" + +SRC_URI[md5sum] = "b63c684b326a20119cdefdddb1fa0578" +SRC_URI[sha256sum] = "efbe1ab0c519efe80fe3498a5836b5d754af87f9b3cff3bf0cbb16d5fc7e0a50" +
Signature · 1 line
1.7.9.5