On 17 August 2018 at 16:49, Zack Weinberg wrote:
| On Fri, Aug 17, 2018 at 4:35 PM, Dirk Eddelbuettel <e...@debian.org> wrote:
| > Ack. Can you check if invoking emacsen-install differently, or updating it,
| > would help?
| >
| > The postinst should still have
| >
| > if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
| >         if [ -e 
/var/lib/emacsen-common/state/package/installed/emacsen-common -a -x 
/usr/lib/emacsen-common/emacs-package-install ] ; then
| >                 /usr/lib/emacsen-common/emacs-package-install --postinst ess
| >         fi
| > fi
| 
| This is the complete contents of ess.postinst:
| 
| #!/bin/sh
| set -e
| # Automatically added by dh_installemacsen/10.10.8
| if [ "$1" = "configure" ] && [ -e
| /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x
| /usr/lib/emacsen-common/emacs-package-install ]
| then
|         /usr/lib/emacsen-common/emacs-package-install --postinst ess
| fi
| # End automatically added section
| 
| > What happens when you run this, ie 'emacs-package-install --postinst ess' ?
| 
| I tried that.  It does some other unrelated stuff and then it runs
| /usr/lib/emacsen-common/packages/install/ess with sole argument
| "emacs", and that's where we came in.

Excellent. Thanks for confirming.  The next script (from our package) starts
with

FLAVOR=$1
PACKAGE=ess

# edd 03 Jan 2017 cf #850041
#if [ ${FLAVOR} = emacs ]; then exit 0; fi
#if [ ${FLAVOR} = xemacs21 ]; then exit 0; fi
#if [ ${FLAVOR} = emacs22 ]; then exit 0; fi
#if [ ${FLAVOR} = emacs23 ]; then exit 0; fi
case ${FLAVOR} in xemacs*|emacs|emacs2[1-3])
    exit 0;;
esac

and that 'emacs' in the middle there way do us in.  Can you try running the
script (as root) with the case line altered to

case ${FLAVOR} in xemacs*|emacs2[1-3])


Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

Reply via email to