[arch-commits] Commit in accountsservice/trunk (32bit-crash.patch PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Dec 1 09:01:03 UTC 2012


    Date: Saturday, December 1, 2012 @ 04:01:03
  Author: heftig
Revision: 172181

fix FS#32808

Added:
  accountsservice/trunk/32bit-crash.patch
Modified:
  accountsservice/trunk/PKGBUILD

-------------------+
 32bit-crash.patch |   26 ++++++++++++++++++++++++++
 PKGBUILD          |    8 +++++---
 2 files changed, 31 insertions(+), 3 deletions(-)

Added: 32bit-crash.patch
===================================================================
--- 32bit-crash.patch	                        (rev 0)
+++ 32bit-crash.patch	2012-12-01 09:01:03 UTC (rev 172181)
@@ -0,0 +1,26 @@
+From 4d5166d1833e42d81b854374aa6e73f83a67a70e Mon Sep 17 00:00:00 2001
+From: Matthias Clasen <mclasen at 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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-12-01 00:46:19 UTC (rev 172180)
+++ PKGBUILD	2012-12-01 09:01:03 UTC (rev 172181)
@@ -3,7 +3,7 @@
 
 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 @@
 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 \




More information about the arch-commits mailing list