[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-devel
Subject:    Re: Versioned dependencies and maintainer scripts
From:       Wouter Verhelst <wouter () debian ! org>
Date:       2018-06-28 12:47:15
Message-ID: 20180628124715.GG5134 () grep ! be
[Download RAW message or body]

On Mon, Jun 25, 2018 at 08:04:01AM +0100, Simon McVittie wrote:
> On Sun, 24 Jun 2018 at 17:05:54 -0600, Daniele Nicolodi wrote:
> > Packages that will use dh_installsystemduser will have maintainer
> > scripts that will depend on the next relese of init-system-helpers.
> > dh_installsystemduser will then inject a versioned dependency using the
> > ${misc:Depends} substitution in debian/control.
> > 
> > Is that enough to ensure that postinst and postrm maintainer scripts are
> > run with the right version of init-system-helpers available?  Should I
> > be using Pre-Depends instead?
> 
> https://www.debian.org/doc/debian-policy/#summary-of-ways-maintainer-scripts-are-called
> 
> 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).

Additionally, unless you have a circular dependency involved somewhere
(and you really should try to avoid that if you can), then the package
will also be configured, so all will be good.

(All that to say that I agree and that no, you shouldn't need
Pre-Depends here)

-- 
Could you people please use IRC like normal people?!?

  -- Amaya Rodrigo Sastre, trying to quiet down the buzz in the DebConf 2008
     Hacklab

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic