mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
kdebindings-qyoto: rebuild against latest mono
This commit is contained in:
parent
7086ca217c
commit
0925b3d5e6
@ -7,7 +7,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
pkgname=kdebindings-qyoto
|
||||
_pkgname=qyoto
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc=".NET/Mono bindings for the Qt libraries"
|
||||
url="http://kde.org/"
|
||||
arch=('x86_64')
|
||||
@ -18,8 +18,15 @@ conflicts=('kdebindings-common')
|
||||
groups=("kde" "kdebindings" "kde-uninstall")
|
||||
provides=('qyoto')
|
||||
options=('docs' '!header' 'debug' 'log')
|
||||
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
|
||||
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
||||
source=("$_mirror/${_pkgname}-$_kdever.tar.xz"
|
||||
"kde_bug_339977.patch")
|
||||
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
|
||||
'c3fb8d4722b94a3f319bf303a56f232e578b5d568225068ce01f605e870052d5')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_pkgname}-${pkgver}/qdbus"
|
||||
patch -p2 < ${srcdir}/kde_bug_339977.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgname}-${pkgver}"
|
||||
|
28
kdebindings-qyoto/kde_bug_339977.patch
Normal file
28
kdebindings-qyoto/kde_bug_339977.patch
Normal file
@ -0,0 +1,28 @@
|
||||
Index: qyoto-4.14.2/qdbus/QDBusReply.cs
|
||||
===================================================================
|
||||
--- qyoto-4.14.2.orig/qdbus/QDBusReply.cs
|
||||
+++ qyoto-4.14.2/qdbus/QDBusReply.cs
|
||||
@@ -4,9 +4,12 @@ namespace Qyoto {
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
|
||||
- public class QDBusReply<T> {
|
||||
+ class QDBusReplyFill {
|
||||
[DllImport("qyoto", CharSet=CharSet.Ansi)]
|
||||
- private static extern void qyoto_qdbus_reply_fill(IntPtr msg, IntPtr error, IntPtr variant);
|
||||
+ public static extern void qyoto_qdbus_reply_fill(IntPtr msg, IntPtr error, IntPtr variant);
|
||||
+ }
|
||||
+
|
||||
+ public class QDBusReply<T> {
|
||||
|
||||
public QDBusReply(QDBusMessage reply) {
|
||||
m_error = new QDBusError(reply);
|
||||
@@ -18,7 +21,7 @@ namespace Qyoto {
|
||||
variant = QVariant.FromValue<T>(default(T));
|
||||
}
|
||||
|
||||
- qyoto_qdbus_reply_fill((IntPtr) GCHandle.Alloc(reply), (IntPtr) GCHandle.Alloc(m_error),
|
||||
+ QDBusReplyFill.qyoto_qdbus_reply_fill((IntPtr) GCHandle.Alloc(reply), (IntPtr) GCHandle.Alloc(m_error),
|
||||
(IntPtr) GCHandle.Alloc(variant));
|
||||
|
||||
if (!m_error.IsValid()) {
|
Loading…
Reference in New Issue
Block a user