summaryrefslogtreecommitdiff
path: root/sysutils/dbus-sharp/patches
diff options
context:
space:
mode:
authorobache <obache>2013-06-11 02:29:40 +0000
committerobache <obache>2013-06-11 02:29:40 +0000
commit61c0b7f51144a3bf2bfc9f194ea8f24146fc88e2 (patch)
tree65cd039e260741bddf386f7b3aa6afba29092f0c /sysutils/dbus-sharp/patches
parentf30301cb2a07123bcdb69e42358a9c3540908478 (diff)
downloadpkgsrc-61c0b7f51144a3bf2bfc9f194ea8f24146fc88e2.tar.gz
fixes dbus-sharp dllmap for cross-architecture support,
taken from upstream. Bump PKGREVISION.
Diffstat (limited to 'sysutils/dbus-sharp/patches')
-rw-r--r--sysutils/dbus-sharp/patches/patch-src_Unix.cs16
-rw-r--r--sysutils/dbus-sharp/patches/patch-src_dbus-sharp.dll.config22
2 files changed, 38 insertions, 0 deletions
diff --git a/sysutils/dbus-sharp/patches/patch-src_Unix.cs b/sysutils/dbus-sharp/patches/patch-src_Unix.cs
new file mode 100644
index 00000000000..169fdb18bf9
--- /dev/null
+++ b/sysutils/dbus-sharp/patches/patch-src_Unix.cs
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_Unix.cs,v 1.1 2013/06/11 02:29:40 obache Exp $
+
+* Reverse the way the dllmap for libsocket is handled, by using libc
+ https://github.com/mono/dbus-sharp/commit/1561585d601058392d5864e3add2bac3c67e14a7
+
+--- src/Unix.cs.orig 2010-09-14 09:17:50.000000000 +0000
++++ src/Unix.cs
+@@ -197,7 +197,7 @@ namespace DBus.Unix
+
+ // Solaris provides socket functionality in libsocket rather than libc.
+ // We use a dllmap in the .config to deal with this.
+- internal const string LIBSOCKET = "libsocket";
++ internal const string LIBSOCKET = "libc";
+
+ public const short AF_UNIX = 1;
+ // FIXME: SOCK_STREAM is 2 on Solaris
diff --git a/sysutils/dbus-sharp/patches/patch-src_dbus-sharp.dll.config b/sysutils/dbus-sharp/patches/patch-src_dbus-sharp.dll.config
new file mode 100644
index 00000000000..47c8edc0c4a
--- /dev/null
+++ b/sysutils/dbus-sharp/patches/patch-src_dbus-sharp.dll.config
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_dbus-sharp.dll.config,v 1.1 2013/06/11 02:29:40 obache Exp $
+
+* Reverse the way the dllmap for libsocket is handled, by using libc
+ https://github.com/mono/dbus-sharp/commit/1561585d601058392d5864e3add2bac3c67e14a7
+
+--- src/dbus-sharp.dll.config.orig 2010-09-14 09:17:50.000000000 +0000
++++ src/dbus-sharp.dll.config
+@@ -1,3 +1,13 @@
+ <configuration>
+- <dllmap dll="libsocket" os="!solaris" target="libc.so.6"/>
++ <dllmap dll="libc">
++ <dllentry os="solaris" dll="libsocket.so.1" name="socket" target="socket"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="connect" target="connect"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="bind" target="bind"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="listen" target="listen"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="accept" target="accept"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="getsockopt" target="getsockopt"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="setsockopt" target="setsockopt"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="resvmsg" target="resvmsg"/>
++ <dllentry os="solaris" dll="libsocket.so.1" name="sendmsg" target="sendmsg"/>
++ </dllmap>
+ </configuration>