[Pkg-emacsen-addons] Bug#905464: Bug#905464: dh-elpa: Expects .el file name to be based on package name (and does not consider "${pkg}-mode.el")

David Bremner david at tethera.net
Thu Aug 16 13:43:47 BST 2018


Axel Beckert <abe at debian.org> writes:

> Package: dh-elpa
> Version: 1.13
>
> Hi,
>
> when trying to switch the package tpp (which also ships "tpp-mode.el" to
> edit tpp files), dh_elpa expects a file named
> debian/.debhelper/elpa/tpp.desc despite debian/elpa lists
> "contrib/tpp-mode.el".
>
> The content of the debian/elpa file seems to be ignored when calculating
> the path to the .desc file.
>
> Error message:
>
> dh_elpa
>         Using elpa package name tpp
>         emacs -batch -Q -l package --eval "(add-to-list 'package-directory-list \"/usr/share/emacs/site-lisp/elpa\")" --eval "(add-to-list 'package-directory-list \"/usr/share/emacs/site-lisp/elpa-src\")" -f package-initialize -l dh-elpa.el -f dhelpa-batch-install-file debian/tpp//usr/share/emacs/site-lisp/elpa-src contrib/tpp-mode.el /home/abe/tpp/tpp/debian/.debhelper/elpa 1533407657
> dh_elpa: failed to open /home/abe/tpp/tpp/debian/.debhelper/elpa/tpp.desc
> make[1]: *** [debian/rules:23: override_dh_elpa] Error 2
>
> Existing file:
>
> → ls -l debian/.debhelper/elpa/*.desc
> -rw-r--r-- 1 abe abe 54 Aug  5 02:20 debian/.debhelper/elpa/tpp-mode.desc
>
> Since this is not primarily an emacs mode package but only ships an
> emacs mode as an add-on, the package is not named elpa-tpp-mode or
> tpp-mode but just tpp.

The assumption that the binary package is called elpa-foo (where is foo
is deduced from the package.el metadata) is baked into dh-elpa at a
pretty deep level. The assumption is that you will make a seperate
binary package for the emacs stuff.  So I guess this bug could be
considered a feature request to support a different use-case.

d



More information about the Pkg-emacsen-addons mailing list