Bug#502075: Ships scrollkeeper db
On Mon, Oct 13, 2008 at 01:54:46PM +0200, Loïc Minier wrote: Hi gparted ships the /var/lib/scrollkeeper db generated during package build, overwriting the one of end users on install/upgrade of gparted. Please 1) stop shipping it and 2) fix the db on upgrades with a postinst snippet such as the following (from RB) on upgrades: # version 0.9.4.1-1 started shipping /var/lib/scrollkeeper erroneously, hence # the database was overwritten and needs a full rebuild if [ $1 = configure ] dpkg --compare-versions $2 ge 0.9.4.1-1 dpkg --compare-versions $2 lt 0.9.4.1-5 which scrollkeeper-rebuilddb /dev/null 21; then echo Upgrade from broken Rhythmbox version detected, running scrollkeeper-rebuilddb... scrollkeeper-rebuilddb -q fi Thanks, Hello Loïc, Thanks to you! Oct 15 00:44:53 lool anibal: Hmm rereading the postinst snippet I proposed for gparted, it might actually be more correct to use lt-nl rather than lt Oct 15 00:45:15 lool nothing too dramatic, but might cause the fix to run on initial install Oct 15 00:45:25 lool or on reinstall rather I'll replace the lt with lt-nl in the next upload of gparted. Thanks again for your help. The postinst that went into gparted 0.3.9-3 is: --- gparted-0.3.9.orig/debian/gparted.postinst +++ gparted-0.3.9/debian/gparted.postinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +# versions 0.3.9-1 and 0.3.9-2 shipped /var/lib/scrollkeeper erroneously, +# overwritting the scrollkeeper database which requires a full rebuild +if [ $1 = configure ] dpkg --compare-versions $2 ge 0.3.9-1 dpkg --compare-versions $2 lt 0.3.9-3 [ -x `which scrollkeeper-rebuilddb 2/dev/null` ]; then +echo Upgrade from broken gparted version detected, running scrollkeeper-rebuilddb... +scrollkeeper-rebuilddb -q +fi + +#DEBHELPER# signature.asc Description: Digital signature
Bug#502075: Ships scrollkeeper db
Package: gparted Version: 0.3.9-2 Severity: serious Hi gparted ships the /var/lib/scrollkeeper db generated during package build, overwriting the one of end users on install/upgrade of gparted. Please 1) stop shipping it and 2) fix the db on upgrades with a postinst snippet such as the following (from RB) on upgrades: # version 0.9.4.1-1 started shipping /var/lib/scrollkeeper erroneously, hence # the database was overwritten and needs a full rebuild if [ $1 = configure ] dpkg --compare-versions $2 ge 0.9.4.1-1 dpkg --compare-versions $2 lt 0.9.4.1-5 which scrollkeeper-rebuilddb /dev/null 21; then echo Upgrade from broken Rhythmbox version detected, running scrollkeeper-rebuilddb... scrollkeeper-rebuilddb -q fi Thanks, -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.27-rc9-686 (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/bash Versions of packages gparted depends on: ii hal 0.5.11-5Hardware Abstraction Layer ii libatk1.0-0 1.22.0-1The ATK accessibility toolkit ii libc62.7-14 GNU C Library: Shared libraries ii libcairo21.7.4-1 The Cairo 2D vector graphics libra ii libcairomm-1.0-1 1.6.4-1 C++ wrappers for Cairo (shared lib ii libgcc1 1:4.3.2-1 GCC support library ii libglib2.0-0 2.18.1-1The GLib library of C routines ii libglibmm-2.4-1c 2.18.0-1C++ wrapper for the GLib toolkit ( ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface ii libgtkmm-2.4-1c2 1:2.12.7-1 C++ wrappers for GTK+ 2.4 (shared ii libpango1.0-01.21.6-1Layout and rendering of internatio ii libparted1.8-10 1.8.8.git.2008.03.24-10 The GNU Parted disk partitioning s ii libsigc++-2.0-0c 2.0.18-2type-safe Signal Framework for C++ ii libstdc++6 4.3.2-1 The GNU Standard C++ Library v3 ii libuuid1 1.41.2-1universally unique id library ii menu 2.1.40 generates programs menu for all me gparted recommends no packages. Versions of packages gparted suggests: pn jfsutils none (no description available) pn ntfsprogs none (no description available) pn reiser4progs none (no description available) ii reiserfsprogs 1:3.6.19-6 User-level tools for ReiserFS file ii xfsprogs 2.9.8-1Utilities for managing the XFS fil -- no debconf information -- Loïc Minier -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]