[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#705599: marked as done (finish-install: 07speakup needs to be updated for Wheezy and GNOME 3)



Your message dated Tue, 30 Apr 2013 00:17:33 +0000
with message-id <E1UWyGD-0006tV-GE@franck.debian.org>
and subject line Bug#705599: fixed in finish-install 2.41wheezy1
has caused the Debian Bug report #705599,
regarding finish-install: 07speakup needs to be updated for Wheezy and GNOME 3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
705599: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705599
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: finish-install
Version: 2.41
Severity: important
Tags: patch

finish-install.d/07speakup needs to be update for Wheezy and GNOME3.
GNOME 3 uses gsettings (with dconf as underlying database) so
the gconf commands are ineffective with Debian Wheezy.

Please find a tested patch in attachment. Let me know if you want
me to push this change to master or if you want me to create a wheezy
branch (I noticed that wheezy only has 2.41 while master has 2.42).

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From ec1564204ab5965ab02016585cc1757dc108acd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <hertzog@debian.org>
Date: Wed, 17 Apr 2013 11:21:22 +0200
Subject: [PATCH] Update finish-install.d/07speakup to use the relevant
 gsettings

GNOME 3 uses gsettings (with dconf as underlying database) so
the gconf commands are ineffective with Debian Wheezy.

Replacing those gconf commands by equivalent dconf commands
is not possible because dbus is not yet setup during initial
installation and dconf seems to need dbus.

So instead we create .gschema.override file to change the default
value of the relevant settings. This requires creating a file
in /usr/share/glib-2.0/schemas outside of dpkg's knowledge
and to regenerate the compiled schemas files (we do this
by relying on the dpkg trigger on the above directory).
---
 debian/changelog           |    7 +++++++
 finish-install.d/07speakup |   24 ++++++++++++++----------
 2 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9f8ae0f..33853f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+finish-install (2.43) UNRELEASED; urgency=low
+
+  * Update finish-install.d/07speakup to use the relevant dconf
+    settings used by GNOME 3 (via a gsettings schema override file).
+
+ -- Raphaël Hertzog <hertzog@debian.org>  Tue, 16 Apr 2013 17:49:31 +0200
+
 finish-install (2.42) unstable; urgency=low
 
   [ Colin Watson ]
diff --git a/finish-install.d/07speakup b/finish-install.d/07speakup
index 1cc6629..7a490e8 100755
--- a/finish-install.d/07speakup
+++ b/finish-install.d/07speakup
@@ -1,17 +1,21 @@
 #! /bin/sh
 
+set -e
+
 if [ -n "$(lsmod | grep ^speakup_)" ]; then
-	. /usr/share/debconf/confmodule
+	mkdir -p /target/usr/share/glib-2.0/schemas
+	cat >/target/usr/share/glib-2.0/schemas/15_speakup.gschema.override <<END
+# Setup by debian-installer (via finish-install.d/07speakup) since
+# speech synthesis was enabled during initial installation
+
+[org.gnome.desktop.a11y.applications]
+screen-reader-enabled=true
 
-	/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/applications/at/screen_reader_enabled true" Debian-gdm || true
-	db_get passwd/username
-	USERNAME="$RET"
-	if [ -n "$USERNAME" ]
-	then
-		/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/interface/accessibility true" "$USERNAME" || true
-		/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/applications/at/visual/startup true" "$USERNAME" || true
-		/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/sound/event_sounds true" "$USERNAME" || true
-	fi
+[org.gnome.desktop.sound]
+event-sounds=true
+END
+	in-target dpkg-trigger --no-await /usr/share/glib-2.0/schemas || true
+	in-target dpkg --triggers-only -a || true
 fi
 
 exit 0
-- 
1.7.10.4


--- End Message ---
--- Begin Message ---
Source: finish-install
Source-Version: 2.41wheezy1

We believe that the bug you reported is fixed in the latest version of
finish-install, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 705599@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Samuel Thibault <sthibault@debian.org> (supplier of updated finish-install package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 30 Apr 2013 01:59:55 +0200
Source: finish-install
Binary: finish-install
Architecture: source all
Version: 2.41wheezy1
Distribution: testing
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Samuel Thibault <sthibault@debian.org>
Description: 
 finish-install - Finish the installation and reboot (udeb)
Closes: 705599
Changes: 
 finish-install (2.41wheezy1) testing; urgency=low
 .
   * Team upload
 .
   [ Raphaël Hertzog ]
   * Update finish-install.d/07speakup to use the relevant dconf
     settings used by GNOME 3 (via a gsettings schema override file).
     Closes: #705599.
Checksums-Sha1: 
 2ae4fc754fd1b3bdd288fc58ab2d37fd04a06d8e 1645 finish-install_2.41wheezy1.dsc
 baa0518614e5903c1c74178d48a2526d80103bd7 61970 finish-install_2.41wheezy1.tar.gz
 6af4d5cd905407f308d54f44eb834692ba0ebf62 24868 finish-install_2.41wheezy1_all.udeb
Checksums-Sha256: 
 3d5fdbc81e3018e7ee66e8d048f6c1150e666a7113f6b2fd128a1a799d46a738 1645 finish-install_2.41wheezy1.dsc
 91ad0ac36c03f3990ddb5b4c6a29217a00b9eefe43415df580657a6d534ca661 61970 finish-install_2.41wheezy1.tar.gz
 bf2d3898770cd783f6086c20e63f8789e02c9dbe94a20c92c9fe1ed816c3ac2d 24868 finish-install_2.41wheezy1_all.udeb
Files: 
 97a7c229f9c88648c93a07dae4b7dc64 1645 debian-installer required finish-install_2.41wheezy1.dsc
 4ae39f7027514edffa0638dc5d729be3 61970 debian-installer required finish-install_2.41wheezy1.tar.gz
 6c506835337265259d009c1d7d5c51b8 24868 debian-installer required finish-install_2.41wheezy1_all.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJRfwqIAAoJECqpogBB8bdXpj0P/1+LCPRSRHMthl/SNVki66by
XHvtDUKNF4UmrkEgrcKAwLthNjBC/wxhna9mwndIYLQ+vANb9C0bVnwW9GSVD7jx
cQV4I/kykKAKVpSTSvxmLS7RDV67JLn46fKD2jLYz17/2FUa1HWhWXMRh0OFZRak
rK7iAgeoy8IvDXs9P/RXL2hHdQNA15H1q4P9azJ4wz7N3+NSizDrs7/zFg/P1oue
guJZRfp1vhSOv2tLnz+f7Dm8k6le6JGsNsaNLzB/QPaxfneLWqDwLJ+MP2L5+8ki
rlz1EpuTqNIs73YSj7C2CcQTGhvswaxyI2YDdPuPl1Rz9levwXYrbkmNmnxGSTS1
g0kyaKduUfLxQtdO9fsY4z+fuvhh0w8xYRXbURBtdmq4RzcrhSPolPtAqcgD/w4f
+VrZDaXVwI2peKYWE4y9hkhLSvs+c02zkqniwkgtYqIPGOqDIVItUgk5Xj9xz7u9
MUJNXEYRkp4Lk8qLyGys5mE9J5E/fs5ZtW+4idqSdqWf3dUS85IdAwoLvu61mGn+
k1SPXMTSZW15x3e5GyiUGPhS7ayUIyKNV3PG09Nd+Xx+kSprwzNTRtFnEcu5kQcl
GlfY5i9Rij6yv2ZH4TSVb67xIQxw1mX9+K4SPT/mf4IlNzv4IIEOHkXgPCGVY6nv
Mb3Gm1gYz5dgnI84yZ/2
=8o3I
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: