pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <cb@df7cb.de>
To: James Laska <jal233@gmail.com>
Cc: pgsql-pkg-debian@postgresql.org, Martin Pitt <mpitt@debian.org>
Subject: Re: Missing virtual provides on postgresql-9.4 deb
Date: Wed, 24 Jun 2015 11:02:32 +0200
Message-ID: <20150624090232.GA5492@msg.df7cb.de> (raw)
In-Reply-To: <CAFyeYZ4xvd4O8JrOx=uydMSoQMW5XtHS_t5eWBxYboCwo0NdyQ@mail.gmail.com>
References: <CAFyeYZ4xvd4O8JrOx=uydMSoQMW5XtHS_t5eWBxYboCwo0NdyQ@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>

Re: James Laska 2015-06-24 <CAFyeYZ4xvd4O8JrOx=uydMSoQMW5XtHS_t5eWBxYboCwo0NdyQ@mail.gmail.com>
> While installing postgresql-9.4, I noticed that the deb does not offer a
> `Provides: postgresql`.  I believe the convention for the comparable rpm
> builds is to offer a virtual provides so that any packages requiring the
> `postgresql` server capability continue to function after installing
> postgresql-9.4, but removing the Ubuntu-packaged `postgresql` package.
> 
> It seems this convention was followed for the postgresql-client-9.4 as it
> offers the following virtual Provides:
> 
> Provides: postgresql-client
> >
> 
> Any reason not to add the following virtual provides to the `control` file
> for the postgresql-9.4 deb package?
> 
> Provides: postgresql

Hi,

the problem here is that "postgresql" is a real package as well. If
something "Depends: postgresql" to get the 'current' server version as
defined by that package, that shouldn't be satisfied by some other
postgresql-x.y package.

Now you could argue that the same holds for the client package, though
the client packages are much more interchangeable, while the server
really only works with the same version that wrote the data in PGDATA.
Also, that would break upgrades where we rely on postgresql.deb
pulling in the new version.

I'm not saying we can't change this, though there's some reason behind
the way it currently is. Martin, do you remember if that "Provides:"
mismatch between server and client was intended, or did we just forget
that? Should we rather remove it from the client packages as well?

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (8+ messages)  latest in thread

Message-ID: <20150624090232.GA5492@msg.df7cb.de>
Permalink:  ../20150624090232.GA5492@msg.df7cb.de/
Also on:    postgresql.org/message-id/20150624090232.GA5492@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-pkg-debian@postgresql.org
  Cc: cb@df7cb.de, jal233@gmail.com, mpitt@debian.org
  Subject: Re: Missing virtual provides on postgresql-9.4 deb
  In-Reply-To: <20150624090232.GA5492@msg.df7cb.de>
  References: <CAFyeYZ4xvd4O8JrOx=uydMSoQMW5XtHS_t5eWBxYboCwo0NdyQ@mail.gmail.com> <20150624090232.GA5492@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox