Your message dated Mon, 20 Sep 2021 12:03:34 +0000 with message-id <[email protected]> and subject line Bug#985459: fixed in dh-elpa 2.0.9 has caused the Debian Bug report #985459, regarding dh-elpa: install error when root user has packages under /root/.emacs.d/elpa to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 985459: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985459 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: dh-elpa-helper Version: 2.0.8 Severity: normal Dear Maintainer, I got this cryptic error when I installed elpa-company on a machine where the root user had elpa packages already installed under /root/.emacs.d/elpa: Setting up elpa-company (0.9.13-2) ... Install emacsen-common for emacs emacsen-common: Handling install of emacsen flavor emacs Install elpa-company for emacs install/company-0.9.13: Handling install of emacsen flavor emacs install/company-0.9.13: byte-compiling for emacs In toplevel form: async-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests [... snip many similar errors ...] In toplevel form: template-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: transformers-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests ERROR: install script from elpa-company package failed dpkg: error processing package elpa-company (--configure): installed elpa-company package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: elpa-company E: Sub-process /usr/bin/dpkg returned an error code (1) The problem seems to be that it picks up the root user's local company package from package-user-dir in preference to the Debian package in package-directory-list. The patch below overrides package-user-dir to point at the Debian elpa source directory. Not sure if there's a better way to fix this but it resolves the problem for me and seems more robust. Index: dh-elpa-2.0.8/helper/install =================================================================== --- dh-elpa-2.0.8.orig/helper/install +++ dh-elpa-2.0.8/helper/install @@ -51,6 +51,7 @@ echo install/${ELPA_DIR}: byte-compiling (cd ${elc_dir} set +e ${FLAVOR} --quick --batch -l package \ + --eval "(setq package-user-dir \"$src_dir\")" \ --eval "(add-to-list 'package-directory-list \"$src_dir\")" \ -f package-initialize -f batch-byte-compile *.el > Install.log 2>&1 if test $? -ne 0 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled -- no debconf information
--- End Message ---
--- Begin Message ---Source: dh-elpa Source-Version: 2.0.9 Done: David Bremner <[email protected]> We believe that the bug you reported is fixed in the latest version of dh-elpa, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. David Bremner <[email protected]> (supplier of updated dh-elpa package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Mon, 20 Sep 2021 08:24:37 -0300 Source: dh-elpa Architecture: source Version: 2.0.9 Distribution: unstable Urgency: medium Maintainer: Debian Emacsen team <[email protected]> Changed-By: David Bremner <[email protected]> Closes: 985459 Changes: dh-elpa (2.0.9) unstable; urgency=medium . * Bug fix: "install error when root user has packages under /root/.emacs.d/elpa", thanks to Nick Gasson (Closes: #985459). The fix is to set PACKAGE-USER-DIR to "/nonexistent" when doing an install. Checksums-Sha1: b33a600f447ad73ac26941af7803824144ac5074 1828 dh-elpa_2.0.9.dsc 43ff72aeb78a738b4427baebf5a3ea94fdd963f4 22984 dh-elpa_2.0.9.tar.xz Checksums-Sha256: 2ea435ccf8b9ddba5770f6a91bcdaff135436d9301c19d4a0f51d02278026e80 1828 dh-elpa_2.0.9.dsc c1a72842c7706c192db6fd615d08ab688dd15a484fe756076e85c16e28988136 22984 dh-elpa_2.0.9.tar.xz Files: c9ff1a9da5eba6f296fef8b60f10e585 1828 devel optional dh-elpa_2.0.9.dsc 793cbc9f3b86786001bd573471960a63 22984 devel optional dh-elpa_2.0.9.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkiyHYXwaY0SiY6fqA0U5G1WqFSEFAmFIc90ACgkQA0U5G1Wq FSFj1BAAhN3UTMxq8mqSvqgm9pAZrLYQGJnIPheQh9I6eWCEIjnxLtqExo1IiMtq Km4zJC6vAbD+4XgLshgnypHhqlah2TDTyqHzhd0iDrB4+ygcExIbfDqr3KlDcxvu e2AMt9mR/L4sj3RKn9lVP5sR+o4XkICfmVzGHFBTfrcsjgGoUiigzMkI2nRtrLOa TwOOv57XPrhw/N29799Dt1YB0i4O6Ew5sVTXAtHOVUmcdrVo1jCBTPvaYFlwntuA 3APDXASyKe5j++vZBTTCSOaor1YOO18vcwYFlT7OiquRcf3hXBBTOMmgYWOrOZh2 S3z7Ns9pIUitng80tsuMMU5y7v0mTZbgobNmNpagm7+2ZZOj94PtYZxZanKB1oga 22k3hYJJiwDFWHdnQLKc/HxdcPjYhcWWtP+syKzwXlRFC83KhmplZ0Cq6MKUF1XH qxEn+VcdDh79/hLgSSCblZRHlq2+mkK0IiOKDyEwM0goXMG4zbeNdcz5mn6YgJLv IhFjtozHBrjOMRPDwiwbFhSbhgXK+bnDOZrql1JEFB4cxAVCaad+5JXeGD5k2NVV YaBt35snjcCPWJCK7MkVyUytfsJ+XTcVvLnYVxLM2WciwodegNrcHBWTL5GdOmBZ zHkrvfULFiVzQhqoy2/KWn/1101SR8jA1yJrmGAlvGFXk9TVXGo= =JBEP -----END PGP SIGNATURE-----
--- End Message ---

