Package: e16
Severity: normal

Attached is a patch which I believe fixes this problem. Maybe debconf
should be used to prompt instead of bailing out if there are unexpected
files, but this is probably good enough.

[Note: this is from git, but I made my own git repo, hopefully that
won't cause any problems. I'm a git newbie, really.]

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (100, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages e16 depends on:
ii  e16-data                      1.0.0-3.2  e16 window manager support files
ii  libaudiofile0                 0.2.6-8    Open-source version of SGI's audio
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  libdbus-1-3                   1.2.16-2   simple interprocess messaging syst
ii  libesd0                       0.2.41-6   Enlightened Sound Daemon - Shared 
ii  libglib2.0-0                  2.22.4-1   The GLib library of C routines
ii  libice6                       2:1.0.6-1  X11 Inter-Client Exchange library
ii  libimlib2                     1.4.2-5    powerful image loading and renderi
ii  libpango1.0-0                 1.26.2-1   Layout and rendering of internatio
ii  libsm6                        2:1.1.1-1  X11 Session Management library
ii  libx11-6                      2:1.3.3-1  X11 client-side library
ii  libxcomposite1                1:0.4.1-1  X11 Composite extension library
ii  libxdamage1                   1:1.1.2-1  X11 damaged region extension libra
ii  libxext6                      2:1.1.1-2  X11 miscellaneous extension librar
ii  libxfixes3                    1:4.0.4-1  X11 miscellaneous 'fixes' extensio
ii  libxft2                       2.1.14-1   FreeType-based font drawing librar
ii  libxinerama1                  2:1.1-2    X11 Xinerama extension library
ii  libxrandr2                    2:1.3.0-2  X11 RandR extension library
ii  libxrender1                   1:0.9.5-1  X Rendering Extension client libra
ii  libxxf86vm1                   1:1.1.0-2  X11 XFree86 video mode extension l

Versions of packages e16 recommends:
pn  esound                        <none>     (no description available)
ii  menu                          2.1.43     generates programs menu for all me

Versions of packages e16 suggests:
ii  e16keyedit                    0.6-1      a keybinding editor for the enligh
pn  e16menuedit2                  <none>     (no description available)
ii  konsole [x-terminal-emulator] 4:4.3.2-1  X terminal emulator for KDE 4
ii  rxvt-unicode-ml [x-terminal-e 9.06-3     multi-lingual terminal emulator wi
ii  xterm [x-terminal-emulator]   253-1      X terminal emulator

-- no debconf information
>From 0d2c23a325d32e2879667a0d8e9997c523e00138 Mon Sep 17 00:00:00 2001
From: Anthony DeRobertis <anth...@derobert.net>
Date: Thu, 4 Feb 2010 17:47:18 -0500
Subject: [PATCH 2/2] Fix move of files to /etc

---
 e16-1.0.0/debian/changelog         |    7 +++++++
 e16-1.0.0/debian/e16-data.postinst |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 0 deletions(-)
 create mode 100755 e16-1.0.0/debian/e16-data.postinst

diff --git a/e16-1.0.0/debian/changelog b/e16-1.0.0/debian/changelog
index 72869c5..7098070 100644
--- a/e16-1.0.0/debian/changelog
+++ b/e16-1.0.0/debian/changelog
@@ -1,3 +1,10 @@
+e16 (1.0.0-3.2) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Make sure compatability symlink really gets created. (Closes: #567770)
+
+ -- Anthony DeRobertis <anth...@derobert.net>  Thu, 04 Feb 2010 16:28:32 -0500
+
 e16 (1.0.0-3.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --git a/e16-1.0.0/debian/e16-data.postinst 
b/e16-1.0.0/debian/e16-data.postinst
new file mode 100755
index 0000000..780d5a9
--- /dev/null
+++ b/e16-1.0.0/debian/e16-data.postinst
@@ -0,0 +1,34 @@
+#!/bin/sh
+set -e
+
+phase="$1"
+oldvers="$2"
+
+
+# When we move the config files to /etc, unfortunately dpkg will not
+# reliably create the compatability symlink for us. This only applies to
+# upgrades from versions before 1.0.0-3.2.
+if [ "configure" = "$phase" ] && dpkg --compare-versions "$oldvers" lt-nl 
1.0.0-3.2; then
+       if [ -d /usr/share/e16/config ]; then
+               if rmdir /usr/share/e16/config; then
+                       true
+               else
+                       # directory probably not empty. don't feel like adding 
debconf
+                       # to nicely display a note, just print it and bail.
+                       cat <<ERROR >&2
+This version of e16-data moves E16's configuration from /usr to /etc
+where it belongs. Unfortunately, there are still files in that
+directory. Please move /usr/share/e16/config out of the way.
+
+Until you do this, and complete the configuration of this package, E16
+will be very broken.
+ERROR
+                       exit 1
+               fi
+       fi
+       if [ ! -e /usr/share/e16/config ]; then
+               ln -s /etc/e16 /usr/share/e16/config
+       fi
+fi
+
+#DEBHELPER#
-- 
1.6.5

Reply via email to