Package: gnome-icon-theme Version: 2.30.3-1 Severity: important Tags: patch
When upgrading from 2.30.2.1-1 to 2.30.3-1, the postinst configure step fails when using fr_FR.UTF-8 locale. Running it by hand: # /var/lib/dpkg/info/gnome-icon-theme.postinst configure Segmentation fault ls: erreur d'écriture: Relais brisé (pipe) (= "ls: write error: broken pipe") OTOH, the very same command works fine with C locale: # LC_ALL=C /var/lib/dpkg/info/gnome-icon-theme.postinst configure The "sed" command (line 18) seems to assume C locale is being used. The attached patch fixes this bug. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (900, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gnome-icon-theme depends on: ii hicolor-icon-theme 0.11-1 default fallback theme for FreeDes ii libgtk2.0-bin 2.20.1-1 The programs for the GTK+ graphica ii librsvg2-common 2.26.3-1 SAX-based renderer library for SVG gnome-icon-theme recommends no packages. gnome-icon-theme suggests no packages. -- no debconf information -- intrigeri <intrig...@boum.org> | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr-fingerprint.asc | The impossible just takes a bit longer.
diff -Naur gnome-icon-theme-2.30.3.orig/debian/changelog gnome-icon-theme-2.30.3/debian/changelog --- gnome-icon-theme-2.30.3.orig/debian/changelog 2010-06-06 11:49:00.000000000 +0200 +++ gnome-icon-theme-2.30.3/debian/changelog 2010-06-06 11:48:17.467161533 +0200 @@ -1,3 +1,9 @@ +gnome-icon-theme (2.30.3-2) unstable; urgency=low + + * Fix debian/postinst for non-English locales. Closes: #nnnnnn. + + -- XXX <x...@xxx.xxx> Sun, 06 Jun 2010 11:36:08 +0200 + gnome-icon-theme (2.30.3-1) unstable; urgency=low * New upstream bugfix release. diff -Naur gnome-icon-theme-2.30.3.orig/debian/postinst gnome-icon-theme-2.30.3/debian/postinst --- gnome-icon-theme-2.30.3.orig/debian/postinst 2010-06-06 11:49:00.000000000 +0200 +++ gnome-icon-theme-2.30.3/debian/postinst 2010-06-06 11:35:50.731482721 +0200 @@ -15,7 +15,7 @@ exit 0 fi -SIZES=$(ls /usr/share/icons/gnome/*/places | sed -rn 's,^.*/([0-9]+)x[0-9]+/.*$,\1,p') +SIZES=$(ls /usr/share/icons/gnome/*/places | LC_ALL=C sed -rn 's,^.*/([0-9]+)x[0-9]+/.*$,\1,p') ( while read name prio; do command="update-alternatives --install /usr/share/icons/gnome/scalable/places/start-here.svg start-here.svg /usr/share/icons/gnome/scalable/places/$name.svg $prio"