[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 Sat, 13 Jul 2013 21:03:55 +0000
with message-id <E1Uy6yx-00061e-PC@franck.debian.org>
and subject line Bug#705599: fixed in finish-install 2.44
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.44

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.
Christian Perrier <bubulle@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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 13 Jul 2013 13:37:51 +0200
Source: finish-install
Binary: finish-install
Architecture: source all
Version: 2.44
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description: 
 finish-install - Finish the installation and reboot (udeb)
Closes: 705599
Changes: 
 finish-install (2.44) unstable; urgency=low
 .
   [ 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.
 .
   [ Dmitrijs Ledkovs ]
   * Set debian source format to '3.0 (native)'.
   * Bump debhelper compat level to 9.
   * Set Vcs-* to canonical format.
Checksums-Sha1: 
 d4fd69affaf5d9536e4fa7d0adeea2f32773518c 1626 finish-install_2.44.dsc
 3b3eb6cfa6ef03a8f1d7dc7c011dae7629a00fa1 62168 finish-install_2.44.tar.gz
 e5c7378538cc21ed1f795bef6a4d7ab40ba4278a 24990 finish-install_2.44_all.udeb
Checksums-Sha256: 
 273872cbb0c146023bb715be9ee5ee3067995dee415ad7449cf3c13910d866a9 1626 finish-install_2.44.dsc
 2c8ccbccefeda8da581ecb50b472d19d8ef813045b717690069582b8d39f382f 62168 finish-install_2.44.tar.gz
 db03d272218a3e7e14c209c5341d13ed669ce71df321adf11a51bae7c5fc814d 24990 finish-install_2.44_all.udeb
Files: 
 82c97f83bc7eaf0ceffdd53407ea5ff0 1626 debian-installer required finish-install_2.44.dsc
 83e95d49d893b3b9eb82ee0abb099091 62168 debian-installer required finish-install_2.44.tar.gz
 de20132938c199336d31f88e8c21d202 24990 debian-installer required finish-install_2.44_all.udeb

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

iQIVAwUBUeG6bIcvcCxNbiWoAQJjbw/9HU6QBHzlFqSELAx63Q0wkgtMHSBiA5WD
HdESH3FjUy3CkSI3kAOS2RemBdU4xWUsOQU70AWGrYD1b4SuFyFZS06kmE7LsgnW
4PwAicOMrM7hgYPzQLj0JmsSscuiJ5OTxjmIUZw+BLLJ/MIBX6j36u4dAAYQI6Ab
agTpWR9tXQrSs/D12ZvLQMOT/7eDsKmnKn6cTzTXAQDLaRJq8uWFh62B0cnmx9rm
Y5Y7a/wGkirjO8UBHny/jyqfRobwsNohJpyqOayspbj0kJ+2aeYV86l64Q4pXqA8
V8gmeX0Vs9N2W6wRaOdb0Cq3TEyYM++Kp2gwigyCPkxK0RKoFdEkJrheughSoVLg
TKURgXD09fgE31e4pI6hbQaDHeo/jadYBwa+O5Tg/+2Zp0k8szvQI05S7iik2oEi
PG57uESOcHZ/j2R8IyGCz69SjQWci2l3iOn+hveD4rU2IegXmjQOGGcFUEp7+2b8
Yf19gw4ISmkbURx6B8NVHUoV0+cPhJPhZTsMfYmN0kGmjcj3UCKogNSYWlTgWiEK
ggjgh8uk+ShpWQv0mQTFE0LshSbc23SfwmhwM9VUSSG20t8+f4/gWcFx/J2DUDka
0igNY2RfLpzpv2r7Jm0waybD4uI81NF7kv6PuFFmSMgAHxp6UTRCoPsJlMu8VezV
o4yeqv3cDSI=
=vElx
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: