Control: tags -1 + patch

On May 30, 2014 at 11:11AM +0200, holger (at layer-acht.org) wrote:
>   Setting up emacs23 (23.4+1-4.1+b1) ...
>   Install elserv for emacs23
>   install/elserv: Handling emacs23, logged in /tmp/elc_GKwTRr.log
>   install/elserv: Deleting /tmp/elc_GKwTRr.log
>   Install emacsen-common for emacs23
>   emacsen-common: Handling install of emacsen flavor emacs23
>   Wrote /etc/emacs23/site-start.d/00debian-vars.elc
>   Wrote /usr/share/emacs23/site-lisp/debian-startup.elc
>   Install wysihtml-el for emacs23
>   install/wysihtml: Handling install for emacsen flavor emacs23
>   Loading 00debian-vars...
>   Loading /etc/emacs/site-start.d/20apel.el (source)...
>   Loading /etc/emacs/site-start.d/50elserv.el (source)...
>   Loading /etc/emacs/site-start.d/50flim.el (source)...
>   Loading /etc/emacs/site-start.d/60wysihtml-el.el (source)...
>
>   In toplevel form:
>   wysidocbookxml.el:20:1:Error: Cannot open load file: product

It seems apel's *.elc file is not found when byte-compiling.

The wysihtml-el package depends on apel, so install/wysihtml-el
called from wysihtml-el.postinst succeed, but install/wysihtml-el
called from emacsen-common could fail as above.  See also bug#737389.

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737389

To prevent this problem, please skip byte-compilation in
emacsen-install if the depending file is not yet prepared.

```
--- wysihtml-0.13-5.1/debian/emacsen-install
+++ wysihtml-0.13/debian/emacsen-install
@@ -11,6 +11,8 @@
 PACKAGE=wysihtml

 if [ ${FLAVOR} = emacs ]; then exit 0; fi
+if [ ! -f "/usr/share/$FLAVOR/site-lisp/apel/mcharset.elc" ]; then exit 0; fi
+if [ ! -f "/usr/share/$FLAVOR/site-lisp/elserv/elserv.elc" ]; then exit 0; fi

 if [ ${FLAVOR} = xemacs21 ]; then
     XEMACS=`ls /usr/bin/xemacs*21*-mule* 2> /dev/null | head -1`
```

Thanks,
--
Tatsuya Kinoshita

Attachment: pgppUeuYwMXyO.pgp
Description: PGP signature

Reply via email to