[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#681823: tuareg-mode: emacs24 can't be configured



Package: tuareg-mode
Version: 1:2.0.6-2
Severity: serious
Tags: patch

While trying to solve #679591, I found what looks like the same bug in
tuareg-mode:

,----
| $ sudo dpkg --configure -a
| Setting up emacs24 (24.1+1-1) ...
| [...]
| Install tuareg-mode for emacs24
| install/tuareg-mode: Handling install for emacsen flavor emacs24
| cp: `ocamldebug-tuareg.el' and `/usr/share/emacs24/site-lisp/tuareg-mode/ocamldebug-tuareg.el' are the same file
| cp: `tuareg.el' and `/usr/share/emacs24/site-lisp/tuareg-mode/tuareg.el' are the same file
| ERROR: install script from tuareg-mode package failed
| dpkg: error processing emacs24 (--configure):
|  subprocess installed post-installation script returned error exit status 1
| Errors were encountered while processing:
|  emacs24
`----

The attached patch fixed the issue for me.

Cheers,
-Hilko

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages tuareg-mode depends on:
ii  emacs23 [emacsen]  23.4+1-3
ih  emacs24 [emacsen]  24.1+1-1

Versions of packages tuareg-mode recommends:
ii  ocaml-interp  3.12.1-4
pn  ocaml-mode    <none>

tuareg-mode suggests no packages.

-- no debconf information
diff --git a/debian/emacsen-install b/debian/emacsen-install
index 152e711..a268320 100644
--- a/debian/emacsen-install
+++ b/debian/emacsen-install
@@ -27,8 +27,8 @@ fi
 install -m 755 -d ${ELCDIR}
 cd ${ELDIR}
 FILES=`echo *.el`
-cp ${FILES} ${ELCDIR}
 cd ${ELCDIR}
+ln -sf ${RELELDIR}/*.el .
 
 cat << EOF > path.el
 (setq load-path (cons "." load-path) byte-compile-warnings nil)
@@ -42,7 +42,7 @@ case "${FLAVOR}" in
         ;;
 esac
 
-rm -f *.el path.el path.elc
+rm -f path.el
 
 cd ${ELCDIR}
 for f in ${FILES} ; do

Reply to: