Re: Versioned dependencies and maintainer scripts
- To: debian-devel@lists.debian.org
- Subject: Re: Versioned dependencies and maintainer scripts
- From: Adrian Bunk <bunk@debian.org>
- Date: Sun, 8 Jul 2018 11:30:29 +0300
- Message-id: <[🔎] 20180708083029.GC3219@localhost>
- In-reply-to: <65f5103b-6e71-8536-0f32-50e654ac5ead@grinta.net>
- References: <b708c452-65f8-3d57-97c0-72e04e41d6bb@grinta.net> <20180625070401.GA2014@espresso.pseudorandom.co.uk> <65f5103b-6e71-8536-0f32-50e654ac5ead@grinta.net>
On Mon, Jun 25, 2018 at 11:10:51AM -0600, Daniele Nicolodi wrote:
>...
> On 6/25/18 1:04 AM, Simon McVittie wrote:
>...
> > For the postinst, you can rely on the updated init-system-helpers being
> > at least unpacked (which should be enough, because i-s-h is Essential,
> > so it's required to provide its core functionality while merely unpacked
> > and not yet configured).
> >
> > The difference for Pre-Depends is that it would give you the ability to
> > assume that i-s-h has been configured (fully installed) before your
> > postinst runs. I don't think you need that here.
> >
> > In the postrm, you can't normally rely on having your package's
> > dependencies still installed, but init-system-helpers is Essential so
> > it should still be there, and we don't officially support downgrades so
> > i-s-h should still be at least the required version.
>
> Only tangentially related: does that mean that we can drop the checks
> for the presence of deb-systemd-helper in the postrm maintainer scripts
> injected by dh_installsystemd (for example [1]) and simplify them a bit?
>...
"purge" might happen decades (sic) after "remove" with no dependencies
installed and packages that are essential today no longer being essential.
> Cheers,
> Dan
>...
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: