summaryrefslogtreecommitdiff
path: root/community/systemd
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-22 22:46:00 +0000
committerroot <root@rshg047.dnsready.net>2011-05-22 22:46:00 +0000
commit3837a11a2a471b9db222d8eb6ed7d2fb9d1778c6 (patch)
treeb16474ab1e00c05c11f602c89c6ea093f8d8f0d7 /community/systemd
parent0fdfc2325867395ad4262d06b2d89955ac3cf6a4 (diff)
Sun May 22 22:46:00 UTC 2011
Diffstat (limited to 'community/systemd')
-rw-r--r--community/systemd/PKGBUILD9
-rw-r--r--community/systemd/mqueue-signed-int.patch38
2 files changed, 45 insertions, 2 deletions
diff --git a/community/systemd/PKGBUILD b/community/systemd/PKGBUILD
index aa0f011a6..ca47c7723 100644
--- a/community/systemd/PKGBUILD
+++ b/community/systemd/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 47254 2011-05-20 00:38:37Z dreisner $
+# $Id: PKGBUILD 47349 2011-05-21 21:23:44Z dreisner $
# Maintainer: Dave Reisner <d@falconindy.com>
pkgname=systemd
pkgver=27
-pkgrel=1
+pkgrel=2
pkgdesc="Session and Startup manager"
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/systemd"
@@ -26,13 +26,18 @@ backup=(etc/systemd/system.conf
usr/lib/tmpfiles.d/x11.conf)
install=systemd.install
source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.bz2"
+ "mqueue-signed-int.patch"
"os-release")
md5sums=('6d6319e1817960459f13b300c4881f18'
+ '2ba01b4fc5c70eb51c223005fa5b9ecc'
'752636def0db3c03f121f8b4f44a63cd')
build() {
cd "$srcdir/$pkgname-$pkgver"
+ # fix ABRT on systemctl status
+ patch -Np1 <"$srcdir/mqueue-signed-int.patch"
+
./configure --prefix=/usr \
--with-rootdir= \
--sysconfdir=/etc \
diff --git a/community/systemd/mqueue-signed-int.patch b/community/systemd/mqueue-signed-int.patch
new file mode 100644
index 000000000..dc9ac3524
--- /dev/null
+++ b/community/systemd/mqueue-signed-int.patch
@@ -0,0 +1,38 @@
+diff --git a/src/dbus-common.c b/src/dbus-common.c
+index fe7f84b..9bf0dab 100644
+--- a/src/dbus-common.c
++++ b/src/dbus-common.c
+@@ -569,15 +569,15 @@ int bus_property_append_ul(DBusMessageIter *i, const char *property, void *data)
+ }
+
+ int bus_property_append_long(DBusMessageIter *i, const char *property, void *data) {
+- uint64_t u;
++ int64_t l;
+
+ assert(i);
+ assert(property);
+ assert(data);
+
+- u = (int64_t) *(long*) data;
++ l = (int64_t) *(long*) data;
+
+- if (!dbus_message_iter_append_basic(i, DBUS_TYPE_INT64, &u))
++ if (!dbus_message_iter_append_basic(i, DBUS_TYPE_INT64, &l))
+ return -ENOMEM;
+
+ return 0;
+diff --git a/src/dbus-socket.c b/src/dbus-socket.c
+index b81569d..7194611 100644
+--- a/src/dbus-socket.c
++++ b/src/dbus-socket.c
+@@ -115,8 +115,8 @@ DBusHandlerResult bus_socket_message_handler(Unit *u, DBusConnection *c, DBusMes
+ { "org.freedesktop.systemd1.Socket", "MaxConnections", bus_property_append_unsigned, "u", &u->socket.max_connections },
+ { "org.freedesktop.systemd1.Socket", "NConnections", bus_property_append_unsigned, "u", &u->socket.n_connections },
+ { "org.freedesktop.systemd1.Socket", "NAccepted", bus_property_append_unsigned, "u", &u->socket.n_accepted },
+- { "org.freedesktop.systemd1.Socket", "MessageQueueMaxMessages", bus_property_append_long,"t", &u->socket.mq_maxmsg },
+- { "org.freedesktop.systemd1.Socket", "MessageQueueMessageSize", bus_property_append_long,"t", &u->socket.mq_msgsize },
++ { "org.freedesktop.systemd1.Socket", "MessageQueueMaxMessages", bus_property_append_long,"x", &u->socket.mq_maxmsg },
++ { "org.freedesktop.systemd1.Socket", "MessageQueueMessageSize", bus_property_append_long,"x", &u->socket.mq_msgsize },
+ { NULL, NULL, NULL, NULL, NULL }
+ };
+