[arch-commits] Commit in (5 files)
Balló György
bgyorgy at archlinux.org
Thu Jan 8 11:41:12 UTC 2015
Date: Thursday, January 8, 2015 @ 12:41:11
Author: bgyorgy
Revision: 125588
Move gnome-initial-setup from AUR with 10 votes
Added:
gnome-initial-setup/
gnome-initial-setup/trunk/
gnome-initial-setup/trunk/PKGBUILD
gnome-initial-setup/trunk/fix-crasher.patch
gnome-initial-setup/trunk/gnome-initial-setup.install
-----------------------------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
fix-crasher.patch | 28 ++++++++++++++++++++++++++++
gnome-initial-setup.install | 14 ++++++++++++++
3 files changed, 83 insertions(+)
Added: gnome-initial-setup/trunk/PKGBUILD
===================================================================
--- gnome-initial-setup/trunk/PKGBUILD (rev 0)
+++ gnome-initial-setup/trunk/PKGBUILD 2015-01-08 11:41:11 UTC (rev 125588)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=gnome-initial-setup
+pkgver=3.14.2.1
+pkgrel=1
+pkgdesc="Simple, easy, and safe way to prepare a new system"
+arch=('i686' 'x86_64')
+url="http://www.gnome.org/"
+license=('GPL')
+depends=('libnm-gtk' 'accountsservice' 'cheese' 'gnome-desktop' 'libgweather'
+ 'gnome-online-accounts' 'libgdm' 'libpwquality' 'libibus' 'libgnomekbd')
+makedepends=('intltool')
+optdepends=('gdm: GDM Initial Setup mode'
+ 'gnome-getting-started-docs: GNOME Welcome Tour')
+install=$pkgname.install
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/3.14/$pkgname-$pkgver.tar.xz
+ fix-crasher.patch)
+sha256sums=('a5f36a584c8a727c2fbe76e0022f7027e501ce74d33503b3d67afc9f58459e30'
+ '5bc918b45530fb03c793c5637169526e5caf58217c99030ca7fc9335927ccee9')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../fix-crasher.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ mkdir -p "$pkgdir/var/lib/gnome-initial-setup"
+
+ # Fix a warning
+ chown 102:0 "$pkgdir/usr/share/polkit-1/rules.d"
+ chmod 700 "$pkgdir/usr/share/polkit-1/rules.d"
+}
Property changes on: gnome-initial-setup/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: gnome-initial-setup/trunk/fix-crasher.patch
===================================================================
--- gnome-initial-setup/trunk/fix-crasher.patch (rev 0)
+++ gnome-initial-setup/trunk/fix-crasher.patch 2015-01-08 11:41:11 UTC (rev 125588)
@@ -0,0 +1,28 @@
+From c62b52a81d5ac9562d78607914736c29124db004 Mon Sep 17 00:00:00 2001
+From: Rui Matos <tiagomatos at gmail.com>
+Date: Tue, 16 Dec 2014 16:33:49 +0000
+Subject: keyboard: Fix a crash
+
+If there's no default input source for a given locale, id would go
+uninitialized and then crash further down when accessing it for a
+string comparison.
+
+https://bugzilla.redhat.com/show_bug.cgi?id=1172363
+
+diff --git a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
+index c5bd085..4e3400c 100644
+--- a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
++++ b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
+@@ -397,7 +397,8 @@ static void
+ get_locale_infos (CcInputChooser *chooser)
+ {
+ CcInputChooserPrivate *priv = cc_input_chooser_get_instance_private (chooser);
+- const gchar *type, *id;
++ const gchar *type = NULL;
++ const gchar *id = NULL;
+ gchar *lang, *country;
+ GList *list;
+
+--
+cgit v0.10.1
+
Added: gnome-initial-setup/trunk/gnome-initial-setup.install
===================================================================
--- gnome-initial-setup/trunk/gnome-initial-setup.install (rev 0)
+++ gnome-initial-setup/trunk/gnome-initial-setup.install 2015-01-08 11:41:11 UTC (rev 125588)
@@ -0,0 +1,14 @@
+post_install() {
+ getent passwd gnome-initial-setup > /dev/null 2>&1 && \
+ usermod -c 'GNOME Initial Setup' -d /var/lib/gnome-initial-setup -s /sbin/nologin gnome-initial-setup > /dev/null 2>&1 || \
+ useradd -rM -c 'GNOME Initial Setup' -d /var/lib/gnome-initial-setup -s /sbin/nologin gnome-initial-setup
+ passwd -l gnome-initial-setup > /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent passwd gnome-initial-setup > /dev/null 2>&1 && userdel gnome-initial-setup
+}
More information about the arch-commits
mailing list