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

Bug#705599: finish-install: 07speakup needs to be updated for Wheezy and GNOME 3



Hello,

Cyril Brulebois, le Mon 29 Apr 2013 23:57:30 +0200, a écrit :
> Since we're going for rc3 around wednesday, please upload ASAP (so
> that it gets dinstalled before tuesday's morning britney run).

Now done.

> > > 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).
> > 
> > I haven't seen anybody push for the 2.42 change, LP#1098299 does not
> > seem very grave, so I guess we'd rather upload to wheezy?
> 
> Yeah, please t-p-u it.
> 
> Cc-ing debian-release@ to let them know, even though I already
> discussed this briefly with Adam.

Here is the debdiff.

Samuel
diff -Nru finish-install-2.41/debian/changelog finish-install-2.41wheezy1/debian/changelog
--- finish-install-2.41/debian/changelog	2012-12-27 16:29:39.000000000 +0100
+++ finish-install-2.41wheezy1/debian/changelog	2013-04-30 02:03:35.000000000 +0200
@@ -1,3 +1,14 @@
+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.
+
+ -- Samuel Thibault <sthibault@debian.org>  Tue, 30 Apr 2013 01:59:55 +0200
+
 finish-install (2.41) unstable; urgency=low
 
   * Make sure to run update-initramfs if both cryptsetup and console-setup
diff -Nru finish-install-2.41/finish-install.d/07speakup finish-install-2.41wheezy1/finish-install.d/07speakup
--- finish-install-2.41/finish-install.d/07speakup	2012-07-10 22:19:53.000000000 +0200
+++ finish-install-2.41wheezy1/finish-install.d/07speakup	2013-04-30 00:43:01.000000000 +0200
@@ -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

Reply to: