[EMAIL PROTECTED] (Aaron M. Ucko) writes:

> Michael Olson <[EMAIL PROTECTED]> writes:
>
>> 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.
>
> I cannot reproduce this misbehavior with any shell; do you perhaps
> have an unusual filesystem layout, in which parts of /usr/share are
> symlinks to other places?

Ah, good catch.  I do in fact have /usr/share/emacs-snapshot ->
/usr/local/share/emacs/22.1.50.  So it wasn't a shell issue after all.

> Also, do you actually need the full
> subshell/loop setup, or does it suffice to run
>
> ln -s ${ELDIR}/emacs/site-lisp/${PACKAGE}/*.el .

That doesn't quite work.  But it does turn out that the subshell and
loop aren't really needed.  I've attached a more minimalistic patch that
does work for me, with xemacs21, emacs-snapshot, and emacs21.

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 12:14:13.000000000 -0400
@@ -1,3 +1,12 @@
+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 /usr/share/${FLAVOR}
+    was a symlink.
+
+ --
+
 dictionary-el (1.8.7-5) unstable; urgency=low
 
   * dictionary.el: per Kevin Ryde, mark the connection as safe to kill
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 12:15:23.000000000 -0400
@@ -33,7 +33,7 @@
 install -m 755 -d ${ELCDIR}
 cd ${ELCDIR}
 rm -f *.el
-ln -s ../../../emacs/site-lisp/${PACKAGE}/*.el .
+ln -s ${ELDIR}/*.el .
 FILES=`echo *.el`
 
 cat << EOF > path.el
-- 
       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