2014-01-25 Paul Wise <p...@debian.org>:
> Package: dictionaries-common
> Version: 1.20.5
> Severity: serious
> Justification: upgrade failure
>
> I attempted to upgrade my system to dictionaries-common 1.20.5 but the
> preinst failed because I do not have emacsen-common installed. Either
> emacsen-common needs to be a pre-dependency or the preinst should check
> for emacs-package-install before using it, probably the latter is best.

Hi, Paul, thanks for the info.

This check should already be done in 1.20.5 preinst (indirectly
through checking for the installed stamp, as created by
dh_installemacsen)

----------------------------------------------------------
# Automatically added by dh_installemacsen
if ( [ "$1" = "install" ] || [ "$1" = "upgrade" ] ) \
        && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ]
then
        /usr/lib/emacsen-common/emacs-package-install --preinst
dictionaries-common
fi
# End automatically added section
----------------------------------------------------------

Previously used manual snippets instead or relying in those
automatically created by dh_installemacsen, with nothing in preinst.

> (Reading database ... 253456 files and directories currently installed.)
> Preparing to unpack .../dictionaries-common_1.20.5_all.deb ...
> Leaving 'diversion of /usr/share/dict/words to 
> /usr/share/dict/words.pre-dictionaries-common by dictionaries-common'
> /var/lib/dpkg/tmp.ci/preinst: 39: /var/lib/dpkg/tmp.ci/preinst: 
> /usr/lib/emacsen-common/emacs-package-install: not found
> dpkg: error processing archive 
> /var/cache/apt/archives/dictionaries-common_1.20.5_all.deb (--unpack):
>  subprocess new pre-installation script returned error exit status 127
> Errors were encountered while processing:
>  /var/cache/apt/archives/dictionaries-common_1.20.5_all.deb
> A package failed to install.  Trying to recover:
> Press Return to continue.

I need to know more about your system,  tried to reproduce the problem
in a sid pbuilder chroot, initially without none of
dictionaries-common or emacsen-common, no bug found

Installing dictionaries-commmon:

Preparing to unpack .../dictionaries-common_1.20.5_all.deb ...
Adding 'diversion of /usr/share/dict/words to
/usr/share/dict/words.pre-dictionaries-common by dictionaries-common'
Unpacking dictionaries-common (1.20.5) ...
Setting up dictionaries-common (1.20.5) ...
Processing triggers for dictionaries-common (1.20.5) ...

Is some emacsen-common reminiscence there, something like
/var/lib/emacsen-common/state/package/installed/emacsen-common

Regards,

-- 
Agustin


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to