Bug#935766: dh-elpa: use common scripts /usr/lib/emacsen-common/packages/{install,remove}/*
Package: dh-elpa
Version: 1.16
Severity: normal
Currently we generate two small shell scripts for each dh-elpa using
packages. These differ basically in one line (when generated from the
same version of dh-elpa). There is a lot of redundancy here, but more
importantly the fact that these scripts are generated at build time
means that to fix a bug in the scripts, all dh-elpa packages need to
be rebuilt.
Since the emacsen-common scripts are (afaik) only used in postinst or
prerm (crucially, not in preinst), a regular dependency on some package
containing the template scripts would suffice.
I'm posting this bug for feeding and design brainstorming, I think the
actual implimentation is not too challenging (but I could be wrong, so
hence the bug).
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dh-elpa depends on:
ii debhelper 12.5.3
ii dh-make-perl 0.106
ii emacs 1:26.1+1-3.3
ii emacs-gtk [emacs] 1:26.1+1-3.3
ii libarray-utils-perl 0.5-1
ii libconfig-tiny-perl 2.24-1
ii libdebian-source-perl 0.106
ii libdpkg-perl 1.19.7
ii libfile-find-rule-perl 0.34-1
ii libtext-glob-perl 0.10-1
ii perl 5.28.1-6
dh-elpa recommends no packages.
dh-elpa suggests no packages.
-- no debconf information
Reply to: