Control: reopen -1
Control: tags -1 + patch

On February 28, 2014 at 10:48AM +0100, anbe (at debian.org) wrote:
> from an upgrade from wheezy to jessie:
> [...]
>   Setting up emacs23 (23.4+1-4.1+b1) ...
>   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 flim for emacs23
>   Install rail for emacs23
>   install/rail: Handling install for emacsen flavor emacs23
>   Cannot open load file: mime-def

It seems flim's mime-def.elc is not found when byte-compiling.

The rail package depends on flim, so install/rail called from
rail.postinst succeed, but install/rail 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.

```
--- a/debian/emacsen-install
+++ b/debian/emacsen-install
@@ -8,6 +8,7 @@
 FLAVOR=$1
 PACKAGE=rail
 
+if [ ! -f "/usr/share/$FLAVOR/site-lisp/flim/mime-def.elc" ]; then exit 0; fi
 case $FLAVOR in
     emacs|emacs21|emacs20|emacs19|mule2|*xemacs*)
     exit 0
```

Thanks,
--
Tatsuya Kinoshita

Attachment: pgp16KoKLvb4e.pgp
Description: PGP signature

Reply via email to