Bug#984931: git-el,elpa-magit: fails to install: /usr/lib/emacsen-common/packages/install/git emacs failed at /usr/lib/emacsen-common/lib.pl line 19, <TSORT> line 7.
On Thu, 11 Mar 2021 15:17:39 -0400 David Bremner
wrote:
> David Bremner writes:
>
> >
> > As far as I can see, the problem is that the setup for
elpa-magit and
> > git-el both call "emacs", but that does not exist
until the
> > update-alternatives is called. So there seems to be a
race condition
> > here where emacs-gtk (or whatever is providing
/usr/bin/emacs) needs to
> > run its postinst before any add-on package wanting to
do byte
> > compilation.
> >
> > Somewhat to my surprise I could duplicate this failure
with
> >
> > $ sudo schroot -r -c test apt install git-el
elpa-magit
> >
> > where test is an up to date sid chroot.
>
> Another thing I noticed is that git-el does not depend on
emacsen-common
>
> per [1] (5), I think it should. I don't know if this has
any practical
> impact.
>
> d
>
I maintain the psgml add-on package and worked through a similar
issue in this release cycle.
According to the Emacs policy (5A and 5C), this package should
not only add a dependency on "emacsen-common" but also remove the
dependency on "emacs". That would have the positive practical
impact of not trying to byte compile the files until Emacs was
completely installed, according to (5B). For psgml, I added the
dependency on "emacsen-common" and changed the dependency on
"emacs25" to a recommendation of "emacs".
Neil
Reply to: