Package: dictionary-el
Version: 1.8.7-5ubuntu1
Severity: important

I notice that when I install dictionary-el 1.8.7-5 on a sustem that
has dash as /bin/sh, post-install fails with the following error.

Setting up dictionary-el (1.8.7-4) ...
install/dictionary-el: Handling install for emacsen flavor emacs-snapshot
>>Error occurred processing *.el: File error (("Opening input file" "no such 
>>file or directory" "/usr/share/emacs-snapshot/site-lisp/dictionary-el/*.el"))

I have looked into the problem and found a solution.  A patch to fix
the problem will be attached to this bug.  I have tested this patch
successfully, as can be seen by the version string in this report :^)
.

-- System Information:
Debian Release: lenny/sid
  APT prefers gutsy-updates
  APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 
'gutsy-backports'), (500, 'gutsy')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-7-generic (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 dictionary-el depends on:
ii  emacs-snapshot [emacsen 1.0              The GNU Emacs editor (development 
ii  emacs21 [emacsen]       21.4a+1-5ubuntu1 The GNU Emacs editor
ii  xemacs21-mule [emacsen] 21.4.20-1        highly customizable text editor --

Versions of packages dictionary-el recommends:
ii  emacs-snapshot          1.0              The GNU Emacs editor (development 
ii  emacs21                 21.4a+1-5ubuntu1 The GNU Emacs editor

-- no debconf information

diff -ur dictionary-el-1.8.7/debian/changelog dictionary-el-1.8.7.new/debian/changelog
--- dictionary-el-1.8.7/debian/changelog	2007-07-04 00:12:39.000000000 -0400
+++ dictionary-el-1.8.7.new/debian/changelog	2007-07-04 00:52:13.000000000 -0400
@@ -1,3 +1,11 @@
+dictionary-el (1.8.7-6) UNRELEASED; urgency=low
+
+  [ Michael Olson ]
+  * debian/emacsen-install: Symlink files correctly.  This fixes a bug
+    where the post-install process would error out if /bin/sh is dash.
+
+ --
+
 dictionary-el (1.8.7-5) unstable; urgency=low
 
   * dictionary.el: per Kevin Ryde, mark the connection as safe to kill
Only in dictionary-el-1.8.7/debian: dictionary-el
Only in dictionary-el-1.8.7/debian: dictionary-el.postinst.debhelper
Only in dictionary-el-1.8.7/debian: dictionary-el.prerm.debhelper
diff -ur dictionary-el-1.8.7/debian/emacsen-install dictionary-el-1.8.7.new/debian/emacsen-install
--- dictionary-el-1.8.7/debian/emacsen-install	2007-07-04 00:12:39.000000000 -0400
+++ dictionary-el-1.8.7.new/debian/emacsen-install	2007-07-04 00:49:50.000000000 -0400
@@ -33,7 +33,11 @@
 install -m 755 -d ${ELCDIR}
 cd ${ELCDIR}
 rm -f *.el
-ln -s ../../../emacs/site-lisp/${PACKAGE}/*.el .
+( cd ${ELDIR}
+    for f in *.el; do
+        ln -sf ${ELDIR}/${f} ${ELCDIR}/${f}
+    done
+)
 FILES=`echo *.el`
 
 cat << EOF > path.el
Only in dictionary-el-1.8.7/debian: files

-- 
       Michael Olson -- FSF Associate Member #652     |
 http://mwolson.org/ -- Jabber: mwolson_at_hcoop.net  |  /` |\ | | |
            Sysadmin -- Hobbies: Lisp, GP2X, HCoop    | |_] | \| |_|
Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |

Reply via email to