summaryrefslogtreecommitdiff
path: root/extra/accountsservice
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-02 01:27:08 -0800
committerroot <root@rshg054.dnsready.net>2012-12-02 01:27:08 -0800
commit98ba4ae196183c2d9b1cc2d61cf1ee82302863e3 (patch)
tree77f7f23c59f50a1901586a8c3818f53c6a67837b /extra/accountsservice
parentc31ace4c6175db330d7e4aac1e7388fe5ca5d4f3 (diff)
Sun Dec 2 01:26:32 PST 2012
Diffstat (limited to 'extra/accountsservice')
-rw-r--r--extra/accountsservice/32bit-crash.patch26
-rw-r--r--extra/accountsservice/PKGBUILD10
2 files changed, 32 insertions, 4 deletions
diff --git a/extra/accountsservice/32bit-crash.patch b/extra/accountsservice/32bit-crash.patch
new file mode 100644
index 000000000..87b5d308e
--- /dev/null
+++ b/extra/accountsservice/32bit-crash.patch
@@ -0,0 +1,26 @@
+From 4d5166d1833e42d81b854374aa6e73f83a67a70e Mon Sep 17 00:00:00 2001
+From: Matthias Clasen <mclasen@redhat.com>
+Date: Tue, 27 Nov 2012 23:30:45 +0000
+Subject: Fix a crash on 32bit systems
+
+The login-frequency property of the User interface is defined
+as uint64 type. Therefore, when setting it with g_object_set,
+a 64bit value is collected, and passing an int might lead to
+bad things.
+https://bugs.freedesktop.org/show_bug.cgi?id=57343
+---
+diff --git a/src/daemon.c b/src/daemon.c
+index ed3a114..4d6f3ab 100644
+--- a/src/daemon.c
++++ b/src/daemon.c
+@@ -207,7 +207,7 @@ daemon_local_user_is_excluded (Daemon *daemon, const gchar *username, const gcha
+ #ifdef HAVE_UTMPX_H
+
+ typedef struct {
+- int frequency;
++ guint64 frequency;
+ gint64 time;
+ GList *previous_logins;
+ } UserAccounting;
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/extra/accountsservice/PKGBUILD b/extra/accountsservice/PKGBUILD
index 25244de8e..c09d7c2db 100644
--- a/extra/accountsservice/PKGBUILD
+++ b/extra/accountsservice/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 171876 2012-11-22 07:10:34Z heftig $
+# $Id: PKGBUILD 172182 2012-12-01 09:02:32Z heftig $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=accountsservice
pkgver=0.6.29
-pkgrel=1
+pkgrel=2
pkgdesc="D-Bus interface for user account query and manipulation"
arch=(i686 x86_64)
url="http://www.freedesktop.org/software/accountsservice/"
@@ -11,13 +11,15 @@ license=('GPL3')
depends=('glib2' 'polkit' 'systemd')
makedepends=('intltool' 'gobject-introspection' 'vala')
options=('!libtool')
-source=($url/$pkgname-$pkgver.tar.xz more-exclusions.patch)
+source=($url/$pkgname-$pkgver.tar.xz more-exclusions.patch 32bit-crash.patch)
md5sums=('396c16f39711e24bb7cc685a170befa3'
- '1d5cf127e5aac407fe7c37b2f4fd503c')
+ '1d5cf127e5aac407fe7c37b2f4fd503c'
+ '2d364b82e7bb1df4aaae70e9ac5be0ba')
build() {
cd $pkgname-$pkgver
patch -Np1 -i ../more-exclusions.patch
+ patch -Np1 -i ../32bit-crash.patch
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/accountsservice \
--with-systemdsystemunitdir=/usr/lib/systemd/system \