From 8bfe15c32728d3dfe5e29540f165c951988d1660 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 1 Dec 2012 12:01:10 +0100 Subject: [PATCH] accountsservice: new patch from git to fix 32bit crash (via Arch). --- .../accountsservice/patches/32bit-crash.patch | 26 +++++++++++++++++++ srcpkgs/accountsservice/template | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/accountsservice/patches/32bit-crash.patch diff --git a/srcpkgs/accountsservice/patches/32bit-crash.patch b/srcpkgs/accountsservice/patches/32bit-crash.patch new file mode 100644 index 0000000000..742850cf33 --- /dev/null +++ b/srcpkgs/accountsservice/patches/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 +--- src/daemon.c ++++ 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/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template index 292085390d..44e975296c 100644 --- a/srcpkgs/accountsservice/template +++ b/srcpkgs/accountsservice/template @@ -1,7 +1,7 @@ # Template file for 'accountsservice' pkgname=accountsservice version=0.6.29 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static --with-systemdsystemunitdir=/usr/lib/systemd/system"