From 98ba4ae196183c2d9b1cc2d61cf1ee82302863e3 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 2 Dec 2012 01:27:08 -0800 Subject: Sun Dec 2 01:26:32 PST 2012 --- extra/accountsservice/32bit-crash.patch | 26 ++++++++++++++++++++++++++ extra/accountsservice/PKGBUILD | 10 ++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 extra/accountsservice/32bit-crash.patch (limited to 'extra/accountsservice') 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 +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 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 \ -- cgit v1.2.3-54-g00ecf