dbus-c++.paketlendi

This commit is contained in:
milisbir 2017-07-25 02:49:05 +03:00
parent 1f9716c682
commit 183189c5dc
4 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,45 @@
--- libdbus-c++-0.9.0/include/dbus-c++/dispatcher.h.threading 2017-02-15 13:40:53.796004263 +0000
+++ libdbus-c++-0.9.0/include/dbus-c++/dispatcher.h 2017-02-15 13:40:46.907000493 +0000
@@ -188,6 +188,7 @@
/* classes for multithreading support
*/
+#if 0
class DXXAPI Mutex
{
public:
@@ -243,9 +244,11 @@
typedef bool (*CondVarWaitTimeoutFn)(CondVar *cv, Mutex *mx, int timeout);
typedef void (*CondVarWakeOneFn)(CondVar *cv);
typedef void (*CondVarWakeAllFn)(CondVar *cv);
+#endif
void DXXAPI _init_threading();
+#if 0
void DXXAPI _init_threading(
MutexNewFn, MutexFreeFn, MutexLockFn, MutexUnlockFn,
CondVarNewFn, CondVarFreeFn, CondVarWaitFn, CondVarWaitTimeoutFn, CondVarWakeOneFn, CondVarWakeAllFn
@@ -312,6 +315,7 @@
cv->wake_all();
}
};
+#endif
} /* namespace DBus */
--- libdbus-c++-0.9.0/src/dispatcher.cpp.threading 2017-02-15 13:48:22.627249868 +0000
+++ libdbus-c++-0.9.0/src/dispatcher.cpp 2017-02-15 13:48:29.164253445 +0000
@@ -253,6 +253,7 @@
#endif//DBUS_HAS_THREADS_INIT_DEFAULT
}
+#if 0
void DBus::_init_threading(
MutexNewFn m1,
MutexFreeFn m2,
@@ -318,3 +319,4 @@
#endif//DBUS_HAS_RECURSIVE_MUTEX
dbus_threads_init(&functions);
}
+#endif

View File

@ -0,0 +1,9 @@
--- libdbus-c++-0.9.0/src/pipe.cpp.writechar 2017-02-16 11:07:13.591950169 +0000
+++ libdbus-c++-0.9.0/src/pipe.cpp 2017-02-16 11:04:17.158796092 +0000
@@ -83,5 +83,5 @@
void Pipe::signal()
{
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
- ::write(_fd_write, '\0', 1);
+ ::write(_fd_write, "", 1);
}

View File

@ -0,0 +1,10 @@
--- src/eventloop-integration.cpp.orig 2012-05-09 11:22:09.683290763 +0200
+++ src/eventloop-integration.cpp 2012-05-09 11:22:44.313288912 +0200
@@ -38,6 +38,7 @@
#include <cassert>
#include <sys/poll.h>
#include <fcntl.h>
+#include <unistd.h>
using namespace DBus;
using namespace std;

View File

@ -0,0 +1,29 @@
# Description: A C++ API for D-BUS
# URL: http://sourceforge.net/projects/dbus-cplusplus/
# Packager: milisarge
# Depends on: dbus glib
name=dbus-c++
_name=libdbus-c++
version=0.9.0
release=1
source=(http://sourceforge.net/projects/dbus-cplusplus/files/dbus-c%2B%2B/$version/libdbus-c%2B%2B-$version.tar.gz
gcc47.patch
disable-threading.patch
fix-writechar.patch)
build() {
cd "$SRC/$_name-$version"
patch -Np0 -i "$SRC/gcc47.patch"
patch -Np1 -i "$SRC/disable-threading.patch"
patch -Np1 -i "$SRC/fix-writechar.patch"
export LDFLAGS+=" -lexpat "
./autogen.sh --prefix=/usr \
--disable-static \
--enable-glib \
--disable-ecore
make
cd "$SRC/$_name-$version"
make DESTDIR="$PKG" install
}