Hi Stefano, Stefano Zacchiroli <z...@debian.org> writes:
> On Tue, Mar 04, 2025 at 01:25:15AM -0800, Xiyue Deng wrote: >> I think you should install dh-elpa-helper 2.1.2 or newer on your >> backport machine, which provides the install/remove scripts for Emacs >> addons (also note that Bug#1099467 is against dh-elpa-helper.) Can you >> try that and let us know? > > Ah, silly me. I've now installed dh-elpa-helper 2.1.7 from testing (I > forgot to mention in the previous message that dh-elpa 2.1.7, and now > dh-elpa-helper as well, install fine on stable+backports without pulling > in any extra dependencies). It seems to get past the previous problem, > but now breaks while trying to replace a file with a dir, like this: > > ------------------------------ > > install/ess-18.10.3snapshot: byte-compiling for emacs > cp: cannot overwrite non-directory './etc' with directory > '/usr/share/emacs/site-lisp/elpa-src/ess-18.10.3snapshot/etc' > ERROR: install script from elpa-ess package failed > dpkg: error processing package emacs-gtk (--configure): > installed emacs-gtk package post-installation script subprocess returned > error exit status 1 > > ------------------------------ > > Full log of `dpkg --configure --pending` output attached. > > Thanks a lot! > Cheers > -- > Stefano Zacchiroli . z...@upsilon.cc . https://upsilon.cc/zack _. ^ ._ > Full professor of Computer Science o o o \/|V|\/ > Télécom Paris, Polytechnic Institute of Paris o o o </> <\> > Co-founder & CSO Software Heritage o o o o /\|^|/\ > Mastodon: https://mastodon.xyz/@zacchiro '" V "' > Setting up emacs-gtk (1:30.1+1-3~bpo12+1) ... > Install emacsen-common for emacs > emacsen-common: Handling install of emacsen flavor emacs > > In toplevel form: > usr/share/emacs/site-lisp/debian-startup.el:1:1: Warning: file has no > ‘lexical-binding’ directive on its first line > Install elpa-find-file-in-project for emacs > install/find-file-in-project-6.2.0: Handling install of emacsen flavor emacs > install/find-file-in-project-6.2.0: byte-compiling for emacs > Install elpa-popup for emacs > install/popup-0.5.8: Handling install of emacsen flavor emacs > install/popup-0.5.8: byte-compiling for emacs > Install elpa-ess for emacs > install/ess-18.10.3snapshot: Handling install of emacsen flavor emacs > install/ess-18.10.3snapshot: byte-compiling for emacs > cp: cannot overwrite non-directory './etc' with directory > '/usr/share/emacs/site-lisp/elpa-src/ess-18.10.3snapshot/etc' > ERROR: install script from elpa-ess package failed > dpkg: error processing package emacs-gtk (--configure): > installed emacs-gtk package post-installation script subprocess returned > error exit status 1 > dpkg: dependency problems prevent configuration of emacs: > emacs depends on emacs-gtk (>= 1:30.1) | emacs-pgtk (>= 1:30.1) | > emacs-lucid (>= 1:30.1) | emacs-nox (>= 1:30.1); however: > Package emacs-gtk is not configured yet. > Package emacs-pgtk is not installed. > Package emacs-lucid is not installed. > Package emacs-nox is not installed. > > dpkg: error processing package emacs (--configure): > dependency problems - leaving unconfigured > dpkg: dependency problems prevent configuration of dh-elpa: > dh-elpa depends on emacs-nox (>= 1:28.2+1-9) | emacs (>= 1:28.2+1-9); > however: > Package emacs-nox is not installed. > Package emacs is not configured yet. > Version of emacs on system, provided by emacs-gtk:amd64, is <none>. > > dpkg: error processing package dh-elpa (--configure): > dependency problems - leaving unconfigured > dpkg: dependency problems prevent processing triggers for auctex: > auctex depends on emacs; however: > Package emacs is not configured yet. > Package emacs-gtk which provides emacs is not configured yet. > > dpkg: error processing package auctex (--configure): > dependency problems - leaving triggers unprocessed > Errors were encountered while processing: > emacs-gtk > emacs > dh-elpa > auctex I cannot seem to reproduce this when experimenting in my stable docker image. The steps I tried to reproduce this issue: * Install elpa-ess and emacs from Bookworm. * Install dh-elpa-helper from sid (version 2.1.7). * Add stable-backports to source list. * Upgrade emacs to the backport version using `apt install -t stable-backports emacs' And the upgrade was successful (tried 3 times with the same result). I guess you were trying to recover from a half configured state of dpkg/apt which could add a lot of uncertainty. Can you try to downgrade Emacs to the stable versions first, install dh-elpa-helper 2.1.7, and try to upgrade to the backports versions again? -- Regards, Xiyue Deng
signature.asc
Description: PGP signature