--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Source: tuareg-mode
Source-Version: 1:2.0.6-3
We believe that the bug you reported is fixed in the latest version of
tuareg-mode, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 681823@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated tuareg-mode package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 28 Jul 2012 14:16:52 +0200
Source: tuareg-mode
Binary: tuareg-mode
Architecture: source all
Version: 1:2.0.6-3
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Description:
tuareg-mode - emacs-mode for ocaml programs
Closes: 681823
Changes:
tuareg-mode (1:2.0.6-3) unstable; urgency=low
.
* Updated the emacsen-install file from the current template shipped
with dh-make to fix an upgrade failure from squeeze (closes: #681823).
Thanks to Hilko Bengen for the patch!
Checksums-Sha1:
30d15ce885815910d4b76ed959ad5c7117163e63 1437 tuareg-mode_2.0.6-3.dsc
4e372b893e8841dec3f2b0c66ded94d8cedf607f 8809 tuareg-mode_2.0.6-3.debian.tar.gz
20c9353c9dc4ace5bff1f8a2f62216a1b4b05424 65238 tuareg-mode_2.0.6-3_all.deb
Checksums-Sha256:
c8234a70da2acf07f8394d7ce89b627473e19473aeaadfe57cf79846e8e2a323 1437 tuareg-mode_2.0.6-3.dsc
43c13793aa551483465d0d36943031c81c53b6acdbc0776b067866a23e9bf075 8809 tuareg-mode_2.0.6-3.debian.tar.gz
fcd3dc8820699b06ea53b845df5cdc0832aa5b78e96453818ba226a8c346e62c 65238 tuareg-mode_2.0.6-3_all.deb
Files:
effb00440b238c46805a72977b0a3162 1437 ocaml optional tuareg-mode_2.0.6-3.dsc
09db73f70863dfe2560630ecee288e73 8809 ocaml optional tuareg-mode_2.0.6-3.debian.tar.gz
ff476276bb0312e973ceaa6273be6f63 65238 ocaml optional tuareg-mode_2.0.6-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlAUGjYACgkQtzWmSeC6BMGJngCg9M2H5HNwu95EufCESBym5WgN
mNgAmgPaYzXI1UoW6iOA8OkBVY3Iuv/M
=t4um
-----END PGP SIGNATURE-----
--- End Message ---