[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#935766: dh-elpa: use common scripts /usr/lib/emacsen-common/packages/{install,remove}/*



Hello,

On Sun 25 Aug 2019 at 08:24PM -03, David Bremner wrote:

> 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).

IIRC you can override dh-elpa's scripts by explicitly installing your
own emacsen-common scripts to the correct location.  Assuming that
possibility stays working, the above seems fine and a good idea.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: