pg.ddx.io pgsql-pkg-debian@postgresql.org mailing list archive
help / color / mirror / Atom feedMissing virtual provides on postgresql-9.4 deb
8+ messages / 5 participants
[nested] [flat]
* Missing virtual provides on postgresql-9.4 deb
@ 2015-06-24 01:06 James Laska <jal233@gmail.com>
2015-06-24 09:02 ` Re: Missing virtual provides on postgresql-9.4 deb Christoph Berg <cb@df7cb.de>
2015-06-27 23:15 ` Re: Missing virtual provides on postgresql-9.4 deb Peter Eisentraut <peter_e@gmx.net>
0 siblings, 2 replies; 8+ messages in thread
From: James Laska @ 2015-06-24 01:06 UTC (permalink / raw)
To: pgsql-pkg-debian
Greetings,
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
>
Thanks,
James
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
@ 2015-06-24 09:02 ` Christoph Berg <cb@df7cb.de>
2015-06-24 13:36 ` Re: Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-28 09:15 ` Re: Missing virtual provides on postgresql-9.4 deb Martin Pitt <mpitt@debian.org>
1 sibling, 2 replies; 8+ messages in thread
From: Christoph Berg @ 2015-06-24 09:02 UTC (permalink / raw)
To: James Laska <jal233@gmail.com>; +Cc: pgsql-pkg-debian@postgresql.org, Martin Pitt <mpitt@debian.org>
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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-24 09:02 ` Re: Missing virtual provides on postgresql-9.4 deb Christoph Berg <cb@df7cb.de>
@ 2015-06-24 13:36 ` James Laska <jal233@gmail.com>
1 sibling, 0 replies; 8+ messages in thread
From: James Laska @ 2015-06-24 13:36 UTC (permalink / raw)
To: Christoph Berg <cb@df7cb.de>; James Laska <jal233@gmail.com>; pgsql-pkg-debian@postgresql.org, Martin Pitt <mpitt@debian.org>
On Wed, Jun 24, 2015 at 5:02 AM, Christoph Berg <cb@df7cb.de> wrote:
> 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?
>
My familiarity with virtual provides is so that any packages with have a
non-versioned dependency on postgres, will be satisfied by whatever version
of postgres* installed. It's commonly used when co-installing packages of
the same name (different versions). Dependencies that require a specific
version should do so in their "Depends" statement.
This convention is already used in the postgresql-9.4 RPM packages, as seen
below.
# rpm -q --provides postgresql94-server
> config(postgresql94-server) = 9.4.4-1PGDG.rhel7
> postgresql-server
> postgresql94-server = 9.4.4-1PGDG.rhel7
> postgresql94-server(x86-64) = 9.4.4-1PGDG.rhel7
>
On RPM based systems, this allows one to install postgresql94-server, and
later remove postgresql-server. The virtual provides ensure any packages
with a postgresql-server requirement remain on the system, after
`postgresql-server` has been removed (since the dependency is met by
postgresql94-server).
Thanks,
James
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-24 09:02 ` Re: Missing virtual provides on postgresql-9.4 deb Christoph Berg <cb@df7cb.de>
@ 2015-06-28 09:15 ` Martin Pitt <mpitt@debian.org>
1 sibling, 0 replies; 8+ messages in thread
From: Martin Pitt @ 2015-06-28 09:15 UTC (permalink / raw)
To: Christoph Berg <cb@df7cb.de>; James Laska <jal233@gmail.com>; pgsql-pkg-debian
Hello all,
Christoph Berg [2015-06-24 11:02 +0200]:
> 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?
-server not having a "Provides: postgresql" is very much intended, for
the very reason Peter and you pointed out. I believe with the current
structure of the metapackages we should drop the Provides: from the
-client-X.Y packages as well, to avoid this kind of confusion. If you
don't care about which particular client you want, you generally want
the latest one (as it's able to talk to all server versions), and it
should be upgraded automatically.
Thanks,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
@ 2015-06-27 23:15 ` Peter Eisentraut <peter_e@gmx.net>
2015-06-28 02:14 ` Re: Missing virtual provides on postgresql-9.4 deb Joshua D. Drake <jd@commandprompt.com>
1 sibling, 1 reply; 8+ messages in thread
From: Peter Eisentraut @ 2015-06-27 23:15 UTC (permalink / raw)
To: James Laska <jal233@gmail.com>; pgsql-pkg-debian
On 6/23/15 9:06 PM, James Laska wrote:
> 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.
What package would want a dependency on a locally installed server but
does not care about the major version of the server package?
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-27 23:15 ` Re: Missing virtual provides on postgresql-9.4 deb Peter Eisentraut <peter_e@gmx.net>
@ 2015-06-28 02:14 ` Joshua D. Drake <jd@commandprompt.com>
2015-06-28 04:01 ` Re: Missing virtual provides on postgresql-9.4 deb Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 8+ messages in thread
From: Joshua D. Drake @ 2015-06-28 02:14 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; James Laska <jal233@gmail.com>; pgsql-pkg-debian
On 06/27/2015 04:15 PM, Peter Eisentraut wrote:
>
> On 6/23/15 9:06 PM, James Laska wrote:
>> 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.
>
> What package would want a dependency on a locally installed server but
> does not care about the major version of the server package?
psycopg2
php-pg (or whatever it is called)
etc...
--
Command Prompt, Inc. - http://www.commandprompt.com/ 503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Announcing "I'm offended" is basically telling the world you can't
control your own emotions, so everyone else should do it for you.
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-27 23:15 ` Re: Missing virtual provides on postgresql-9.4 deb Peter Eisentraut <peter_e@gmx.net>
2015-06-28 02:14 ` Re: Missing virtual provides on postgresql-9.4 deb Joshua D. Drake <jd@commandprompt.com>
@ 2015-06-28 04:01 ` Peter Eisentraut <peter_e@gmx.net>
2015-06-28 15:36 ` Re: Missing virtual provides on postgresql-9.4 deb Joshua D. Drake <jd@commandprompt.com>
0 siblings, 1 reply; 8+ messages in thread
From: Peter Eisentraut @ 2015-06-28 04:01 UTC (permalink / raw)
To: Joshua D. Drake <jd@commandprompt.com>; James Laska <jal233@gmail.com>; pgsql-pkg-debian
On 6/27/15 10:14 PM, Joshua D. Drake wrote:
>> What package would want a dependency on a locally installed server but
>> does not care about the major version of the server package?
>
> psycopg2
> php-pg (or whatever it is called)
Those don't depend on server packages.
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Missing virtual provides on postgresql-9.4 deb
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-27 23:15 ` Re: Missing virtual provides on postgresql-9.4 deb Peter Eisentraut <peter_e@gmx.net>
2015-06-28 02:14 ` Re: Missing virtual provides on postgresql-9.4 deb Joshua D. Drake <jd@commandprompt.com>
2015-06-28 04:01 ` Re: Missing virtual provides on postgresql-9.4 deb Peter Eisentraut <peter_e@gmx.net>
@ 2015-06-28 15:36 ` Joshua D. Drake <jd@commandprompt.com>
0 siblings, 0 replies; 8+ messages in thread
From: Joshua D. Drake @ 2015-06-28 15:36 UTC (permalink / raw)
To: pgsql-pkg-debian
On 06/27/2015 09:01 PM, Peter Eisentraut wrote:
>
> On 6/27/15 10:14 PM, Joshua D. Drake wrote:
>>> What package would want a dependency on a locally installed server but
>>> does not care about the major version of the server package?
>>
>> psycopg2
>> php-pg (or whatever it is called)
>
> Those don't depend on server packages.
>
Right, sorry.
JD
>
--
The most kicking donkey PostgreSQL Infrastructure company in existence.
The oldest, the most experienced, the consulting company to the stars.
Command Prompt, Inc. http://www.commandprompt.com/ +1 -503-667-4564 -
24x7 - 365 - Proactive and Managed Professional Services!
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2015-06-28 15:36 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-24 01:06 Missing virtual provides on postgresql-9.4 deb James Laska <jal233@gmail.com>
2015-06-24 09:02 ` Christoph Berg <cb@df7cb.de>
2015-06-24 13:36 ` James Laska <jal233@gmail.com>
2015-06-28 09:15 ` Martin Pitt <mpitt@debian.org>
2015-06-27 23:15 ` Peter Eisentraut <peter_e@gmx.net>
2015-06-28 02:14 ` Joshua D. Drake <jd@commandprompt.com>
2015-06-28 04:01 ` Peter Eisentraut <peter_e@gmx.net>
2015-06-28 15:36 ` Joshua D. Drake <jd@commandprompt.com>
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