summaryrefslogtreecommitdiff
path: root/community/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'community/systemd')
-rw-r--r--community/systemd/0001-convert-int-to-boolean-for-dbus_bool_t.patch25
-rw-r--r--community/systemd/PKGBUILD15
2 files changed, 35 insertions, 5 deletions
diff --git a/community/systemd/0001-convert-int-to-boolean-for-dbus_bool_t.patch b/community/systemd/0001-convert-int-to-boolean-for-dbus_bool_t.patch
new file mode 100644
index 000000000..675bc0478
--- /dev/null
+++ b/community/systemd/0001-convert-int-to-boolean-for-dbus_bool_t.patch
@@ -0,0 +1,25 @@
+From e191553d1dc80cd6d65d05f0cb29f8967fab6983 Mon Sep 17 00:00:00 2001
+From: Kay Sievers <kay.sievers@vrfy.org>
+Date: Wed, 17 Aug 2011 19:38:07 +0200
+Subject: [PATCH] convert int to boolean for dbus_bool_t
+
+---
+ src/dbus-manager.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/dbus-manager.c b/src/dbus-manager.c
+index ae88895..cfc2afc 100644
+--- a/src/dbus-manager.c
++++ b/src/dbus-manager.c
+@@ -444,7 +444,7 @@ static DBusMessage *message_from_file_changes(
+ if (carries_install_info >= 0) {
+ dbus_bool_t b;
+
+- b = carries_install_info;
++ b = !!carries_install_info;
+ if (!dbus_message_iter_append_basic(&iter, DBUS_TYPE_BOOLEAN, &b))
+ goto oom;
+ }
+--
+1.7.6
+
diff --git a/community/systemd/PKGBUILD b/community/systemd/PKGBUILD
index 1e156047d..f34af6a7e 100644
--- a/community/systemd/PKGBUILD
+++ b/community/systemd/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 53877 2011-08-09 02:05:40Z dreisner $
+# $Id: PKGBUILD 54516 2011-08-19 14:57:25Z dreisner $
# Maintainer: Dave Reisner <dreisner@archlinux.org>
pkgname=systemd
pkgver=33
-pkgrel=2
+pkgrel=3
pkgdesc="Session and Startup manager"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.freedesktop.org/wiki/Software/systemd"
@@ -19,7 +19,7 @@ optdepends=('cryptsetup: required for encrypted block devices'
'python2-cairo: systemd-analyze'
'systemd-arch-units: collection of native unit files for Arch daemon/init scripts')
groups=('systemd')
-options=('!libtool')
+options=('!libtool' '!strip')
backup=(etc/dbus-1/system.d/org.freedesktop.systemd1.conf
etc/dbus-1/system.d/org.freedesktop.hostname1.conf
etc/dbus-1/system.d/org.freedesktop.login1.conf
@@ -30,9 +30,11 @@ backup=(etc/dbus-1/system.d/org.freedesktop.systemd1.conf
etc/systemd/systemd-logind.conf)
install=systemd.install
source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.bz2"
- "os-release")
+ "os-release"
+ 0001-convert-int-to-boolean-for-dbus_bool_t.patch)
md5sums=('361cad7c3debbdd81c211527509ba181'
- '752636def0db3c03f121f8b4f44a63cd')
+ '752636def0db3c03f121f8b4f44a63cd'
+ '299c03fa55628af7fdff5955ca4e48ea')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -42,6 +44,9 @@ build() {
sed -i -e '/^Environ.*LANG/s/^/#/' \
-e '/^ExecStart/s/agetty/& -8/' units/getty@.service.m4
+ # fix ABRT on `systemctl enable <unit-with-Also>'
+ patch -Np1 < "$srcdir/0001-convert-int-to-boolean-for-dbus_bool_t.patch"
+
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \