[Pkg-emacsen-addons] Bug#920219: Bug#920219: Bug#920219: elpa-company: Post install script failing

David Bremner david at tethera.net
Fri Jan 25 01:19:27 GMT 2019

Control: tag -1 -moreinfo -unreproducible +confirmed

Erich Beyer <badboybeyer at gmail.com> writes:

> 1) No, it is the same information that appears in the "dpkg --configure -a"
> output in my original email. I will duplicate it below.
> 2) I tried:
> A)
>  $ sudo emacs ...
> B)
>  $ sudo -s
>  # emacs ...
> C)
>  $ sudo -s
>  # su
>  # emacs ...
> Iteration C produced the same output as you. I have env_keep in my
> /etc/sudoers. I think emacs in the script is seaching $HOME/.emacs.d/ and my
> init.el is causing it to add $HOME/.emacs.d/elpa to the load-path. For
> iteration
> A and B, $HOME="/home/myusername" and no output was produced.
>  $ sudo sh -c 'echo $HOME'
>  /home/myusername

OK, I understand the problem now, thanks for experimenting.

Indeed the problem is your setting of $HOME for the root user (and emacs
using $HOME).  I'll see about making the maintainer scripts ignore the
value of $HOME.

More information about the Pkg-emacsen-addons mailing list