[PATCH 4 of 4 STABLE] packaging: ship only a single binary Debian package

Denis Laxalde denis at laxalde.org
Fri Oct 25 08:01:20 EDT 2019


Yuya Nishihara a écrit :
> On Wed, 23 Oct 2019 17:22:22 +0200, Denis Laxalde wrote:
> > # HG changeset patch
> > # User Denis Laxalde <denis.laxalde at logilab.fr>
> > # Date 1571843896 -7200
> > #      Wed Oct 23 17:18:16 2019 +0200
> > # Branch stable
> > # Node ID 9c048b5fa9f02e7a1959e763dcb5e9fa920766f5
> > # Parent  11c85873e106c85621ef85b67b3c64788e24a8d3
> > packaging: ship only a single binary Debian package
> 
> > +Replaces: mercurial-common (<< ${source:Version})
> > +Breaks: mercurial-common (<< ${source:Version})
> 
> I'm not pretty sure if replaces/breaks should be versioned because our
> package will conflicts with future official mercurial-common packages.
> But that wouldn't matter since our package wouldn't be used if there are
> more recent versions available in the debian repository.

The version information in Replaces:/Breaks: are indeed problematic if we
try to install our package over the one currently in
Debian (e.g. the one in experimental).

  $ sudo apt install mercurial/experimental
  [...]
  $ sudo apt install ./packages/debian-buster/mercurial_5.2~rc0+15-buster-a2ff3aff81d2_amd64.deb
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Note, selecting 'mercurial' instead of './packages/debian-buster/mercurial_5.2~rc0+15-buster-a2ff3aff81d2_amd64.deb'
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   mercurial : Breaks: mercurial-common (< 5.2~rc0+15-buster-a2ff3aff81d2) but 5.2~rc0-1 is to be installed
  E: Unable to correct problems, you have held broken packages.

Without (<< ${source:Version}), the install works fine.
I'll send a follow-up.


More information about the Mercurial-devel mailing list