Bug#850071: tuareg-mode: Fail to install if emacs21 is installed.
Package: tuareg-mode
Version: 1:2.0.10-1
Severity: normal
$ cat /var/log/apt/term.log
While compiling toplevel forms in file /usr/share/emacs21/site-lisp/tuareg-mode/ocamldebug-tuareg.el:
!! Symbol's function definition is void ((derived-mode-p))
Wrote /usr/share/emacs21/site-lisp/tuareg-mode/tuareg-light.elc
Wrote /usr/share/emacs21/site-lisp/tuareg-mode/tuareg-site-file.elc
Wrote /usr/share/emacs21/site-lisp/tuareg-mode/tuareg.elc
While compiling toplevel forms in file /usr/share/emacs21/site-lisp/tuareg-mode/tuareg_indent.el:
!! Symbol's function definition is void ((locate-file))
Done
ERROR: install script from tuareg-mode package failed
dpkg: error processing package tuareg-mode (--configure):
subprocess installed post-installation script returned error exit status 1
To fix replace:
$ cat /usr/lib/emacsen-common/packages/install/tuareg-mode
...
if [ ${FLAVOR} = emacs ]; then exit 0; fi
...
with:
case $FLAVOR in emacs|emacs21) exit 0;; esac
-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages tuareg-mode depends on:
ii emacs 46.1
ii emacs21 [emacsen] 21.4a+1-5.6
ii emacs22 [emacsen] 22.2+2-5
ii emacs23 [emacsen] 23.2+1-7+squeeze1
ii emacs24 [emacsen] 24.5+1-7.1
ii emacs25 [emacsen] 25.1+1-3
ii emacsen-common 2.0.8
ii xemacs21-mule [emacsen] 21.4.24-4
Versions of packages tuareg-mode recommends:
ii ocaml-interp 4.02.3-9
ii ocaml-mode 4.02.3-9
tuareg-mode suggests no packages.
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/lib/emacsen-common/packages/install/tuareg-mode (from tuareg-mode package)
--
http://defun.work/
Reply to: